Pooru/templates/media.html.ep
Lucas Gabriel Vuotto c11460232c Small style fixes
- write site's HTTP 400 in a single line
- add an space at the end of the query parameter in site's random/tag in
  order to start writing after a space on focus
- use <%= ... %> instead of manually escaping a smiley
2025-04-27 17:20:44 +00:00

37 lines
832 B
Text

% layout "main";
<div class="layout-flex-box media">
<div class="media-metadata">
% if ($tags->@* == 0) {
<p>Non tags yet. <%= ">_<'" %></p>
% } else {
<dl>
% for my $entry (tags_by_kind $tags) {
% next if $entry->{tags}->@* == 0;
<dt><%= $entry->{kind} %></dt>
% for my $tag ($entry->{tags}->@*) {
<dd><%= link_for_tag $tag %> <%= $tag->{count} %></dd>
% }
% }
</dl>
% }
<dl>
<dt>ID</dt>
<dd><%= $media->{id} %></dd>
<dt>Original filename</dt>
<dd><%= $media->{filename} %></dd>
<dt>Content-type</dt>
<dd><%= $media->{content_type} %></dd>
<dt>Upload date</dt>
<dd><%= $media->{upload_datetime} %></dd>
</dl>
</div>
<%= link_to $media->{src} =>
class => "layout-flex-item-fullsize media-item" =>
begin %>
<%= image $media->{src} %>
<% end %>
</div>