A diff
Diff
code posted
by
Mischa The Evil
created at 07 Jan 14:41
Edit
|
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
Index: app/views/issues/index.rhtml =================================================================== --- app/views/issues/index.rhtml (revision 2170) +++ app/views/issues/index.rhtml (working copy) @@ -1,4 +1,9 @@ <% if @query.new_record? %> + <% if Setting.main_new_links_enabled? %> + <div class="contextual"> + <%= link_to_if_authorized l(:label_issue_new), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-add' %> + </div> + <% end %> <h2><%=l(:label_issue_plural)%></h2> <% html_title(l(:label_issue_plural)) %> Index: app/views/layouts/_new_issue_menu.rhtml =================================================================== --- app/views/layouts/_new_issue_menu.rhtml (revision 0) +++ app/views/layouts/_new_issue_menu.rhtml (revision 0) @@ -0,0 +1,12 @@ +<% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %> +<div> + <ul> + <% user_projects_by_root.keys.sort.each do |root| %> + <li><%= link_to h(root.name),:controller => :issues, :action => :new, :project_id => root %></li> + <% user_projects_by_root[root].sort.each do |project| %> + <% next if project == root %> + <li><%= link_to '» '+h(project.name), :controller => :issues, :action => :new, :project_id => project %></li> + <% end %> + <% end %> + </ul> +</div> Index: app/views/layouts/_new_timelog_menu.rhtml |
1.43 KB in 6 ms with coderay