43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
<% assert(author,"No author specified") %>
|
|
<% assert(bio,"No bio included") %>
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>🍑</title>
|
|
<link href="/_css/milligram.css" rel="stylesheet">
|
|
<link href="/_css/style.css" rel="stylesheet">
|
|
</head>
|
|
<body class="container">
|
|
<h1 class="title">
|
|
<a href="https://<%= author %>.<%= domain %>"><%= author %></a>.<a href="https://<%= domain %>"><%= domain %></a>
|
|
</h1>
|
|
|
|
<div class="content">
|
|
<form action="https://<%= author %>.<%= domain %>/" method="post" class="container">
|
|
<textarea name="" cols=80 rows=24 class="column">
|
|
<%= bio %>
|
|
</textarea><br/>
|
|
<input type="submit">
|
|
</form>
|
|
</div>
|
|
<div class="content">
|
|
<% if #stories == 0 then %>
|
|
This author has not made any pastes yet.
|
|
<% else %>
|
|
<table>
|
|
<% for k,v in pairs(stories) do %>
|
|
<tr><td><%= v[1] %></td><td><%= v[2] %></td></tr>
|
|
<% end %>
|
|
</table>
|
|
<% end %>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
|
|
</footer>
|
|
</body>
|
|
<body>
|
|
|