{"id":13394919,"url":"https://github.com/TrestleAdmin/trestle","last_synced_at":"2025-03-13T20:31:47.116Z","repository":{"id":11003506,"uuid":"67960206","full_name":"TrestleAdmin/trestle","owner":"TrestleAdmin","description":"A modern, responsive admin framework for Ruby on Rails","archived":false,"fork":false,"pushed_at":"2024-10-23T06:45:01.000Z","size":17001,"stargazers_count":1964,"open_issues_count":110,"forks_count":177,"subscribers_count":56,"default_branch":"main","last_synced_at":"2024-10-29T14:15:13.679Z","etag":null,"topics":["admin-dashboard","rails","ruby"],"latest_commit_sha":null,"homepage":"https://trestle.io","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TrestleAdmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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":"2016-09-11T23:36:22.000Z","updated_at":"2024-10-28T02:36:03.000Z","dependencies_parsed_at":"2023-10-16T16:21:47.189Z","dependency_job_id":"f0857ff6-dab7-4e4b-8bcd-75cb5add421b","html_url":"https://github.com/TrestleAdmin/trestle","commit_stats":{"total_commits":1400,"total_committers":31,"mean_commits":45.16129032258065,"dds":0.03928571428571426,"last_synced_commit":"66ad8778fc541eb17dc43b0375eb9fd5765420d5"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrestleAdmin%2Ftrestle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrestleAdmin%2Ftrestle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrestleAdmin%2Ftrestle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TrestleAdmin%2Ftrestle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TrestleAdmin","download_url":"https://codeload.github.com/TrestleAdmin/trestle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243086250,"owners_count":20234006,"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-dashboard","rails","ruby"],"created_at":"2024-07-30T17:01:36.153Z","updated_at":"2025-03-13T20:31:47.086Z","avatar_url":"https://github.com/TrestleAdmin.png","language":"Ruby","readme":"\u003ca href=\"https://github.com/TrestleAdmin/trestle\"\u003e\n    \u003cimg src=\"https://avatars3.githubusercontent.com/u/29348992?v=3\u0026s=200\" alt=\"Trestle Logo\" width=\"60\" align=\"right\" /\u003e\n\u003c/a\u003e\n\n# Trestle\n\n[![RubyGem](https://img.shields.io/gem/v/trestle?include_prereleases\u0026color=%234d6bb2)](https://rubygems.org/gems/trestle)\n[![Build Status](https://img.shields.io/github/actions/workflow/status/TrestleAdmin/trestle/rspec.yml?style=flat)](https://github.com/TrestleAdmin/trestle/actions)\n[![Coveralls](https://img.shields.io/coveralls/TrestleAdmin/trestle.svg?style=flat)](https://coveralls.io/github/TrestleAdmin/trestle)\n[![Code Climate](https://api.codeclimate.com/v1/badges/c529a7a9c500ed81baed/maintainability)](https://codeclimate.com/github/TrestleAdmin/trestle)\n\n[Demo Site](https://demo.trestle.io) | [Demo Source Code](https://github.com/TrestleAdmin/RailsFlixDemo)\n\n\u003e A modern, responsive admin framework for Ruby on Rails\n\n![Trestle-Screenshot-1](https://github.com/TrestleAdmin/trestle/assets/7600/5fb3265b-bc34-4fc9-8a96-2977db8571a1)|![Trestle-Screenshot-2](https://github.com/TrestleAdmin/trestle/assets/7600/c6ff3af6-4f6f-4978-9a81-79060ae5f33c)\n|:-:|:-:|\n\n\n## Getting Started\n\nTo start using Trestle, first add it to your application's Gemfile:\n\n```ruby\ngem 'trestle'\n```\n\nRun `bundle install`, and then run the install generator to create the initial configuration file and customization hooks:\n\n    $ rails generate trestle:install\n\nThen create your first admin resource (assuming you have an existing `Article` model):\n\n    $ rails generate trestle:resource Article\n\nAfter restarting your Rails server, visit http://localhost:3000/admin to view your newly created admin. You will find the admin definition in `app/admin/articles_admin.rb` ready to customize.\n\n\n## Example\n\n```ruby\nTrestle.resource(:posts) do\n  # Add a link to this admin in the main navigation\n  menu do\n    group :blog_management, priority: :first do\n      item :posts, icon: \"fa fa-file-text-o\"\n    end\n  end\n\n  # Define custom scopes for the index view\n  scopes do\n    scope :all, default: true\n    scope :published\n    scope :drafts, -\u003e { Post.unpublished }\n  end\n\n  # Define the index view table listing\n  table do\n    column :title, link: true\n    column :author, -\u003e(post) { post.author.name }\n    column :published, align: :center do |post|\n      status_tag(icon(\"fa fa-check\"), :success) if post.published?\n    end\n    column :updated_at, header: \"Last Updated\", align: :center\n    actions\n  end\n\n  # Define the form structure for the new \u0026 edit actions\n  form do\n    # Organize fields into tabs and sidebars\n    tab :post do\n      text_field :title\n\n      # Define custom form fields for easy re-use\n      editor :body\n    end\n\n    tab :metadata do\n      # Layout fields based on a 12-column grid\n      row do\n        col(sm: 6) { select :author, User.all }\n        col(sm: 6) { tag_select :tags }\n      end\n    end\n\n    sidebar do\n      # Render a custom partial: app/views/admin/posts/_sidebar.html.erb\n      render \"sidebar\"\n    end\n  end\nend\n```\n\n\n## Plugins\n\nThe following plugins are currently available:\n\n| Name | Description | Links |\n| --- | --- | --- |\n| *trestle-auth* | User authentication plugin | [GitHub](https://github.com/TrestleAdmin/trestle-auth) \\| [RubyGems](https://rubygems.org/gems/trestle-auth) |\n| *trestle-search* | Search plugin | [GitHub](https://github.com/TrestleAdmin/trestle-search) \\| [RubyGems](https://rubygems.org/gems/trestle-search) |\n| *trestle-tinymce* | [TinyMCE](https://www.tinymce.com/) (WYSIWYG editor) integration | [GitHub](https://github.com/TrestleAdmin/trestle-tinymce) \\| [RubyGems](https://rubygems.org/gems/trestle-tinymce) |\n| *trestle-simplemde* | [SimpleMDE](https://simplemde.com/) (Markdown editor) integration | [GitHub](https://github.com/TrestleAdmin/trestle-simplemde) \\| [RubyGems](https://rubygems.org/gems/trestle-simplemde) |\n| *trestle-sidekiq* | [Sidekiq](http://sidekiq.org/) integration | [GitHub](https://github.com/TrestleAdmin/trestle-sidekiq) \\| [RubyGems](https://rubygems.org/gems/trestle-sidekiq) |\n| *trestle-active_storage* | [Active Storage](https://guides.rubyonrails.org/active_storage_overview.html) integration | [GitHub](https://github.com/richardvenneman/trestle-active_storage) \\| [RubyGems](https://rubygems.org/gems/trestle-active_storage) |\n| *trestle-mobility* | [Mobility](https://github.com/shioyama/mobility) integration | [GitHub](https://github.com/richardvenneman/trestle-mobility) \\| [RubyGems](https://rubygems.org/gems/trestle-mobility) |\n| *trestle-omniauth* | OmniAuth authentication plugin | [GitHub](https://github.com/airhorns/trestle-omniauth) \\| [RubyGems](https://rubygems.org/gems/trestle-omniauth) |\n| *trestle-auth-otp* | 2FA/OTP user authentication | [GitHub](https://github.com/McRipper/trestle-auth-otp) \\| [RubyGems](https://rubygems.org/gems/trestle-auth-otp) |\n\n\n## Development\n\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md) for information on developing and contributing to Trestle.\n\n\n## License\n\nThe gem is available as open source under the terms of the [LGPLv3 License](https://opensource.org/licenses/LGPL-3.0).\n","funding_links":[],"categories":["Ruby","Admin Panel","Admin Interface"],"sub_categories":["Omniauth"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrestleAdmin%2Ftrestle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTrestleAdmin%2Ftrestle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTrestleAdmin%2Ftrestle/lists"}