Skip to content

Commit bb08e90

Browse files
committed
Update tree.html.erb
1 parent d55df1c commit bb08e90

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/views/registers/tree.html.erb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@
1414
<% end %>
1515

1616
<% if n.type? %>
17+
<% t = n.nomenclatural_type %>
1718
<span class="text-muted ml-2 small">
18-
[Type: <%= display_link(n.nomenclatural_type) %>]
19+
[Type: <%=
20+
content_tag(
21+
n.type_is_name? && @register.names.include?(t) ? :b : :span
22+
) { display_link(t) }
23+
%>]
1924
</span>
2025
<% end %>
2126
<% end %>

0 commit comments

Comments
 (0)