diff --git a/app/assets/stylesheets/admin.scss b/app/assets/stylesheets/admin.scss index aad328501..e5070af3b 100644 --- a/app/assets/stylesheets/admin.scss +++ b/app/assets/stylesheets/admin.scss @@ -27,6 +27,10 @@ $sidebar-active: #f4fcd0; font-weight: 100; margin-bottom: $line-height; + small { + color: $text-medium; + } + &.title { text-transform: uppercase; } @@ -634,6 +638,7 @@ $sidebar-active: #f4fcd0; .admin-content .select-heading { a { + color: $text; display: block; &.is-active { diff --git a/app/views/valuation/budget_investments/index.html.erb b/app/views/valuation/budget_investments/index.html.erb index 20bdf95cb..273ff72c9 100644 --- a/app/views/valuation/budget_investments/index.html.erb +++ b/app/views/valuation/budget_investments/index.html.erb @@ -1,9 +1,9 @@

<%= @budget.name %> - <%= t("valuation.budget_investments.index.title") %> - <%= t('valuation.budget_investments.index.assigned_to', valuator: current_user.name) %> + <%= t("valuation.budget_investments.index.assigned_to", valuator: current_user.name) %>

-
+
<% @heading_filters.each_slice(8) do |slice| %>
<% slice.each do |filter| %> @@ -18,37 +18,43 @@ <%= render 'shared/filter_subnav', i18n_namespace: "valuation.budget_investments.index" %> -

<%= page_entries_info @investments %>

+<% if @investments.any? %> +

<%= page_entries_info @investments %>

- - - - - - - - - - - <% @investments.each do |investment| %> - - - - - +
<%= t("valuation.budget_investments.index.table_id") %><%= t("valuation.budget_investments.index.table_title") %><%= t("valuation.budget_investments.index.table_heading_name") %><%= t("valuation.budget_investments.index.table_actions") %>
- <%= investment.id %> - - <%= link_to investment.title, valuation_budget_budget_investment_path(@budget, investment) %> - - <%= investment.heading.name %> - - <%= link_to t("valuation.budget_investments.index.edit"), - edit_valuation_budget_budget_investment_path(@budget, investment), - class: "button hollow expanded" %> -
+ + + + + + - <% end %> - -
<%= t("valuation.budget_investments.index.table_id") %><%= t("valuation.budget_investments.index.table_title") %><%= t("valuation.budget_investments.index.table_heading_name") %><%= t("valuation.budget_investments.index.table_actions") %>
+ + + <% @investments.each do |investment| %> + + + <%= investment.id %> + + + <%= link_to investment.title, valuation_budget_budget_investment_path(@budget, investment) %> + + + <%= investment.heading.name %> + + + <%= link_to t("valuation.budget_investments.index.edit"), + edit_valuation_budget_budget_investment_path(@budget, investment), + class: "button hollow expanded" %> + + + <% end %> + + -<%= paginate @investments %> + <%= paginate @investments %> +<% else %> +
+ <%= t("valuation.budget_investments.index.no_investments") %> +
+<% end %> diff --git a/config/locales/en/valuation.yml b/config/locales/en/valuation.yml index 18fb6ab87..116a86c5a 100644 --- a/config/locales/en/valuation.yml +++ b/config/locales/en/valuation.yml @@ -35,6 +35,7 @@ en: table_title: Title table_heading_name: Heading name table_actions: Actions + no_investments: "There are no investment projects." show: back: Back title: Investment project diff --git a/config/locales/es/valuation.yml b/config/locales/es/valuation.yml index 48fb68846..0cbd71b1e 100644 --- a/config/locales/es/valuation.yml +++ b/config/locales/es/valuation.yml @@ -35,6 +35,7 @@ es: table_title: Título table_heading_name: Nombre de la partida table_actions: Acciones + no_investments: "No hay proyectos de gasto." show: back: Volver title: Proyecto de gasto