Bothersme List
Inserts "Track an Issue" button on a side like a button on http://bothers.me
Installation
Add this line to your application's Gemfile:
gem 'bothersme_list'
And then execute:
$ bundle
Or install it yourself as:
$ gem install bothersme_list
Usage
Add this line to your application's Gemfile:
gem 'bothersme_list'
At the end of your layout (usually application.hmtl.erb file) before </body>
add
<%= issues_list('website', 'MyWebsite.com', 'MyProduct') %>
the script will asynchronously add "Track an Issue" button.
Parameters
- type [String] indicates the type of the product. Supported types are: 'website', 'camera', 'wearable'
- company [String] is your company name camel case like 'MyCompany'
- product [String] name of your product came case like "My Product", you can pass nil to render issues for all products
- side [String] which side to render on, supported 'left', 'right', default: 'right'
- textColor [String] CSS color to render as foreground color. default 'white'
- bgColor [String] CSS color to render as background color, default '#55B055'
Contributing
- Fork it ( https://github.com/BothersMe/bothersme_list/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
CHANGELOG
See here.
Ruby Doc
Is here