]> source.dussan.org Git - redmine.git/commitdiff
Issue context menu now also available on 'My page'.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Nov 2007 15:16:04 +0000 (15:16 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 24 Nov 2007 15:16:04 +0000 (15:16 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@929 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_list_simple.rhtml
app/views/my/page.rhtml

index 9051e46b880f4c280eff61bd2396a89d2e18b284..517055e3a33bc13a12be07e12067ac432e897d54 100644 (file)
@@ -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 %>
index 5c6c906db71e279f310e2f91c18520a83babbb50..89d11ddeadfdafd3d9fc94cca32f48f1bddc8fca 100644 (file)
        <% 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({})' %>