0.0
No commit activity in last 3 years
No release in over 3 years
Blacklight RTL gem provides a right to left layout to Blacklight (http://projectblacklight.org/) open source ruby on rails project.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 5.0.0
 Project Readme

Blacklight RTL

Gem Version

Right to Left Layout for Blacklight 5.x.

Preview

Installation

Add Blacklight RTL to your Gemfile:

gem "blacklight_rtl"

Run bundle install to download the latest version:

bundle install

Change the default import statment in blacklight.css.scss to:

@import 'blacklight_rtl/blacklight_rtl';

Localization

You can change the default language to Hebrew, just add config.i18n.default_locale = :heb to application.rb.

Affected Files

This gem overwrite few base view files to change the overall layout to RTL.

Here is the affected files:

  • /app/views/bookmarks/index.html.erb
  • /app/views/search_history/index.html.erb
  • /app/views/_user_util_links.html.erb
  • /app/views/catalog/_constraints.html.erb
  • /app/views/catalog/_facet_pagination.html.erb
  • /app/views/catalog/_index_header_default.html.erb
  • /app/views/catalog/_previous_next_doc.html.erb
  • /app/views/catalog/_sort_and_per_page.html.erb

TODO

  • Translate tools and login sections.
  • Create variables for CSS configuration and expose them to the root appplication.