Mercurial Hosting > chat
diff src/lib/Shared.luan @ 35:27c41f22d2a9
improve fixPosts
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 12 Nov 2024 17:17:59 -0700 |
parents | 62d04ca486dd |
children | 7ea33179592a |
line wrap: on
line diff
--- a/src/lib/Shared.luan Tue Nov 12 16:08:24 2024 -0700 +++ b/src/lib/Shared.luan Tue Nov 12 17:17:59 2024 -0700 @@ -97,21 +97,15 @@ local author = get_user_by_id(author_id) local id = post.id %> - <div post="<%=id%>"> - <div who="<%=author.id%>"> + <div post="<%=id%>" author="<%=author.id%>" fix> + <div who> <span author><%=author.email%></span> <span right> - <span when fix><%=post.date%></span> - <span pulldown> - <img onclick="clickMenu(this)" src="/images/more_vert.svg"> - <div> - <span onclick="editPost('<%=id%>')">Edit</span> - <span onclick="deletePost('<%=id%>')">Delete</span> - </div> - </span> + <span when><%=post.date%></span> + <span pulldown></span> </span> </div> - <div text fix><%= html_encode(post.content) %></div> + <div text><%= html_encode(post.content) %></div> </div> <% end