All Projects → TrestleAdmin → Trestle

TrestleAdmin / Trestle

Licence: lgpl-3.0
A modern, responsive admin framework for Ruby on Rails

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
SCSS
7915 projects
javascript
184084 projects - #8 most used programming language
Haml
164 projects
CSS
56736 projects

Projects that are alternatives of or similar to Trestle

Activeadmin Themes
Awesome themes for ActiveAdmin.
Stars: ✭ 141 (-91.59%)
Mutual labels:  rails, admin-dashboard
Super
A simple, powerful, single dependency Rails admin framework
Stars: ✭ 43 (-97.43%)
Mutual labels:  rails, admin-dashboard
Forest Rails
🌱 Rails Liana for Forest Admin
Stars: ✭ 247 (-85.26%)
Mutual labels:  rails, admin-dashboard
Tabler Rubygem
Rubygem for https://tabler.github.io
Stars: ✭ 77 (-95.41%)
Mutual labels:  rails, admin-dashboard
Administrate
A Rails engine that helps you put together a super-flexible admin dashboard.
Stars: ✭ 5,250 (+213.25%)
Mutual labels:  rails, admin-dashboard
Bhf
Rails-Engine-Gem that offers an admin interface for trusted user
Stars: ✭ 81 (-95.17%)
Mutual labels:  rails, admin-dashboard
Fake api
The fastest way to prototype API in your Rails application
Stars: ✭ 119 (-92.9%)
Mutual labels:  rails
Catarse
The first open source crowdfunding platform for creative projects in the world
Stars: ✭ 1,575 (-6.03%)
Mutual labels:  rails
Any
Any-基于Laravel5.5新的权限管理后台骨架
Stars: ✭ 119 (-92.9%)
Mutual labels:  admin-dashboard
Bootstrap form
Official repository of the bootstrap_form gem, a Rails form builder that makes it super easy to create beautiful-looking forms using Bootstrap 5.
Stars: ✭ 1,532 (-8.59%)
Mutual labels:  rails
Gatsby Admin Template
Free admin dashboard template based on Gatsby with @paljs/ui component package
Stars: ✭ 124 (-92.6%)
Mutual labels:  admin-dashboard
Mandriller
Mandrill SMTP API integration for ActionMailer
Stars: ✭ 124 (-92.6%)
Mutual labels:  rails
String template
A template engine for Rails, focusing on speed, using Ruby's String interpolation syntax
Stars: ✭ 122 (-92.72%)
Mutual labels:  rails
Slidehub
SlideHub is an Open Source Slide Sharing Application for Azure / AWS
Stars: ✭ 120 (-92.84%)
Mutual labels:  rails
Closure tree
Easily and efficiently make your ActiveRecord models support hierarchies
Stars: ✭ 1,665 (-0.66%)
Mutual labels:  rails
Learn Ruby On Rails
為你自己學 Ruby on Rails
Stars: ✭ 119 (-92.9%)
Mutual labels:  rails
Spree auth devise
Provides authentication (user accounts, login & signup) for @spree by using Devise
Stars: ✭ 124 (-92.6%)
Mutual labels:  rails
Calculate All
calculate_all method for aggregate functions in Active Record
Stars: ✭ 118 (-92.96%)
Mutual labels:  rails
Dato.rss
The best RSS Search experience you can find
Stars: ✭ 122 (-92.72%)
Mutual labels:  rails
Core Php Admin Panel
An Admin panel written in core php with CRUD, filters and pagination.
Stars: ✭ 124 (-92.6%)
Mutual labels:  admin-dashboard
Trestle Logo

Trestle

RubyGem Travis Coveralls Code Climate

Demo Site | Demo Source Code

A modern, responsive admin framework for Ruby on Rails

Getting Started

To start using Trestle, first add it to your application's Gemfile:

gem 'trestle'

Run bundle install, and then run the install generator to create the initial configuration file and customization hooks:

$ rails generate trestle:install

Then create your first admin resource (assuming you have an existing Article model):

$ rails generate trestle:resource Article

After 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.

Example

Trestle.resource(:posts) do
  # Add a link to this admin in the main navigation
  menu do
    group :blog_management, priority: :first do
      item :posts, icon: "fa fa-file-text-o"
    end
  end

  # Define custom scopes for the index view
  scopes do
    scope :all, default: true
    scope :published
    scope :drafts, -> { Post.unpublished }
  end

  # Define the index view table listing
  table do
    column :title, link: true
    column :author, ->(post) { post.author.name }
    column :published, align: :center do |post|
      status_tag(icon("fa fa-check"), :success) if post.published?
    end
    column :updated_at, header: "Last Updated", align: :center
    actions
  end

  # Define the form structure for the new & edit actions
  form do
    # Organize fields into tabs and sidebars
    tab :post do
      text_field :title

      # Define custom form fields for easy re-use
      editor :body
    end

    tab :metadata do
      # Layout fields based on a 12-column grid
      row do
        col(sm: 6) { select :author, User.all }
        col(sm: 6) { tag_select :tags }
      end
    end

    sidebar do
      # Render a custom partial: app/views/admin/posts/_sidebar.html.erb
      render "sidebar"
    end
  end
end

Plugins

The following plugins are currently available:

Name Description Links
trestle-auth User authentication plugin GitHub | RubyGems
trestle-search Search plugin GitHub | RubyGems
trestle-tinymce TinyMCE (WYSIWYG editor) integration GitHub | RubyGems
trestle-simplemde SimpleMDE (Markdown editor) integration GitHub | RubyGems
trestle-sidekiq Sidekiq integration GitHub | RubyGems
trestle-active_storage Active Storage integration GitHub | RubyGems
trestle-mobility Mobility integration GitHub | RubyGems
trestle-omniauth OmniAuth authentication plugin GitHub | RubyGems
trestle-auth-otp 2FA/OTP user authentication GitHub | RubyGems

Development

Please see CONTRIBUTING.md for information on developing and contributing to Trestle.

License

The gem is available as open source under the terms of the LGPLv3 License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].