summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/item.erb15
1 files changed, 11 insertions, 4 deletions
diff --git a/views/item.erb b/views/item.erb
index aafc4cc..933fe71 100644
--- a/views/item.erb
+++ b/views/item.erb
@@ -5,15 +5,15 @@
</form>
&nbsp;
<form action='/delete' method='post'>
- <input type='hidden' name='file' id='file' value='<%= @item[:file] %>' />
- <input type='hidden' name='redirect' id='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />
+ <input type='hidden' name='file' value='<%= @item[:file] %>' />
+ <input type='hidden' name='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />
<button>Delete</button>
</form>
<% if @dir == 'inbox' %>
&nbsp;
<form action='/archive' method='post'>
- <input type='hidden' name='file' id='file' value='<%= @item[:file] %>' />
- <input type='hidden' name='redirect' id='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />
+ <input type='hidden' name='file' value='<%= @item[:file] %>' />
+ <input type='hidden' name='redirect' value='/<%= @dir.sub('inbox','') %>#<%= @item[:nr] %>' />
<button>Archive</button>
</form>
<% end %>
@@ -33,6 +33,13 @@
<% end %>
<% end %>
<% end %>
+ <form action='/outbox' method='post'>
+ <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">
+ </form>
</div>
<% @item[:replies].each do |reply| %>
<%= html reply %>