{"id":18513374,"url":"https://github.com/jbox-web/redmine_bootstrap_kit","last_synced_at":"2025-07-11T13:35:46.274Z","repository":{"id":16195919,"uuid":"18942620","full_name":"jbox-web/redmine_bootstrap_kit","owner":"jbox-web","description":" A Redmine plugin which makes developing your own Redmine plugin easy ;) ","archived":false,"fork":false,"pushed_at":"2018-05-09T04:11:43.000Z","size":2342,"stargazers_count":40,"open_issues_count":2,"forks_count":20,"subscribers_count":12,"default_branch":"devel","last_synced_at":"2024-03-26T11:24:06.224Z","etag":null,"topics":["bootstrap","fontawesome","rails","redmine","redmine-plugin","ruby"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"sapegin/grunt-bower-concat","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jbox-web.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-04-19T14:17:26.000Z","updated_at":"2023-07-31T18:18:58.000Z","dependencies_parsed_at":"2022-09-14T20:21:05.884Z","dependency_job_id":null,"html_url":"https://github.com/jbox-web/redmine_bootstrap_kit","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fredmine_bootstrap_kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fredmine_bootstrap_kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fredmine_bootstrap_kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jbox-web%2Fredmine_bootstrap_kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jbox-web","download_url":"https://codeload.github.com/jbox-web/redmine_bootstrap_kit/tar.gz/refs/heads/devel","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223367360,"owners_count":17134083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bootstrap","fontawesome","rails","redmine","redmine-plugin","ruby"],"created_at":"2024-11-06T15:37:54.949Z","updated_at":"2024-11-06T15:37:55.744Z","avatar_url":"https://github.com/jbox-web.png","language":"JavaScript","readme":"## Redmine Bootstrap Kit Plugin\n\n[![GitHub license](https://img.shields.io/github/license/jbox-web/redmine_bootstrap_kit.svg)](https://github.com/jbox-web/redmine_bootstrap_kit/blob/devel/LICENSE)\n[![GitHub release](https://img.shields.io/github/release/jbox-web/redmine_bootstrap_kit.svg)](https://github.com/jbox-web/redmine_bootstrap_kit/releases/latest)\n[![Code Climate](https://codeclimate.com/github/jbox-web/redmine_bootstrap_kit.png)](https://codeclimate.com/github/jbox-web/redmine_bootstrap_kit)\n\n### A Redmine plugin which makes developing your own Redmine plugin easy ;)\n\n## Why?\n\nAs Redmine does not support asset pipeline, we need to install JQuery plugins as Redmine plugins to load them globally.\n\nIt provides :\n\n* [BootstrapSwitch 1.8](https://github.com/nostalgiaz/bootstrap-switch)\n* [CodeMirror 3.2](https://github.com/codemirror/codemirror)\n* [jQuery FileTree](https://github.com/daverogers/jQueryFileTree)\n* [jQuery TagIt](http://aehlke.github.io/tag-it/)\n* [jQuery UI Bootstrap 0.5](http://jquery-ui-bootstrap.github.io/jquery-ui-bootstrap/) - 2014-04-19\n* [FontAwesome 4.7.0](http://fortawesome.github.io/Font-Awesome/)\n* [Highcharts 4.1.4](https://github.com/highslide-software/highcharts.com)\n* [ZeroClipboard 2.3.0](https://github.com/zeroclipboard/zeroclipboard)\n* [Bootstrap Notify](https://github.com/mouse0270/bootstrap-notify)\n\nAnd a set of various Rails helper methods (see below).\n\n## Installation\n\nJust clone it in your Redmine plugins directory :\n\n```sh\ncd REDMINE_ROOT/plugins\ngit clone https://github.com/jbox-web/redmine_bootstrap_kit.git\n```\n\n## What's included?\n\nIt provides the following Rails helper methods :\n\n#### BootstrapKit assets loader :\n\n```ruby\nbootstrap_load_module(rbk_module)\n```\n\nThis method loads all JS and CSS files needed by the required module.\n\nThe following modules are available :\n\n* alerts\n* label\n* modals\n* pagination\n* switch\n* tables\n* tabs\n* font_awesome\n* dropdown\n* tooltip\n* notify\n* tag_it\n\n#### BootstrapSwitch :\n\n```ruby\nbootstrap_switch_tag(opts = {}, \u0026block)\n```\n\n#### FontAwesome :\n\n```ruby\nfa_icon(icon, opts = {})\nlabel_with_icon(label, icon, icon_opts = {})\n```\n\n#### AjaxHelper :\n\n```ruby\nrender_flash_messages_as_js(target = '#flash-messages', opts = {})\njs_render_template(target, template, opts = {})\njs_render_partial(target, partial, opts = {})\njs_render(target, content, opts = {})\n```\n\n#### PresenterHelper :\n\n```ruby\npresent(object, klass = nil, *args)\n```\n\n#### JQuery TagIt :\n\n```ruby\ntag_it_list(id, list_opts = {}, tag_it_opts = {}, \u0026block)\n```\n\n#### WillPaginateHelper :\n\n```ruby\npaginate(collection, opts = {})\n```\n\n#### ZeroClipboardHelper:\n\n```ruby\nzero_clipboard_button_for(target)\n```\n\n## How to use?\n\nTo use Redmine Bootstrap Kit helper methods you must first add ```:redmine_bootstrap_kit``` helper in your controller :\n\n```ruby\nclass MyPluginController \u003c ApplicationController\n  ...\n\n  helper :redmine_bootstrap_kit\n\nend\n```\n\nThen with the ```bootstrap_load_module``` method you can load the desired assets in your views :\n\n```html+erb\n\u003c% content_for :header_tags do %\u003e\n  \u003c%= bootstrap_load_base %\u003e\n  \u003c%= bootstrap_load_module(:alerts) %\u003e\n  \u003c%= bootstrap_load_module(:label) %\u003e\n  \u003c%= bootstrap_load_module(:modals) %\u003e\n  \u003c%= bootstrap_load_module(:pagination) %\u003e\n  \u003c%= bootstrap_load_module(:switch) %\u003e\n  \u003c%= bootstrap_load_module(:tables) %\u003e\n  \u003c%= bootstrap_load_module(:tabs) %\u003e\n  \u003c%= bootstrap_load_module(:font_awesome) %\u003e\n  \u003c%= bootstrap_load_module(:dropdown) %\u003e\n  \u003c%= bootstrap_load_module(:tooltip) %\u003e\n  \u003c%= bootstrap_load_module(:notify) %\u003e\n  \u003c%= bootstrap_load_module(:tag_it) %\u003e\n\u003c% end %\u003e\n```\n\nThe ```bootstrap_load_base``` method call is needed if you want to use provided JS helpers (see below).\n\n\n## To create BootstrapSwitch buttons\n\nIn your views :\n\n```html+erb\n\u003c% content_for :header_tags do %\u003e\n  \u003c%= bootstrap_load_base %\u003e\n  \u003c%= bootstrap_load_module(:switch) %\u003e\n\u003c% end %\u003e\n\n\u003cp\u003e\n  \u003clabel\u003eThis is a switch button\u003c/label\u003e\n  \u003c%= bootstrap_switch_tag do %\u003e\n    \u003c%= hidden_field_tag \"extra[enable]\", \"false\" %\u003e\n    \u003c%= check_box_tag \"extra[enable]\" %\u003e\n  \u003c% end %\u003e\n\u003c/p\u003e\n\n\u003c%= javascript_tag do %\u003e\n  $(document).ready(function() { setBootstrapSwitch(); });\n\u003c% end %\u003e\n```\n\n## To create TagIt lists\n\nIn your views :\n\n```html+erb\n\u003c% content_for :header_tags do %\u003e\n  \u003c%= bootstrap_load_base %\u003e\n  \u003c%= bootstrap_load_module(:tag_it) %\u003e\n\u003c% end %\u003e\n\n\u003cp\u003e\n  \u003clabel\u003eThis is a TagIt list\u003c/label\u003e\n\u003c/p\u003e\n\n\u003c%= tag_it_list 'plugin_emails_list',\n                { name: 'plugin[emails_list][]' },\n                { placeholder: '+ add email' } do %\u003e\n  \u003cli\u003ejohn@doe.com\u003c/li\u003e\n  \u003cli\u003ejane@doe.com\u003c/li\u003e\n\u003c% end %\u003e\n\n\u003c%= javascript_tag do %\u003e\n  $(document).ready(function() { setTagIt(); });\n\u003c% end %\u003e\n```\n\n## Contribute\n\nYou can contribute to this plugin in many ways such as :\n* Helping with documentation\n* Contributing code (features or bugfixes)\n* Reporting a bug\n* Submitting translations\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbox-web%2Fredmine_bootstrap_kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjbox-web%2Fredmine_bootstrap_kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjbox-web%2Fredmine_bootstrap_kit/lists"}