<%= @object.translation.title %>

<%= prepare_rich_text(@object.translation.content.body_with_urls).html_safe %>
<% if (attachments = @object.attachments_sorted) && attachments.present? %>
<%= icon 'paperclip' %>
<%= zt('Attached Files') %>
<% attachments.each do |attachment| %> <%= link_to custom_path_if_needed(attachment_path(attachment), @knowledge_base), class: 'attachment', download: true do %> <%= attachment.filename %>
<%= number_to_human_size attachment.size %>
<% end %> <% end %>
<% end %> <% if (tags = @object.tag_list) && tags.present? %>
<%= icon 'hashtag' %>
<%= zt('Tags') %>
<% tags.each do |tag| %> <%= link_to tag, custom_path_if_needed(help_tag_path(tag, locale: params[:locale]), @knowledge_base), class: 'tag' %> <% end %>
<% end %> <% if @object.visible? %> <% end %> <% if @object_previous || @object_next %>
<% if @object_previous %>
<%= link_to custom_path_if_needed(breadcrumb_path_for(@object_previous), @knowledge_base), title: @object_previous.translation.title do %> <%= icon 'double-arrow-left' %> <%= icon 'double-arrow-right' %> <%= @object_previous.translation.title %> <% end %>
<% end %> <% if @object_next %>
<%= link_to custom_path_if_needed(breadcrumb_path_for(@object_next), @knowledge_base), title: @object_next.translation.title do %> <%= @object_next.translation.title %> <%= icon 'double-arrow-right' %> <%= icon 'double-arrow-left' %> <% end %>
<% end %>
<% end %>