summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorFilipp Lepalaan <f@230.to>2014-06-02 21:06:17 +0300
committerFilipp Lepalaan <f@230.to>2014-06-02 21:06:17 +0300
commit3eb3488c624a29fe620c28440ecd8edc742fdd9b (patch)
tree5ac7fc43009504930579842a812d003029f3f002 /views
downloaddropship.wiki-3eb3488c624a29fe620c28440ecd8edc742fdd9b.tar.gz
dropship.wiki-3eb3488c624a29fe620c28440ecd8edc742fdd9b.tar.bz2
dropship.wiki-3eb3488c624a29fe620c28440ecd8edc742fdd9b.zip
Initial commitHEADmaster
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>