Skip to content

Commit

Permalink
Display translated root nodes
Browse files Browse the repository at this point in the history
The name field on root nodes is not meant to be human-readable, but
rather translated.
  • Loading branch information
mamhoff committed Mar 20, 2020
1 parent 29b4528 commit 33f3394
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/views/alchemy/admin/nodes/_node.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@
<% end %>
</span>
<div class="node_name">
<%= node.name || '&nbsp;'.html_safe %>
<% if node.root? %>
<%= I18n.t(node.name, scope: [:alchemy, :menu_names]) %>
<% else %>
<%= node.name || '&nbsp;'.html_safe %>
<% end %>
<span class="node_page">
<% if node.page %>
<i class="icon far fa-file"></i>
Expand Down

0 comments on commit 33f3394

Please sign in to comment.