Fixes #155
This commit is contained in:
@@ -31,6 +31,13 @@
|
|||||||
data: { confirm: t('images.actions.destroy.confirm') } %>
|
data: { confirm: t('images.actions.destroy.confirm') } %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
<% unless proposal.retired? %>
|
||||||
|
<%= link_to t('.retire'),
|
||||||
|
retire_form_proposal_path(proposal),
|
||||||
|
class: 'menu-entry',
|
||||||
|
target: '_blank' %>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<%= link_to t('.publish'), publish_proposal_dashboard_index_path(proposal), method: :patch, class: 'menu-entry' if can?(:publish, proposal) %>
|
<%= link_to t('.publish'), publish_proposal_dashboard_index_path(proposal), method: :patch, class: 'menu-entry' if can?(:publish, proposal) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
|
|||||||
@@ -11,24 +11,15 @@
|
|||||||
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<% elsif author?(proposal) %>
|
<% elsif can?(:dashboard, proposal) %>
|
||||||
|
|
||||||
<td>
|
|
||||||
<%= link_to t("users.proposals.send_notification"),
|
|
||||||
new_proposal_notification_path(proposal_id: proposal.id),
|
|
||||||
class: 'button hollow expanded' %>
|
|
||||||
</td>
|
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<% if proposal.retired? %>
|
<% if proposal.retired? %>
|
||||||
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
<span class="label alert"><%= t('users.proposals.retired') %></span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to t('users.proposals.retire'),
|
<%= link_to t('proposals.show.dashboard_proposal_link'),
|
||||||
retire_form_proposal_path(proposal),
|
proposal_dashboard_index_path(proposal), class: 'button hollow expanded' %>
|
||||||
class: 'button hollow alert expanded' %>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
||||||
<td class="text-center" colspan="2">
|
<td class="text-center" colspan="2">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<table class="margin-top">
|
<table class="margin-top">
|
||||||
<thead>
|
<thead>
|
||||||
<th scope="col"><%= t("users.show.proposals") %></th>
|
<th scope="col"><%= t("users.show.proposals") %></th>
|
||||||
<th scope="col" colspan="2"><%= t("users.show.actions") %></th>
|
<th scope="col"><%= t("users.show.actions") %></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<% @proposals.each do |proposal| %>
|
<% @proposals.each do |proposal| %>
|
||||||
|
|||||||
@@ -494,6 +494,7 @@ en:
|
|||||||
publish: Publish
|
publish: Publish
|
||||||
edit_proposal_link: Edit
|
edit_proposal_link: Edit
|
||||||
send_notification: Send notification
|
send_notification: Send notification
|
||||||
|
retire: Retire
|
||||||
polls:
|
polls:
|
||||||
all: "All"
|
all: "All"
|
||||||
no_dates: "no date assigned"
|
no_dates: "no date assigned"
|
||||||
@@ -792,7 +793,6 @@ en:
|
|||||||
delete_alert: "Are you sure you want to delete your investment project? This action can't be undone"
|
delete_alert: "Are you sure you want to delete your investment project? This action can't be undone"
|
||||||
proposals:
|
proposals:
|
||||||
send_notification: "Send notification"
|
send_notification: "Send notification"
|
||||||
retire: "Retire"
|
|
||||||
retired: "Retired proposal"
|
retired: "Retired proposal"
|
||||||
see: "See proposal"
|
see: "See proposal"
|
||||||
votes:
|
votes:
|
||||||
|
|||||||
@@ -494,6 +494,7 @@ es:
|
|||||||
publish: Publicar
|
publish: Publicar
|
||||||
edit_proposal_link: Editar propuesta
|
edit_proposal_link: Editar propuesta
|
||||||
send_notification: Enviar notificación
|
send_notification: Enviar notificación
|
||||||
|
retire: Retirar
|
||||||
polls:
|
polls:
|
||||||
all: "Todas"
|
all: "Todas"
|
||||||
no_dates: "sin fecha asignada"
|
no_dates: "sin fecha asignada"
|
||||||
@@ -791,7 +792,6 @@ es:
|
|||||||
delete_alert: "¿Estás seguro de que deseas borrar tu proyecto de gasto? Esta acción no se puede deshacer"
|
delete_alert: "¿Estás seguro de que deseas borrar tu proyecto de gasto? Esta acción no se puede deshacer"
|
||||||
proposals:
|
proposals:
|
||||||
send_notification: "Enviar notificación"
|
send_notification: "Enviar notificación"
|
||||||
retire: "Retirar"
|
|
||||||
retired: "Propuesta retirada"
|
retired: "Propuesta retirada"
|
||||||
see: "Ver propuesta"
|
see: "Ver propuesta"
|
||||||
votes:
|
votes:
|
||||||
|
|||||||
Reference in New Issue
Block a user