summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-06 16:56:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-05-06 16:56:38 +0000
commit860ae0631ad5514a08db6ac980c1b0ff3bbb170a (patch)
tree398957b6ec965732e7f5ee4ba62c6fa6c98cb19a /app/views
parent66325149be43b624a05f962d1e0cd0d4eba51fdb (diff)
downloadredmine-860ae0631ad5514a08db6ac980c1b0ff3bbb170a.tar.gz
redmine-860ae0631ad5514a08db6ac980c1b0ff3bbb170a.zip
Adds edit links on the roadmap (#22756).
git-svn-id: http://svn.redmine.org/redmine/trunk@15370 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/versions/index.html.erb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/versions/index.html.erb b/app/views/versions/index.html.erb
index 53b70b0c7..0f1d0b842 100644
--- a/app/views/versions/index.html.erb
+++ b/app/views/versions/index.html.erb
@@ -11,6 +11,11 @@
<div id="roadmap">
<% @versions.each do |version| %>
<article class="version-article <%= version.css_classes %>">
+ <% if User.current.allowed_to?(:manage_versions, version.project) %>
+ <div class="contextual">
+ <%= link_to l(:button_edit), edit_version_path(version), :title => l(:button_edit), :class => 'icon-only icon-edit' %>
+ </div>
+ <% end %>
<header>
<h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
</header>