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