Mercurial Hosting > chat
comparison src/get_chat.js.luan @ 11:563a5358f2ee
add delete_chat
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 31 Oct 2024 19:17:53 -0600 |
parents | f9e6a4cc4f7d |
children | 9f45d32670ae |
comparison
equal
deleted
inserted
replaced
10:f9e6a4cc4f7d | 11:563a5358f2ee |
---|---|
36 chat = get_chat_by_id(chat) or error() | 36 chat = get_chat_by_id(chat) or error() |
37 local posts = post_search( "post_chat_id:"..chat.id, "id" ) | 37 local posts = post_search( "post_chat_id:"..chat.id, "id" ) |
38 %> | 38 %> |
39 <div top> | 39 <div top> |
40 <h3><%= chat.other_users_email(user) %></h3> | 40 <h3><%= chat.other_users_email(user) %></h3> |
41 <button>delete</button> | 41 <button onclick='deleteChat()'>delete</button> |
42 </div> | 42 </div> |
43 <div main> | 43 <div main> |
44 <% | 44 <% |
45 for _, post in ipairs(posts) do | 45 for _, post in ipairs(posts) do |
46 post_html(post) | 46 post_html(post) |