summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 15:16:04 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-11-24 15:16:04 +0000
commitacad206063c159fa9eec62e12104c065c5424d78 (patch)
tree9527bf3ba4aa774c8845376d8607223c7fc586db /app
parentf80f04e379a8e0eef1bd72432c6a252d3559a9c6 (diff)
downloadredmine-acad206063c159fa9eec62e12104c065c5424d78.tar.gz
redmine-acad206063c159fa9eec62e12104c065c5424d78.zip
Issue context menu now also available on 'My page'.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@929 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/_list_simple.rhtml10
-rw-r--r--app/views/my/page.rhtml7
2 files changed, 12 insertions, 5 deletions
diff --git a/app/views/issues/_list_simple.rhtml b/app/views/issues/_list_simple.rhtml
index 9051e46b8..517055e3a 100644
--- a/app/views/issues/_list_simple.rhtml
+++ b/app/views/issues/_list_simple.rhtml
@@ -7,14 +7,14 @@
</tr></thead>
<tbody>
<% for issue in issues %>
- <tr class="<%= cycle("odd", "even") %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
+ <tr id="issue-<%= issue.id %>" class="issue hascontextmenu <%= cycle('odd', 'even') %> <%= "status-#{issue.status.position} priority-#{issue.priority.position}" %>">
<td class="id">
<%= link_to issue.id, :controller => 'issues', :action => 'show', :id => issue %>
</td>
- <td><p class="small"><%= issue.project.name %> - <%= issue.tracker.name %><br />
- <%= issue.status.name %> - <%= format_time(issue.updated_on) %></p></td>
- <td>
- <p class="small"><%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %></p>
+ <td><%= issue.project.name %> - <%= issue.tracker.name %><br />
+ <%= issue.status.name %> - <%= format_time(issue.updated_on) %></td>
+ <td class="subject">
+ <%= link_to h(issue.subject), :controller => 'issues', :action => 'show', :id => issue %>
</td>
</tr>
<% end %>
diff --git a/app/views/my/page.rhtml b/app/views/my/page.rhtml
index 5c6c906db..89d11ddea 100644
--- a/app/views/my/page.rhtml
+++ b/app/views/my/page.rhtml
@@ -31,3 +31,10 @@
<% end if @blocks['right'] %>
</div>
+<% content_for :header_tags do %>
+ <%= javascript_include_tag 'context_menu' %>
+ <%= stylesheet_link_tag 'context_menu' %>
+<% end %>
+
+<div id="context-menu" style="display: none;"></div>
+<%= javascript_tag 'new ContextMenu({})' %>