Git Product home page Git Product logo

Comments (9)

dtaniwaki avatar dtaniwaki commented on May 30, 2024

Hi @kithokit
Could you tell me which version of rack-dev-mark you are using?

from rack-dev-mark.

kithokit avatar kithokit commented on May 30, 2024

0.4.3, should i upgrade?

from rack-dev-mark.

dtaniwaki avatar dtaniwaki commented on May 30, 2024

Yes, please. The doc currently shown on GitHub is for 0.6.4, which has Rack::DevMark::Theme::Tag.

from rack-dev-mark.

kithokit avatar kithokit commented on May 30, 2024

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.

dtaniwaki avatar dtaniwaki commented on May 30, 2024

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.

kithokit avatar kithokit commented on May 30, 2024

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.

dtaniwaki avatar dtaniwaki commented on May 30, 2024

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.

kithokit avatar kithokit commented on May 30, 2024

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.

dtaniwaki avatar dtaniwaki commented on May 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.