Project

General

Profile

Patch #12541 ยป issues-context-menu-template.diff

fer sjs, 2012-12-08 01:02

View differences:

app/views/context_menus/issues.html.erb
3 3

  
4 4
<% if !@issue.nil? -%>
5 5
  <li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue},
6
          :class => 'icon-edit', :disabled => !@can[:edit] %></li>
6
          :class => 'icon icon-edit', :disabled => !@can[:edit] %></li>
7 7
<% else %>
8 8
  <li><%= context_menu_link l(:button_edit), {:controller => 'issues', :action => 'bulk_edit', :ids => @issue_ids},
9
          :class => 'icon-edit', :disabled => !@can[:edit] %></li>
9
          :class => 'icon icon-edit', :disabled => !@can[:edit] %></li>
10 10
<% end %>
11 11

  
12 12
  <% if @allowed_statuses.present? %>
......
120 120
<% if !@issue.nil? %>
121 121
  <% if @can[:log_time] -%>
122 122
  <li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue},
123
          :class => 'icon-time-add' %></li>
123
          :class => 'icon icon-time-add' %></li>
124 124
  <% end %>
125 125
  <% if User.current.logged? %>
126 126
  <li><%= watcher_link(@issue, User.current) %></li>
......
129 129

  
130 130
<% if @issue.present? %>
131 131
  <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue},
132
          :class => 'icon-copy', :disabled => !@can[:copy] %></li>
132
          :class => 'icon icon-copy', :disabled => !@can[:copy] %></li>
133 133
<% else %>
134 134
  <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'bulk_edit', :ids => @issue_ids, :copy => '1'},
135
                          :class => 'icon-copy', :disabled => !@can[:move] %></li>
135
                          :class => 'icon icon-copy', :disabled => !@can[:move] %></li>
136 136
<% end %>													
137 137
  <li><%= context_menu_link l(:button_delete), issues_path(:ids => @issue_ids, :back_url => @back),
138
                            :method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon-del', :disabled => !@can[:delete] %></li>
138
                            :method => :delete, :data => {:confirm => issues_destroy_confirmation_message(@issues)}, :class => 'icon icon-del', :disabled => !@can[:delete] %></li>
139 139

  
140 140
  <%= call_hook(:view_issues_context_menu_end, {:issues => @issues, :can => @can, :back => @back }) %>
141 141
</ul>
    (1-1/1)