Improves valuator groups index count

This commit is contained in:
decabeza
2018-02-09 17:16:17 +01:00
committed by rgarcia
parent 13d0b08cb4
commit 3163293626
4 changed files with 11 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
class Admin::ValuatorGroupsController < Admin::BaseController class Admin::ValuatorGroupsController < Admin::BaseController
def index def index
@groups = ValuatorGroup.all @groups = ValuatorGroup.all.page(params[:page])
end end
def show def show

View File

@@ -3,7 +3,7 @@
<%= link_to t("admin.valuator_groups.index.new"), new_admin_valuator_group_path, class: "button float-right" %> <%= link_to t("admin.valuator_groups.index.new"), new_admin_valuator_group_path, class: "button float-right" %>
<% if @groups.any? %> <% if @groups.any? %>
<h3 class="margin">There are <%= @groups.count %> groups of users</h3> <h3 class="margin"><%= page_entries_info @groups %></h3>
<table> <table>
<thead> <thead>
@@ -16,6 +16,7 @@
</tbody> </tbody>
</table> </table>
<%= paginate @groups %>
<% else %> <% else %>
<div class="callout primary"> <div class="callout primary">
<%= t("admin.valuator_groups.index.no_groups") %> <%= t("admin.valuator_groups.index.no_groups") %>

View File

@@ -32,8 +32,11 @@ en:
one: "Administrator" one: "Administrator"
other: "Administrators" other: "Administrators"
valuator: valuator:
one: "Evaluador" one: "Valuator"
other: "Evaluadores" other: "Valuators"
valuator_group:
one: "Valuator group"
other: "Valuator groups"
manager: manager:
one: "Manager" one: "Manager"
other: "Managers" other: "Managers"

View File

@@ -34,6 +34,9 @@ es:
valuator: valuator:
one: "Evaluador" one: "Evaluador"
other: "Evaluadores" other: "Evaluadores"
valuator_group:
one: "Grupo de Evaluadores"
other: "Grupos de Evaluadores"
manager: manager:
one: "Gestor" one: "Gestor"
other: "Gestores" other: "Gestores"