Add following tab to user public page.

This commit is contained in:
taitus
2017-06-30 18:26:46 +02:00
committed by Senén Rodero Rodríguez
parent 52e195d837
commit 7e2e94d709
10 changed files with 79 additions and 63 deletions

View File

@@ -0,0 +1,25 @@
<tr id="proposal_<%= proposal.id %>">
<td>
<%= link_to proposal.title, proposal, proposal.retired? ? {class: 'retired'} : {} %>
<br>
<%= proposal.summary %>
</td>
<% if author? %>
<td class="text-center">
<%= link_to t("users.proposals.send_notification"), new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow' %>
</td>
<td class="text-center">
<% if proposal.retired? %>
<span class="label alert"><%= t('users.proposals.retired') %></span>
<% else %>
<%= link_to t('users.proposals.retire'),
retire_form_proposal_path(proposal),
class: 'button hollow alert' %>
<% end %>
</td>
<% end %>
</tr>