diff options
author | pdp8 <pdp8@pdp8.info> | 2023-07-01 01:54:02 +0200 |
---|---|---|
committer | pdp8 <pdp8@pdp8.info> | 2023-07-01 01:54:02 +0200 |
commit | 086709cae3da7a01a011fe906004c8685fdd2ed0 (patch) | |
tree | 0872f3a6cfc303cdc61b883baae47af24960603d /views | |
parent | 5af8d78e195c7479769240b32703d5b76843db4d (diff) |
direct collection access from client
Diffstat (limited to 'views')
-rw-r--r-- | views/collection.erb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/views/collection.erb b/views/collection.erb index 4455b31..8dd3878 100644 --- a/views/collection.erb +++ b/views/collection.erb @@ -5,9 +5,13 @@ </head> <body> <h1><%= @dir %> - <form action='<%= @alt_dir %>' method='get'> - <button><%= @alt_name %></button> - </form> + <% dirs = ['inbox','outbox','archive'] + dirs.delete(@dir) + dirs.each do |d| %> + <form action='/<%= d %>' method='get'> + <button><%= d %></button> + </form> + <% end %> </h1> <% @threads.each do |object| @object = object %> |