Merge pull request #1805 from consul/users-proposal

Users proposal list
This commit is contained in:
BertoCQ
2017-08-29 10:14:27 +02:00
committed by GitHub
3 changed files with 15 additions and 7 deletions

View File

@@ -7,28 +7,34 @@
<% if proposal.retired? %>
<td class="text-center">
<td class="text-center" colspan="2">
<span class="label alert"><%= t('users.proposals.retired') %></span>
</td>
<% elsif author?(proposal) %>
<td class="text-center">
<td>
<%= link_to t("users.proposals.send_notification"),
new_proposal_notification_path(proposal_id: proposal.id),
class: 'button hollow' %>
class: 'button hollow expanded' %>
</td>
<td class="text-center">
<td>
<% 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' %>
class: 'button hollow alert expanded' %>
<% end %>
</td>
<% else %>
<td class="text-center" colspan="2">
<%= link_to t('users.proposals.see'), proposal, class: 'button hollow' %>
</td>
<% end %>
</tr>

View File

@@ -676,7 +676,8 @@ en:
proposals:
send_notification: "Send notification"
retire: "Retire"
retired: "Retired"
retired: "Retired proposal"
see: "See proposal"
votes:
agree: I agree
anonymous: Too many anonymous votes to admit vote %{verify_account}.

View File

@@ -676,7 +676,8 @@ es:
proposals:
send_notification: "Enviar notificación"
retire: "Retirar"
retired: "Retirada"
retired: "Propuesta retirada"
see: "Ver propuesta"
votes:
agree: Estoy de acuerdo
anonymous: Demasiados votos anónimos, para poder votar %{verify_account}.