comparison src/lib/Shared.luan @ 23:c54c806fcc6e

add delete_post
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 05 Nov 2024 16:09:10 -0700
parents 949914955bfe
children af41be2dcdec
comparison
equal deleted inserted replaced
22:949914955bfe 23:c54c806fcc6e
105 <% if mine then %> 105 <% if mine then %>
106 <span pulldown> 106 <span pulldown>
107 <img onclick="clickMenu(this)" src="/images/more_vert.svg"> 107 <img onclick="clickMenu(this)" src="/images/more_vert.svg">
108 <div> 108 <div>
109 <span>Edit</span> 109 <span>Edit</span>
110 <span>Delete</span> 110 <span onclick="deletePost('<%=id%>')">Delete</span>
111 </div> 111 </div>
112 <span> 112 <span>
113 <% end %> 113 <% end %>
114 </div> 114 </div>
115 <div text fix><%= html_encode(post.content) %></div> 115 <div text fix><%= html_encode(post.content) %></div>