File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
lib/rdoc/generator/template/darkfish Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 18
18
</ nav >
19
19
20
20
< main role ="main " aria-labelledby ="<%= h klass . aref %> ">
21
- < ol role ="navigation " aria-label ="breadcrumb " class ="breadcrumb ">
22
- <% breadcrumb . each do |namespace | %>
23
- < li >
24
- <% if namespace [ :self ] %>
25
- < span > <%= namespace [ :name ] %> </ span >
26
- <% else %>
27
- < a href ="<%= namespace [ :path ] %> "> <%= namespace [ :name ] %> </ a > < span > ::</ span >
21
+ <%# If nesting level is 1, breadcrumb list is not needed %>
22
+ <% if breadcrumb . size > 1 %>
23
+ < ol role ="navigation " aria-label ="breadcrumb " class ="breadcrumb ">
24
+ <% breadcrumb . each do |namespace | %>
25
+ < li >
26
+ <% if namespace [ :self ] %>
27
+ < span > <%= namespace [ :name ] %> </ span >
28
+ <% else %>
29
+ < a href ="<%= namespace [ :path ] %> "> <%= namespace [ :name ] %> </ a > < span > ::</ span >
30
+ <% end %>
31
+ </ li >
28
32
<% end %>
29
- </ li >
30
- <% end %>
31
- </ ol >
33
+ </ ol >
34
+ <% end %>
32
35
33
36
< h1 id ="<%= h klass . aref %> " class ="anchor-link <%= klass . type %> ">
34
37
<%= klass . type %> <%= klass . full_name %>
You can’t perform that action at this time.
0 commit comments