app/views/page/_index.mobile.erb in enju_leaf-1.1.0.rc12 vs app/views/page/_index.mobile.erb in enju_leaf-1.1.0.rc13
- old
+ new
@@ -2,24 +2,24 @@
<h1><%= @library_group.display_name.localize %></h1>
</div>
<div data-role="content">
<h2 class="title">
<% if user_signed_in? %>
- <%= t('page.user_title', :login_name => current_user.username) -%>
+ <%= t('page.user_title', login_name: current_user.username) -%>
<% else %>
<%= t('page.catalog_search') -%>
<% end %>
</h2>
<div id="user_search_form">
<%= render 'page/search_form' -%>
- <p><%= t('page.number_of_manifestations', :numdocs => Manifestation.search.total, :count => Manifestation.search.total) -%></p>
- <h3 style="display: inline"><%= link_to t('page.new_resource'), manifestations_path(:mode => 'recent') -%></h3>
+ <p><%= t('page.number_of_manifestations', numdocs: Manifestation.search.total, count: Manifestation.search.total) -%></p>
+ <h3 style="display: inline"><%= link_to t('page.new_resource'), manifestations_path(mode: 'recent') -%></h3>
<% if defined?(EnjuQuestion) %>
<h4 style="display: inline"><%= link_to t('activerecord.models.question'), questions_path %></h4>
<% end %>
<% if defined?(EnjuBookmark) %>
<% if user_signed_in? %>
- <h4 style="display: inline"><%= link_to t('activerecord.models.bookmark'), user_bookmarks_path(current_user) %></h4>
+ <h4 style="display: inline"><%= link_to t('activerecord.models.bookmark'), bookmarks_path(user_id: current_user.username) %></h4>
<% end %>
<% end %>
</div>
</div>