Skip to content

Commit

Permalink
Enable RTL subtitles on exhibits.
Browse files Browse the repository at this point in the history
Closes #274.
  • Loading branch information
tpendragon committed Apr 26, 2018
1 parent 04025b0 commit c4de0dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/shared/_masthead.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<% elsif current_exhibit %>
<%= current_exhibit.title %>
<% if current_exhibit.subtitle.present? %>
<small><%= current_exhibit.subtitle %></small>
<small dir='<%= current_exhibit.subtitle.dir %>'><%= current_exhibit.subtitle %></small>
<% end %>
<% else %>
<%= application_name %>
Expand Down
3 changes: 2 additions & 1 deletion spec/features/exhibit_home_page_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'rails_helper'

RSpec.feature 'Exhibit Home Page', type: :feature do
let(:exhibit) { FactoryBot.create(:exhibit) }
let(:exhibit) { FactoryBot.create(:exhibit, subtitle: "بي") }

context 'a logged in site admin' do
let(:user) { FactoryBot.create(:site_admin) }
Expand All @@ -21,6 +21,7 @@
visit spotlight.exhibit_root_path exhibit
expect(page).not_to have_link 'Dashboard'
expect(page).not_to have_link 'Edit'
expect(page).to have_selector ".site-title > small[dir='rtl']"
end
end
end

0 comments on commit c4de0dd

Please sign in to comment.