summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/collection.erb10
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 %>