summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/index.rhtml31
1 files changed, 31 insertions, 0 deletions
diff --git a/views/index.rhtml b/views/index.rhtml
new file mode 100644
index 0000000..b2c0cad
--- /dev/null
+++ b/views/index.rhtml
@@ -0,0 +1,31 @@
+<html>
+<head>
+ <title>Dropship</title>
+ <!-- Latest compiled and minified CSS -->
+ <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
+ <!-- Optional theme -->
+ <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
+ <style type="text/css">
+ .dropzone {
+ width: 100%;
+ height: 100%;
+ background-color: #ccc;
+ }
+ </style>
+</head>
+<body>
+ <table class="table">
+ <% if !@files.empty? %>
+ <% for item in @files %>
+ <tr><td><%= item['filename'] %></td></tr>
+ <% end %>
+ <% else %>
+ <tr><td>Nothing here</td></tr>
+ <% end %>
+ </table>
+ <form action="/upload" class="dropzone" id="my-awesome-dropzone"></form>
+ <script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
+ <script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
+ <script type="text/javascript" src="/js/dropzone.js"></script>
+</body>
+</html>