2020-05-16 01:10:11 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
2020-05-20 02:13:30 +02:00
|
|
|
<meta name="author" content="<%= author %>">
|
|
|
|
<title><%- title %></title>
|
2020-05-16 01:10:11 +02:00
|
|
|
<link href="/_css/milligram.css" rel="stylesheet">
|
2020-05-17 18:05:00 +02:00
|
|
|
<link href="/_css/style.css" rel="stylesheet">
|
2020-05-16 01:10:11 +02:00
|
|
|
</head>
|
2020-05-20 02:13:30 +02:00
|
|
|
<body><main class="wrapper">
|
|
|
|
<nav>
|
|
|
|
<a href="https://<%= domain %>"><%= domain %></a>/<a href="https://<%= domain %>/<%= idp %>"><%= idp %></a>
|
|
|
|
</nav>
|
2020-08-13 19:59:33 +02:00
|
|
|
<% if owner then -%>
|
2020-05-20 02:13:30 +02:00
|
|
|
<form action="https://<%= domain %>/_edit" method="get"><fieldset>
|
|
|
|
<input type="hidden" name="story" value="<%= idp %>"/>
|
|
|
|
<input type="submit" value="edit" class="button"/>
|
|
|
|
</fieldset></form>
|
2020-08-13 19:59:33 +02:00
|
|
|
<% end -%>
|
|
|
|
<article>
|
2020-05-20 02:13:30 +02:00
|
|
|
<h2 class="title">
|
2020-05-16 01:10:11 +02:00
|
|
|
<%- title %>
|
2020-05-20 02:13:30 +02:00
|
|
|
</h2>
|
|
|
|
<h3>
|
2020-08-13 19:59:33 +02:00
|
|
|
<% if isanon then -%>
|
2020-05-16 01:10:11 +02:00
|
|
|
By Anonymous
|
2020-08-13 19:59:33 +02:00
|
|
|
<% else -%>
|
2020-05-16 01:10:11 +02:00
|
|
|
By <a href="https://<%= author %>.<%= domain %>"><%= author %></a>
|
2020-08-13 19:59:33 +02:00
|
|
|
<% end -%>
|
2020-05-20 02:13:30 +02:00
|
|
|
</h3>
|
|
|
|
<%- text %>
|
|
|
|
</article>
|
2020-08-13 19:59:33 +02:00
|
|
|
<form action="https://<%= domain %>/_download" method="get">
|
|
|
|
<input type="hidden" name="story" value="<%= idp %>"/>
|
|
|
|
<input type="submit" value="Download TXT" class="button"/>
|
|
|
|
</form>
|
|
|
|
<% if not show_comments then -%>
|
|
|
|
<form action="https://<%= domain %>/<%= idp %>"><fieldset>
|
|
|
|
<input type="hidden" name="comments" value="1">
|
|
|
|
<input type="submit" value="load comments" class="button">
|
|
|
|
</fieldset></form>
|
|
|
|
<% else %>
|
|
|
|
<form action="https://<%= domain %>/<%= idp %>" method="POST">
|
|
|
|
<textarea name="text" cols=60 rows=10 class="column"></textarea>
|
|
|
|
</div><% if iam then %>
|
|
|
|
<select id="postas" name="postas">
|
|
|
|
<option value="Anonymous">Anonymous</option>
|
|
|
|
<option value="<%= iam %>"><%= iam %></option>
|
|
|
|
</select>
|
|
|
|
<input type="submit" value="post" class="button">
|
|
|
|
<% else %>
|
|
|
|
<input type="hidden" name="postas" value="Anonymous">
|
|
|
|
<input type="submit" value="post" class="button">
|
|
|
|
<% end %>
|
|
|
|
</form>
|
|
|
|
<% if comments and #comments == 0 then %>
|
|
|
|
<p><i>No comments yet</i></p>
|
|
|
|
<% else %>
|
|
|
|
<section>
|
|
|
|
<% for _,comment in pairs(comments) do %>
|
|
|
|
<article>
|
|
|
|
<% if comment.isanon then %>
|
|
|
|
<p><b>Anonymous</b></p>
|
|
|
|
<% else %>
|
|
|
|
<p><b><%= comment.author %></b></p>
|
|
|
|
<% end %>
|
|
|
|
<p><%= comment.text %></p>
|
|
|
|
</article>
|
|
|
|
<% end %>
|
|
|
|
</section>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
2020-05-20 02:13:30 +02:00
|
|
|
</main></body>
|
2020-05-16 01:10:11 +02:00
|
|
|
</html>
|
|
|
|
|