Commits

jplang  committed 6a9b67a

Use li tags for issue links in the sidebar (#13242).

  • Participants
  • Parent commits eda2046

Comments (0)

Files changed (2)

File app/views/issues/_sidebar.html.erb

 <h3><%= l(:label_issue_plural) %></h3>
-<%= link_to l(:label_issue_view_all), _project_issues_path(@project, :set_filter => 1) %><br />
+
+<ul>
+<li><%= link_to l(:label_issue_view_all), _project_issues_path(@project, :set_filter => 1) %></li>
 <% if @project %>
-<%= link_to l(:field_summary), project_issues_report_path(@project) %><br />
+<li><%= link_to l(:field_summary), project_issues_report_path(@project) %></li>
 <% end %>
-<%= call_hook(:view_issues_sidebar_issues_bottom) %>
 
 <% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
-  <%= link_to l(:label_calendar), _project_calendar_path(@project) %><br />
+<li><%= link_to l(:label_calendar), _project_calendar_path(@project) %></li>
 <% end %>
 <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
-  <%= link_to l(:label_gantt), _project_gantt_path(@project) %><br />
+<li><%= link_to l(:label_gantt), _project_gantt_path(@project) %></li>
 <% end %>
+</ul>
+
+<%= call_hook(:view_issues_sidebar_issues_bottom) %>
 <%= call_hook(:view_issues_sidebar_planning_bottom) %>
 
 <%= render_sidebar_queries %>

File public/stylesheets/application.css

 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
 #sidebar .contextual { margin-right: 1em; }
-#sidebar ul.watchers, #sidebar ul.queries {margin: 0;  padding: 0;}
-#sidebar ul.watchers li, #sidebar ul.queries li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
+#sidebar ul {margin: 0;  padding: 0;}
+#sidebar ul li {list-style-type:none;margin: 0px 2px 0px 0px; padding: 0px 0px 0px 0px;}
 
 #content { width: 75%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; }
 * html #content{ width: 75%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}