diff --git a/app/assets/stylesheets/participation.scss b/app/assets/stylesheets/participation.scss
index 84e80f01f..8c380caf1 100644
--- a/app/assets/stylesheets/participation.scss
+++ b/app/assets/stylesheets/participation.scss
@@ -395,8 +395,6 @@
}
}
- &.tags,
- &.geozone {
li {
margin-bottom: 0;
@@ -610,6 +608,14 @@
}
}
+.show-actions-menu {
+
+ [class^="icon-"] {
+ display: inline-block;
+ vertical-align: middle;
+ }
+}
+
// 04. List participation
// ----------------------
diff --git a/app/helpers/proposals_helper.rb b/app/helpers/proposals_helper.rb
index 37425d573..f6060603f 100644
--- a/app/helpers/proposals_helper.rb
+++ b/app/helpers/proposals_helper.rb
@@ -32,4 +32,20 @@ module ProposalsHelper
Proposal::RETIRE_OPTIONS.collect { |option| [ t("proposals.retire_options.#{option}"), option ] }
end
+ def can_create_document?
+ can?(:create, @document) && @proposal.documents.size < Proposal.max_documents_allowed
+ end
+
+ def author_of_proposal?
+ author_of?(@proposal, current_user)
+ end
+
+ def current_editable?
+ current_user && @proposal.editable_by?(current_user)
+ end
+
+ def show_actions_menu?
+ can_create_document? || author_of_proposal? || current_editable?
+ end
+
end
\ No newline at end of file
diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb
index 1dc918e8e..46db56ce6 100644
--- a/app/views/proposals/show.html.erb
+++ b/app/views/proposals/show.html.erb
@@ -16,24 +16,6 @@
<%= back_link_to %>
- <% if can?(:create, @document) && @proposal.documents.size < Proposal.max_documents_allowed %>
- <%= link_to t("documents.upload_document"),
- new_document_path(documentable_id: @proposal, documentable_type: @proposal.class.name, from: request.url),
- class: 'button hollow float-right' %>
- <% end %>
-
- <% 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") %>
- <% end %>
- <% end %>
-
<%= @proposal.title %>
<% if @proposal.retired? %>
@@ -122,6 +104,35 @@