summaryrefslogtreecommitdiffstats
path: root/app/views/projects/settings
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-04 19:34:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-04 19:34:58 +0000
commitb86a748b1d3a41fa328e4e1f61cdf1acee8137f6 (patch)
treeaa4c4b166dffaf8793419072d5be08e029a9d491 /app/views/projects/settings
parentdaa426167f2ce2cb9e044d340ed4ba42cfe599f6 (diff)
downloadredmine-b86a748b1d3a41fa328e4e1f61cdf1acee8137f6.tar.gz
redmine-b86a748b1d3a41fa328e4e1f61cdf1acee8137f6.zip
Adds REST API for versions (#7403).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6180 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/settings')
-rw-r--r--app/views/projects/settings/_versions.rhtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/settings/_versions.rhtml b/app/views/projects/settings/_versions.rhtml
index f9a4dd109..f00fe5bd2 100644
--- a/app/views/projects/settings/_versions.rhtml
+++ b/app/views/projects/settings/_versions.rhtml
@@ -19,9 +19,9 @@
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
<td><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
<td class="buttons">
- <% if version.project == @project %>
- <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
- <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
+ <% if version.project == @project && User.current.allowed_to?(:manage_versions, @project) %>
+ <%= link_to l(:button_edit), edit_project_version_path(@project, version), :class => 'icon icon-edit' %>
+ <%= link_to l(:button_delete), project_version_path(@project, version), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
<% end %>
</td>
</tr>