summaryrefslogtreecommitdiff
path: root/views/item.erb
diff options
context:
space:
mode:
Diffstat (limited to 'views/item.erb')
-rw-r--r--views/item.erb10
1 files changed, 7 insertions, 3 deletions
diff --git a/views/item.erb b/views/item.erb
index 287054e..ebc632e 100644
--- a/views/item.erb
+++ b/views/item.erb
@@ -35,12 +35,16 @@
<% end %>
<% end %>
<% end %>
- <form action='/outbox' method='post'>
+ <p>
+ <button class="reply" data-index='<%= @item[:nr] %>'>Reply</button>
+ <form action='/outbox' method='post' id='form<%= @item[:nr] %>' style='display:none;' >
<input type='hidden' name='to' value='<%= @item[:actor_url] %>' />
<input type='hidden' name='inReplyTo' value='<%= @item[:id] %>' />
<input type='hidden' name='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />
- <textarea name="content"></textarea>
- <input type="submit" value="Reply">
+ <textarea name='content'></textarea>
+ <br>
+ <button class="cancel" data-index='<%= @item[:nr] %>'>Cancel</button>
+ <input type='submit' value='Send'>
</form>
</div>
<% @item[:replies].each do |reply| %>