Add JS license information

This commit is contained in:
swagg boi 2024-06-26 01:08:31 -04:00
parent b1cbaceaa5
commit bbc12f2b4a
5 changed files with 38 additions and 0 deletions

View file

@ -147,6 +147,8 @@ sub startup($self) {
$r->get('/feeds')->to('page#feeds')->name('feeds_page');
$r->get('/javascript')->to('page#javascript')->name('javascript_page');
# Not-so-static but I mean they're all 'pages' c'mon
$human->get('/search')->to('page#search')->name('search_page');

View file

@ -10,6 +10,8 @@ sub rules($self) { $self->render }
sub feeds($self) { $self->render }
sub javascript($self) { $self->render }
sub captcha($self) {
my $v;

View file

@ -10,4 +10,7 @@ $t->get_ok('/rules')->status_is(200)->text_like(h2 => qr/The Rules/);
$t->get_ok('/feeds')->status_is(200)->text_like(h2 => qr/Feeds/);
$t->get_ok('/javascript')->status_is(200)
->text_like(h2 => qr/JavaScript License Information/);
done_testing;

View file

@ -93,6 +93,9 @@
<%= content =%>
<footer class="site-footer">
<p>In UTF-8 we trust. 🫡</p>
<p><%= link_to javascript_page =>
('data-jslicense', 1),
begin %>JavaScript License Information<% end %></p>
</footer>
</body>
</html>

View file

@ -0,0 +1,28 @@
% layout 'default';
% title 'JavaScript License Information';
% content_for open_graph => begin
<meta property="og:type" content="website">
<meta property="og:title" content="<%= title %>">
<meta
property="og:description"
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
>
% end
% content_for twitter_card => begin
<meta name="twitter:title" content="<%= title %>">
<meta
name="twitter:description"
content="Post::Text is a textboard a bit like 2channel. You can post whatever you want anonymously just please mind the rules."
>
% end
<h2 class="page-title"><%= title %></h2>
<main class="page-body">
<table id="jslicense-labels1">
<tr>
<td><%= link_to 'background.js', '/js/background.js' %></td>
<td><%= link_to 'http://www.gnu.org/licenses/gpl-3.0.html',
begin%>GNU General Public License 3.0 or later<% end %></td>
<td><%= link_to 'background.js', '/js/background.js' %></td>
</tr>
</table>
</main>