Add following tab to user public page.
This commit is contained in:
committed by
Senén Rodero Rodríguez
parent
52e195d837
commit
7e2e94d709
25
app/views/users/_proposal.html.erb
Normal file
25
app/views/users/_proposal.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user