Add completed info on finished budgets

This commit is contained in:
decabeza
2020-03-16 12:54:00 +01:00
committed by Javi Martín
parent 4ff8162a2e
commit 2f636eaf77
5 changed files with 39 additions and 4 deletions

View File

@@ -9,7 +9,7 @@
<% if @budgets.any? %>
<h3><%= page_entries_info @budgets %></h3>
<table>
<table class="budgets-table">
<thead>
<tr>
<th><%= t("admin.budgets.index.table_name") %></th>
@@ -20,8 +20,13 @@
<tbody>
<% @budgets.each do |budget| %>
<tr id="<%= dom_id(budget) %>" class="budget">
<td>
<%= budget.name %>
<td class="<%= "budget-completed" if budget.finished? %>">
<% if budget.finished? %>
<span>
<%= t("admin.budgets.index.table_completed") %>
</span>
<% end %>
<strong><%= budget.name %></strong>
</td>
<td class="small">
<%= t("budgets.phase.#{budget.phase}") %>