26 lines
677 B
Plaintext
26 lines
677 B
Plaintext
|
<% assert(author,"No author specified") %>
|
||
|
<% assert(bio,"No bio included") %>
|
||
|
<{system cat src/pages/parts/header.etlua}>
|
||
|
<h1 class="title">
|
||
|
<a href="https://<%= author %>.<%= domain %>"><%= author %></a>.<a href="https://<%= domain %>"><%= domain %></a>
|
||
|
</h1>
|
||
|
<div class="container">
|
||
|
<a href="/_paste" class="button">New paste</a>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<%= bio %>
|
||
|
</div>
|
||
|
<div class="content">
|
||
|
<% if #stories == 0 then %>
|
||
|
This author has not made any pastes yet.
|
||
|
<% else %>
|
||
|
<table>
|
||
|
<% for k,story in pairs(stories) do %>
|
||
|
<{system cat src/pages/parts/story_breif.etlua}>
|
||
|
<% end %>
|
||
|
</table>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<{system cat src/pages/parts/footer.etlua}>
|
||
|
|