Adds button to proposal's show to 'Send notification'

This commit is contained in:
Alberto Garcia Cabeza
2016-06-15 17:13:44 +02:00
parent e7a98f2adb
commit 2dc39192b8
5 changed files with 14 additions and 3 deletions

View File

@@ -12,6 +12,11 @@
<div class="small-12 medium-9 column">
<%= render "shared/back_link" %>
<% if author_of?(@proposal, current_user) %>
<%= link_to t("proposals.show.send_notification"), new_proposal_notification_path(proposal_id: @proposal.id),
class: 'button hollow float-right' %>
<% end %>
<% if current_user && @proposal.editable_by?(current_user) %>
<%= link_to edit_proposal_path(@proposal), class: 'edit-proposal button hollow float-right' do %>
<%= t("proposals.show.edit_proposal_link") %>