Skip to content

Commit

Permalink
Merge pull request #2498 from projecthydra/works_shared
Browse files Browse the repository at this point in the history
Change tab title
  • Loading branch information
mjgiarlo committed Aug 18, 2016
2 parents aad966f + bedd8a8 commit 293181b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/my/index.html.erb
Expand Up @@ -9,7 +9,7 @@
<%= render partial: 'scripts', formats: [:js] %>
<% end %>

<h1 class="sr-only">My Works, Collections, Highlights, and Files Shared with Me</h1>
<h1 class="sr-only">My Works, Collections, Highlights, and <%= t('sufia.dashboard.my.shares') %></h1>
<ul class="nav nav-tabs" id="my_nav" role="navigation">
<span class="sr-only">You are currently listing your <%= @selected_tab.pluralize %> . You have <%= @response.docs.count %> <%= @selected_tab.pluralize(@response.docs.count)%> </span>
<li class="<%= "active" if @selected_tab == 'works' %>">
Expand Down
2 changes: 1 addition & 1 deletion config/locales/sufia.en.yml
Expand Up @@ -131,7 +131,7 @@ en:
works: "My Works"
collections: "My Collections"
highlights: "My Highlights"
shares: "Files Shared with Me"
shares: "Works Shared with Me"
facet_label:
files: "Filter your files"
collections: "Filter your collections"
Expand Down
2 changes: 1 addition & 1 deletion spec/features/browse_dashboard_files_spec.rb
Expand Up @@ -48,7 +48,7 @@
end

# View other tabs
["My Collections", "My Highlights", "Files Shared with Me"].each do |tab|
["My Collections", "My Highlights", "Works Shared with Me"].each do |tab|
within("#my_nav") do
click_link(tab)
end
Expand Down
2 changes: 1 addition & 1 deletion spec/features/create_work_spec.rb
Expand Up @@ -79,7 +79,7 @@
click_link('Dashboard')
click_link('Shares')

click_link('Files Shared with Me')
click_link('Works Shared with Me')
expect(page).to have_content "My Test Work"
# TODO: Show the work details (owner email)
# first('i.glyphicon-chevron-right').click
Expand Down
2 changes: 1 addition & 1 deletion spec/features/display_dashboard_spec.rb
Expand Up @@ -22,7 +22,7 @@
expect(page).to have_content "My Works"
expect(page).to have_content "My Collections"
expect(page).to have_content "My Highlights"
expect(page).to have_content "Files Shared with Me"
expect(page).to have_content "Works Shared with Me"
end
end
end

0 comments on commit 293181b

Please sign in to comment.