Browse Source

switched users to using helper

pull/643/head
JG 3 years ago
parent
commit
081842db79
  1. 2
      app/views/organisations/logs.html.erb
  2. 6
      app/views/users/index.html.erb

2
app/views/organisations/logs.html.erb

@ -1,5 +1,5 @@
<% item_label = format_label(@pagy.count, "log") %>
<% title = format_title(request.path, @searched, "Logs", current_user, item_label, @pagy.count, nil) %>
<% title = format_title(request.path, @searched, "Logs", current_user, item_label, @pagy.count, @organisation.name) %>
<% content_for :title, title %>

6
app/views/users/index.html.erb

@ -1,9 +1,5 @@
<% item_label = format_label(@pagy.count, "user") %>
<% if @searched.present? %>
<% title = "#{current_user.support? ? 'Users' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %>
<% title = "Users" %>
<% end %>
<% title = format_title(request.path, @searched, "Users", current_user, item_label, @pagy.count, nil) %>
<% content_for :title, title %>

Loading…
Cancel
Save