Commit 50ae6b0d authored by gwendal's avatar gwendal
Browse files

fix services#index pour les services arretés

parent 6f5209f1
......@@ -31,12 +31,8 @@
<th class="login"><%= sortable "number, login", i18n.t('.login') %></th>
<th class="member"><%= sortable "members.name", i18n.t('.member') %></th>
<th class="expired_at"><%= sortable "expired_at", i18n.t('.expired_at') %></th>
<% if can? :show, @services %>
<th></th>
<% end %>
<% if can? :show, @services %>
<th></th>
<% end %>
<th></th>
<th class="balance"><%= sortable "balance", i18n.t('.balance') %></th>
<th class="deposit"><%= sortable "deposit", i18n.t('.deposit') %></th>
......@@ -48,15 +44,9 @@
<td class="login"><%= link_to service.login, service %></td>
<td class="member"><%= link_to service.member.name, service.member %></td>
<td class="expired_at"><%= service.expired_at.blank? ? I18n.t('service.no_expiration') : service.expired_at %></td>
<% if can? :show, service %>
<td><%= link_to t(:show_service_details), service %></td>
<% end %>
<% if can? :edit, service %>
<td><%= link_to t(:edit_service), [:edit, service] %></td>
<% end %>
<% if can? :destroy, service %>
<td><%= link_to t(:remove_service), service, method: :delete, data: { confirm: 'Are you sure?' } %></td>
<% end %>
<td><% if can? :show, service %><%= link_to t(:show_service_details), service %> <% end %></td>
<td><% if can? :edit, service %><%= link_to t(:edit_service), [:edit, service] %> <% end %></td>
<td><% if can? :destroy, service %><%= link_to t(:remove_service), service, method: :delete, data: { confirm: 'Are you sure?' } %> <% end %></td>
<td class="balance"> <%= service.balance_formatted %> </td>
<td class="deposit"> <%= service.balance_deposit_formatted %> </td>
</tr>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment