Browse Source

using helper in other views

pull/643/head
JG 3 years ago
parent
commit
9b59d837a2
  1. 2
      app/views/case_logs/index.html.erb
  2. 2
      app/views/organisations/logs.html.erb
  3. 2
      app/views/organisations/users.html.erb
  4. 2
      app/views/users/index.html.erb

2
app/views/case_logs/index.html.erb

@ -1,4 +1,4 @@
<% item_label = @pagy.count > 1 ? "logs" : "log" %>
<% item_label = format_label(@pagy.count, "log") %>
<% if @searched.present? %>
<% title = "#{current_user.support? ? 'Logs' : current_user.organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %>

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

@ -1,4 +1,4 @@
<% item_label = @pagy.count > 1 ? "logs" : "log" %>
<% item_label = format_label(@pagy.count, "log") %>
<% if @searched.present? %>
<% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’)" %>
<% else %>

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

@ -1,4 +1,4 @@
<% item_label = @pagy.count > 1 ? "users" : "user" %>
<% item_label = format_label(@pagy.count, "user") %>
<% if @searched.present? %>
<% title = "#{@organisation.name} (#{@pagy.count} #{item_label} matching ‘#{@searched}’" %>
<% else %>

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

@ -1,4 +1,4 @@
<% item_label = @pagy.count > 1 ? "users" : "user" %>
<% 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 %>

Loading…
Cancel
Save