archive/app/views/archives/show.html.erb

34 lines
1.6 KiB
Plaintext
Raw Normal View History

<%
data = action_data["data"]
%>
<article class="s-archive show-archive">
<h1 class="s-archive__show-title"><%= data["archive-title"] %></h1>
<ul class="s-archive__meta-wrap list-unstyled no-print">
<li class="s-archive__date-wrap s-archive__meta--item">
<i class="fa fa-calendar-o"></i>
<span class="s-archive__date" date-format="%Y-%m-%d"><%=data["created_at"]%></span>
</li>
<li class="s-archive__tag-wrap s-archive__meta--item ">
<i class="fa fa-tags"></i>
<span data-list="tags" data-level="0">
<% data["tags"].each do |tag| %>
<a href="<%= tag["url"] %>"><span class="s-archive__tag label label-default"><%= tag["name"] %></span></a>
<% end %>
</span>
</li>
</ul>
<section class="s-archive__post-wrap">
<div class="s-archive__description"><%= data["description"] %></div>
</section>
<ul class="s-archive__related-wrap list-unstyled no-print">
<li class="s-archive__related-file">
<i class="fa fa-fw fa-paperclip"></i>
<div class="s-archive__related-file-list" data-list="archive_files" data-level="0">
<% data["files"].each do |file| %>
<span class="label label-primary"></span><a class="s-archive__flie-title btn btn-default btn-sm" href="<%= file["file-url"] %>"><%= file["file-name"] %></a>
<% end %>
</div>
</li>
</ul>
<a class="btn btn-primary" href="<%= data['index_url'] %>" title="<%= t("archive.back_to_index_page") %>"><%= t("archive.back_to_index_page") %></a>
</article>