summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-29 12:18:00 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-04-29 12:18:00 +0000
commitc9f31f0332a8662af152afde6ab83748ceac0fa4 (patch)
treebfcc552526f896ebe45a6df7e2444dbd7971c5c3 /app
parentfb0641d43f1bf0a3dfdd2a1ee0fdc8c6e0f0eaeb (diff)
downloadredmine-c9f31f0332a8662af152afde6ab83748ceac0fa4.tar.gz
redmine-c9f31f0332a8662af152afde6ab83748ceac0fa4.zip
Adds context menu for related issues on version view.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5600 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/versions/show.rhtml19
1 files changed, 12 insertions, 7 deletions
diff --git a/app/views/versions/show.rhtml b/app/views/versions/show.rhtml
index 6d37d29c7..a769274bf 100644
--- a/app/views/versions/show.rhtml
+++ b/app/views/versions/show.rhtml
@@ -34,13 +34,18 @@
</div>
<% if @issues.present? %>
-<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
-<ul>
-<% @issues.each do |issue| -%>
- <li><%= link_to_issue(issue) %></li>
-<% end -%>
-</ul>
-</fieldset>
+<% form_tag({}) do -%>
+ <table class="list related-issues">
+ <caption><%= l(:label_related_issues) %></caption>
+ <%- @issues.each do |issue| -%>
+ <tr class="hascontextmenu">
+ <td class="checkbox"><%= check_box_tag 'ids[]', issue.id %></td>
+ <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
+ </tr>
+ <% end %>
+ </table>
+<% end %>
+<%= context_menu issues_context_menu_path %>
<% end %>
</div>