diff --git a/app/views/content/display/attribute_value/_link.html.erb b/app/views/content/display/attribute_value/_link.html.erb index e19b6a77..19ea5ad2 100644 --- a/app/views/content/display/attribute_value/_link.html.erb +++ b/app/views/content/display/attribute_value/_link.html.erb @@ -1,27 +1,18 @@ - - <% value.each do |link_code| %> <% klass, id = link_code.split('-') %>
- <%= link_to content_class_from_name(klass) do %> + <%= link_to send("#{klass.downcase}_path", id) do %> <%= content_class_from_name(klass).icon %> - <%= id %> + Loading <%= klass %> <% end %>
<% end %> -

- -<%# - simple_format ContentFormatterService.show( - text: value.map { |link_code| "[[#{link_code}]]"}.join("\n"), - viewing_user: current_user - ) -%> +

\ No newline at end of file