Comments (9)
Hi @kithokit
Could you tell me which version of rack-dev-mark you are using?
from rack-dev-mark.
0.4.3, should i upgrade?
from rack-dev-mark.
Yes, please. The doc currently shown on GitHub is for 0.6.4
, which has Rack::DevMark::Theme::Tag
.
from rack-dev-mark.
Instead of showing (env name) on the ribbon, how can we customise the name on the ribbon?
I can't find any example on the page. Thanks a lot
from rack-dev-mark.
You can customize the string by Rack::DevMark.env = 'anything'
.
Could you tell me why you want to show custom string and what kind of string do you want to show?
from rack-dev-mark.
It is working now by using this snippet
config.rack_dev_mark.enable = true
config.rack_dev_mark.custom_theme = [Rack::DevMark::Theme::GithubForkRibbon.new(color: 'green')]
Rack::DevMark.env = 'anything'
Instead of showing development, it is showing anything on the ribbon.
However , i suggest we can create a method for user to customize the title more easily.
config.rack_dev_mark.title = "anything" , and default should use the environment name.
Thanks a lot
from rack-dev-mark.
However , i suggest we can create a method for user to customize the title more easily.
Do you mean the string shown on the ribbon?
By the way, could you tell me why you want to show custom string instead of the env? Maybe, there's another solution for your case.
e.g.
RACK_DEV_MARK_ENV
environment variable for Heroku case.
from rack-dev-mark.
yes, string shown on ribbon.
well, the custom string is used for end user. somehow, end user doesnt
understand our env convention. we would like to create custom string for
them to understand. indeed, our enduser would like to test in few
enironment so thats why ur ribbon is good for my use case
2014/7/17 下午6:43 於 "dtaniwaki" [email protected] 寫道:
However , i suggest we can create a method for user to customize the title
more easily.Do you mean the string shown on the ribbon?
By the way, could you tell me why you want to show custom string instead
of the env? Maybe, there's another solution for your case.e.g.
RACK_DEV_MARK_ENV environment variable.—
Reply to this email directly or view it on GitHub
#14 (comment)
.
from rack-dev-mark.
Cool. I understand your needs.
Thank you for your suggestion. I will consider it as a future enhancement!
from rack-dev-mark.
Related Issues (15)
- Unable to get ribbon to appear in non-development environments HOT 30
- Turn off ribbon dynamically? HOT 5
- skip_rack_dev_mark doesn't work for me HOT 5
- All my options are being ignored HOT 5
- Exclude dev-mark from Rails redirects HOT 3
- How can I also add another environment apart from development? HOT 2
- New Relic causes error HOT 1
- Duplicate Github Fork Ribbon HOT 4
- Do you plan to release removed before_filter version? HOT 4
- Ruby 2.5.0 HOT 2
- Error starting application server when using 'Pow' HOT 3
- Hide ribbon when print
- Support for Ruby 2.6.0? HOT 1
- Reduce disk space usage by ignoring the screenshots in misc/
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rack-dev-mark.