Title / Description
Code 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
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code