{"id":14956048,"url":"https://github.com/luizpicolo/rails_admin_featured_content","last_synced_at":"2025-10-08T18:28:17.917Z","repository":{"id":56890386,"uuid":"61749708","full_name":"luizpicolo/rails_admin_featured_content","owner":"luizpicolo","description":":high_brightness: Easy way for create featured contents using rails_admin","archived":false,"fork":false,"pushed_at":"2017-02-15T19:40:01.000Z","size":555,"stargazers_count":4,"open_issues_count":4,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-15T22:18:17.730Z","etag":null,"topics":["news","rails","rails-admin","ruby","rubyonrails"],"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/luizpicolo.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2016-06-22T20:34:55.000Z","updated_at":"2017-09-28T01:44:03.000Z","dependencies_parsed_at":"2022-08-21T00:50:35.027Z","dependency_job_id":null,"html_url":"https://github.com/luizpicolo/rails_admin_featured_content","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizpicolo%2Frails_admin_featured_content","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizpicolo%2Frails_admin_featured_content/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizpicolo%2Frails_admin_featured_content/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luizpicolo%2Frails_admin_featured_content/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luizpicolo","download_url":"https://codeload.github.com/luizpicolo/rails_admin_featured_content/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234862691,"owners_count":18898398,"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":["news","rails","rails-admin","ruby","rubyonrails"],"created_at":"2024-09-24T13:12:14.146Z","updated_at":"2025-10-06T09:31:08.977Z","avatar_url":"https://github.com/luizpicolo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rails Admin Featured Content\n\n[![Gem Version](https://badge.fury.io/rb/rails_admin_content_builder.svg)](https://badge.fury.io/rb/rails_admin_content_builder)\n[![Code Climate](https://codeclimate.com/github/luizpicolo/rails_admin_featured_content/badges/gpa.svg)](https://codeclimate.com/github/luizpicolo/rails_admin_featured_content)\n[![Test Coverage](https://codeclimate.com/github/luizpicolo/rails_admin_featured_content/badges/coverage.svg)](https://codeclimate.com/github/luizpicolo/rails_admin_featured_content/coverage)\n[![Issue Count](https://codeclimate.com/github/luizpicolo/rails_admin_featured_content/badges/issue_count.svg)](https://codeclimate.com/github/luizpicolo/rails_admin_featured_content)\n[![Build Status](https://travis-ci.org/luizpicolo/rails_admin_featured_content.svg?branch=master)](https://travis-ci.org/luizpicolo/rails_admin_featured_content)\n\nAn easy way for creating Featured Content using [rails_admin](https://github.com/sferik/rails_admin).\n\n## Preview\n\n![featured-min](https://cloud.githubusercontent.com/assets/2979365/20011773/7b5a7544-a28b-11e6-950c-3b47f4556b98.jpg)\n\n### Demonstration\n\n[Featured Content](https://example-cb-fc.herokuapp.com/admin/rails_admin_featured_content~featured_content/4/featured_content)   \n[Featured generated](https://example-cb-fc.herokuapp.com/)\n\n## Important\n\nFirst, make sure that the gem [rails_admin_content_builder](https://github.com/luizpicolo/rails_admin_content_builder) is installed and working properly.\n\n## Installation\n\n**Test with rails \u003c 5 and TurboLink \u003c 5**\n\nAdd this line to your application's Gemfile:\nThis is a complement to the gem rails_admin_content_builder, only works with dependencies listed in the requirements and not alone.\n\n```ruby\ngem 'owlcarousel-rails' # For slides\ngem 'rails_admin_featured_content'\n```\n\nAfter the above step, execute:\n\n    $ bundle\n\nRun the generator and migrations:\n\n    rails g rails_admin_featured_content\n    rake db:migrate\n\nAdd styles in app/assets/stylesheets/application.scss:\n\n```ruby\n*= require rails_admin_featured_content\n*= require owl.carousel\n*= require owl.theme\n```\n\nAdd Javascript in app/assets/javascripts/application.js:\n\n```ruby\n//= require owl.carousel\n```\n\n```javascript\n$(document).ready(function() {\n  $(\".fc-slide\").owlCarousel({\n    autoPlay: 7000,\n    singleItem: true,\n    stopOnHover: true,\n    slideSpeed: 500,\n    paginationSpeed: 500,\n    rewindSpeed: 1000,\n    navigation: true,\n    navigationText: ['\u003cspan class=\"ion-chevron-left\"\u003e\u003c/span\u003e','\u003cspan class=\"ion-chevron-right\"\u003e\u003c/span\u003e']\n  });\n});\n\n```\n\nAlso, add in view/layouts/application.html.erb (optional):\n\n```html\n\u003clink rel=\"stylesheet\" href=\"http://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css\" media=\"all\"\u003e\n```\n\n## Usage\n\nInclude this in your controller:\n\n```ruby\n@featured = RailsAdminFeaturedContent::FeaturedContent.where(status: true).first\n```\n\nIn your show featured content view:\n\n```\n\u003c%= @featured.featured_sanitized %\u003e\n```\n\n## Requirements\n\nDependencies:\n\n    MiniMagick\n    Rails_admin\n    Rails_admin_content_builder\n\nSupported ORM:\n\n    ActiveRecord\n\nSupported Asset Plugin:\n\n    CarrierWave\n\n## TODO\n\n - Tests :)\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, execute `rake spec` 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/luizpicolo/rails_admin_featured_content. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\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%2Fluizpicolo%2Frails_admin_featured_content","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluizpicolo%2Frails_admin_featured_content","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluizpicolo%2Frails_admin_featured_content/lists"}