diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-21 16:28:24 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-21 16:28:24 +0200 |
commit | 3c38f81b8a145778d4329c6be4c91baa00ca0d48 (patch) | |
tree | c0a68c6b57b6bf4154dcb3c9d3a67e93cc01a658 /views/collection.erb | |
parent | 5062145de3e3fe600415c8b8718c6a144f8ed939 (diff) |
thread rendering
Diffstat (limited to 'views/collection.erb')
-rw-r--r-- | views/collection.erb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/views/collection.erb b/views/collection.erb index 9640b7c..c169e0b 100644 --- a/views/collection.erb +++ b/views/collection.erb @@ -4,9 +4,9 @@ <link rel='stylesheet' type='text/css' href='/style.css'> </head> <body> - <h1><%= @dir %> - <% dirs = ['inbox','outbox','shared'] - dirs.delete(@dir) + <h1><%= @box %> + <% dirs = ['inbox','outbox'] + dirs.delete(@box) dirs.each do |d| %> <form action='/<%= d %>' method='get'> <button><%= d %></button> @@ -18,10 +18,10 @@ @object = object %> <%= erb :object %> <% end %> - <% unless @dir == 'shared' %> + <% unless @box == 'shared' %> <form action='/delete' method='post'> - <input type='hidden' name='dir' value='<%= @dir %>' /> - <input type='hidden' name='anchor' value='/<%= @dir %>' /> + <input type='hidden' name='dir' value='<%= @box %>' /> + <input type='hidden' name='anchor' value='/<%= @box %>' /> <button>Delete all</button> </form> <% end %> |