Mercurial Hosting > freedit
diff src/lib/Shared.luan @ 56:7ce54f6d93f2
add change name
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 28 Nov 2022 22:00:43 -0700 |
parents | 260abd8f8565 |
children |
line wrap: on
line diff
--- a/src/lib/Shared.luan Mon Nov 28 20:33:47 2022 -0700 +++ b/src/lib/Shared.luan Mon Nov 28 22:00:43 2022 -0700 @@ -115,14 +115,14 @@ <hr> <div author> <img src="/images/profile.png"> - <a href="/whatever"><%= post.author_name %></a> + <a href="/whatever"><%= post.author.name %></a> <span ago date="<%=post.date%>"><% post.ago(now) %> ago</span> </div> <div output> <% bbcode_to_html(post.content) %> <p logged_in> <a href="#">reply</a> - <span only_user="<%=html_encode(post.author_name)%>"> + <span only_user="<%=html_encode(post.author.name)%>"> - <a href="javascript:ajax('/edit.js?post=<%=post.id%>')">edit</a> <span delete_opton> - <span delete><%delete_post()%></span> </span> <span>