comparison examples/blog/src/index.html.luan @ 1387:bc40bc9aab3a

start postgres backup
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 02 Sep 2019 22:23:12 -0600
parents 4c2972f4d862
children ad5647031343
comparison
equal deleted inserted replaced
1386:dc36dd8bf839 1387:bc40bc9aab3a
37 local posts = query and Post.search(query) or Post.get_all() 37 local posts = query and Post.search(query) or Post.get_all()
38 for _, post in ipairs(posts) do 38 for _, post in ipairs(posts) do
39 %> 39 %>
40 <a name="p<%= post.id %>"> 40 <a name="p<%= post.id %>">
41 <h2><%= post.subject %></h2> 41 <h2><%= post.subject %></h2>
42 <p><%= Time.format(post.date) %> - <a href="edit.html?post=<%= post.id %>">Edit</a></p> 42 <p>
43 <%= Time.format(post.date) %>
44 - <a href="edit.html?post=<%= post.id %>">Edit</a>
45 - <a href="delete?post=<%= post.id %>">Delete</a>
46 </p>
43 <pre><%= bbcode_to_html(html_encode(post.content)) %></pre> 47 <pre><%= bbcode_to_html(html_encode(post.content)) %></pre>
44 <hr> 48 <hr>
45 <% 49 <%
46 end 50 end
47 %> 51 %>