{"id":20481181,"url":"https://github.com/rolandasb/staff_bar","last_synced_at":"2026-04-13T06:11:26.516Z","repository":{"id":59156316,"uuid":"218260809","full_name":"rolandasb/staff_bar","owner":"rolandasb","description":"Show basic application information for administrators in Rails projects.","archived":false,"fork":false,"pushed_at":"2024-07-14T11:06:25.000Z","size":221,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-18T16:08:31.018Z","etag":null,"topics":["admin","administrators","rails","ruby","ruby-on-rails","staff"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/staff_bar","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/rolandasb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-29T10:27:11.000Z","updated_at":"2024-07-14T11:06:24.000Z","dependencies_parsed_at":"2024-11-15T05:39:15.104Z","dependency_job_id":null,"html_url":"https://github.com/rolandasb/staff_bar","commit_stats":null,"previous_names":["decentbudget/staff_bar"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandasb%2Fstaff_bar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandasb%2Fstaff_bar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandasb%2Fstaff_bar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rolandasb%2Fstaff_bar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rolandasb","download_url":"https://codeload.github.com/rolandasb/staff_bar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243615336,"owners_count":20319726,"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":["admin","administrators","rails","ruby","ruby-on-rails","staff"],"created_at":"2024-11-15T16:07:17.449Z","updated_at":"2026-01-02T15:07:19.547Z","avatar_url":"https://github.com/rolandasb.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Staff bar\n\n[![Preview](preview-sm.png)](preview.png)\n\nStaff bar is a tiny utility for Ruby on Rails projects. It shows a bar with some basic project information: commit hash, branch, Ruby \u0026 Rails versions, environment and caching status. You can also make a list of links that you want to show on a bar for a quick access to your internal tools.\n\n## Usage\n```ruby\n# Add this to Gemfile\ngem 'staff_bar'\n\n# Install dependencies\nbundle\n```\n\nAdd this to `app/views/layouts/application.html.erb`:\n```ruby\n...\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003c%= staff_bar if current_user.staff? %\u003e\n\n  \u003c%= yield %\u003e\n\u003c/body\u003e\n...\n```\n\n(you can change `current_user.staff?` to whatever your administrators logic is of course.)\n\nAdd this to your `application.css` to use default styles:\n```css\n*= require staff_bar\n```\n\nTo show current branch, add staff_bar capistrano tasks in `Capfile`:\n```ruby\nrequire \"staff_bar/capistrano\"\n```\n\nThis will create `BRANCH` file when deploying, which will staff bar use to show the branch.\n\n## Configuration\n\n```ruby\n# app/config/initializers/staff_bar.rb\nStaffBar.configure do |config|\n  config.links = [\n    { url: '/jobs', title: 'Jobs queue' },\n    { url: '/logs', title: 'Open logs' }\n  ];\n\n  config.theme = :dark # or :light\n  config.position = :bottom # or :top\n  config.highlight_envs = [:production]\nend\n```\n\n## License\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandasb%2Fstaff_bar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frolandasb%2Fstaff_bar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frolandasb%2Fstaff_bar/lists"}