diff options
Diffstat (limited to 'views/index.erb')
-rw-r--r-- | views/index.erb | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/views/index.erb b/views/index.erb new file mode 100644 index 0000000..269c495 --- /dev/null +++ b/views/index.erb @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang='en'> + <head> + <link rel='stylesheet' type='text/css' href='/style.css'> + </head> + <body> + <h1><%= @dir %> + <form action='<%= @alt_dir %>' method='get'> + <button><%= @alt_name %></button> + </form> + </h1> + <% @threads.each do |item| %> + <%= html item %> + <% end %> + <% if @dir == 'inbox' %> + <form action='delete_all' method='post'> + <button>Delete all</button> + </form> + <% end %> + </body> +</html> |