smr/tools/archive/main.etlua.in

25 lines
420 B
Plaintext
Raw Normal View History

<html>
<table>
<tr>
<th>Title</th>
<th>Author</th>
<th>Tags</th>
<th>Posted</th>
</tr>
<% for k,story in pairs(stories) do %>
<tr>
<td><a href="<%= story.url %>"><%- story.title %></a></td>
<td>By <%= story.author %></td>
<td><ul class="tag-list">
<% for i = 1,#story.tags do %>
<li><%= story.tags[i] %></li>
<% end %>
</ul></td>
<td><%= story.posted %></td>
</tr>
<% end %>
</table>
</html>