{"id":15024320,"url":"https://github.com/telecta/tabs_for","last_synced_at":"2026-02-03T06:04:45.953Z","repository":{"id":36168604,"uuid":"40472701","full_name":"telecta/tabs_for","owner":"telecta","description":"ActiveView Helper for creating tabs with Bootstrap","archived":false,"fork":false,"pushed_at":"2018-07-03T05:41:35.000Z","size":61,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-10-06T08:39:04.736Z","etag":null,"topics":["bootstrap","bootstrap3","fontawesome","icons","rails","tab-pane"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/telecta.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-10T08:53:21.000Z","updated_at":"2024-08-13T22:24:29.000Z","dependencies_parsed_at":"2022-07-25T19:48:15.024Z","dependency_job_id":null,"html_url":"https://github.com/telecta/tabs_for","commit_stats":null,"previous_names":["blacktangent/tabs_for"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/telecta/tabs_for","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecta%2Ftabs_for","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecta%2Ftabs_for/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecta%2Ftabs_for/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecta%2Ftabs_for/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/telecta","download_url":"https://codeload.github.com/telecta/tabs_for/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/telecta%2Ftabs_for/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29035353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T02:28:16.591Z","status":"ssl_error","status_checked_at":"2026-02-03T02:27:48.904Z","response_time":96,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","bootstrap3","fontawesome","icons","rails","tab-pane"],"created_at":"2024-09-24T20:00:07.471Z","updated_at":"2026-02-03T06:04:45.939Z","avatar_url":"https://github.com/telecta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[travis]: https://travis-ci.org/blacktangent/tabs_for\n[codeclimate]: https://codeclimate.com/github/blacktangent/tabs_for\n[fontawesome]: https://fortawesome.github.io/Font-Awesome\n[fontawesomerails]: https://github.com/bokmann/font-awesome-rails\n[coveralls]: https://coveralls.io/r/blacktangent/tabs_for\n[rubygems]: https://rubygems.org/gems/tabs_for\n[gemnasium]: https://gemnasium.com/blacktangent/tabs_for\n\n# TabsFor\n\n[![Build Status](https://travis-ci.org/blacktangent/tabs_for.svg?branch=master)][travis]\n[![Code Climate](https://codeclimate.com/github/blacktangent/tabs_for/badges/gpa.svg)][codeclimate]\n[![Test Coverage](http://img.shields.io/coveralls/blacktangent/tabs_for/master.svg)][coveralls]\n[![Gem Version](http://img.shields.io/gem/v/tabs_for.svg)][rubygems]\n[![Dependency Status](https://gemnasium.com/blacktangent/tabs_for.png)][gemnasium]\n\nActiveView Helper for creating tabs with Bootstrap.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'tabs_for'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install tabs_for\n\nThe gem depends on [Bootstrap 3](http://getbootstrap.com/) to create the tabs. Bring bootstrap into\nyour project by using [Bootstrap for Sass](https://github.com/twbs/bootstrap-sass) or you preferred method.\n\nPreferred icon and CSS framework is [Font Awesome][fontawesome] and the `help` option uses\n[Font Awesome][fontawesome] to display the help icon. This dependency\ncould easily be removed in the future.\nBring [Font Awesome][fontawesome] into your project by using\n[font-awesome-rails][fontawesomerails] or your preferred method.\n\n## Screenshot\n![Screenshot](https://cloud.githubusercontent.com/assets/1222916/9381832/42b92924-4765-11e5-930e-1c5f236173c3.png)\n\n## Sample Application\n\nSample application using `tabs_for` can be found\n[here](https://github.com/blacktangent/tabs_for-demo).\n\n## Usage\n\nGenerate the tabs with corresponding panes using the API below. `tab`\ntakes two arguments and a block. If a symbol is used and the symbol is\nan attribute on the model it will get translated, else the string will\nbe used directly. `tab` requires a block, this will be used as content\nin the tabs pane.\n\n```erb\n\u003c%= tabs_for @project do |b| %\u003e\n  \u003c%= b.tab :tasks, icon: \"tasks\", size: @project.tasks.size, active: true do %\u003e\n    \u003c%= render partial: \"tasks/table\", locals: { tasks: @project.tasks } %\u003e\n  \u003c% end %\u003e\n  \u003c%= b.tab :people, icon: \"users\", size: @project.people.size, label: \"Members\", help: \"Only showing active users.\" do %\u003e\n    \u003c%= render partial: \"people/table\", locals: { people: @project.people } %\u003e\n  \u003c% end %\u003e\n  \u003c%= b.tab :statistics, icon: \"bar-chart\" do %\u003e\n    \u003c%= render \"statistics\", object: @project %\u003e\n  \u003c% end %\u003e\n  \u003c%= b.tab :settings, icon: \"cogs\" do %\u003e\n    \u003c%= render \"settings\", object: @project %\u003e\n  \u003c% end %\u003e\n\u003c% end %\u003e\n```\n\n## Options\nSupported options for `tab`:\n\n* __:active__ - Active tab, the contents will be shown upon rendering.\n* __:label__ - Use custom label text in tab header.\n* __:icon__ - Icon used next to tab header text\n* __:size__ - Number of entires in tab pane. Use if tab pane contains\n  table or list.\n* __:id__ - Override element's ID.\n* __:help__ - Add help text shown on top of tab pane.\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake rspec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/blacktangent/tabs_for. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.\n\n## Testing\n\nTo test against all supported Rails versions, run:\n\n```\nappraisal rake test\n```\n\nTo update all supported Rails to latest patch version:\n\n```\nappraisal update\n```\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelecta%2Ftabs_for","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftelecta%2Ftabs_for","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftelecta%2Ftabs_for/lists"}