Skip to content

Blacklight RTL replace the default layout of Blacklight Project to RTL.

License

Notifications You must be signed in to change notification settings

mottiok/blacklight_rtl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Blacklight RTL replace the default layout of Blacklight Project to RTL.

Resources

License

Stars

Watchers

Forks

Packages

No packages published