website/templates/main/announcements.html.ep

32 lines
1.0 KiB
Plaintext

% layout 'default';
% title 'UNIX.dog Announcements';
% use Time::Piece;
<h1>
Announcements
</h1>
<p>
These announcements are also avaiable over RSS. Just add .rss to the path here.
<br>
Also, all announcements are signed with the following PGP key:
</p>
<pre>67A3 9437 8618 B72E B4D5 CC69 B0EB E117 49B9 9367 alpha@unix.dog</pre>
<p>
so you can verify their authenticity. When a new announcement is out, you should
also recieve an email if you're registered.
</p>
<% my @sorted = sort (keys %$announcements); %>
<% foreach my $key (@sorted[$start_index..$end_index]) { %>
<% my $value = $announcements->{$key}; %>
<article>
<h2><%= $value->{"title"} %></h2>
<p>
Posted <%= localtime($value->{"date"})->strftime() %>.
<a href="/announcement/<%= $value->{"filename"} %>">Download PGP signature.</a>
<p>
<pre><%= $value->{"text"} %></pre>
</article>
<% } %>
<% if ($next_page != -1) { %>
<a href="/announcements?page=<%= $next_page %>">Next page...</a>
<% } %>