forked from bartonhammond/meteor-slingshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslingshot.html
43 lines (37 loc) · 953 Bytes
/
slingshot.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<head>
<title>slingshot</title>
</head>
<body>
<h1>Welcome to Meteor!</h1>
{{> loginButtons}}
{{#if currentUser}}
{{> slingshotForm}}
{{else}}
<p> Please login to upload image to AWS</p>
{{/if}}
<h1>Users Pictures</h1>
<ul>
{{> uploadedPictures}}
</ul>
</body>
<template name="myPicture">
<img src={{url}}/>
</template>
<template name="uploadedPictures">
{{#each pictures}}
<li>{{this.name}}: <img src="{{this.url}}" height=75 width=75></li>
{{/each}}
</template>
<template name="slingshotForm">
<form>
<input type="file" id="fileToUpload" accept="image/*">
<input type="submit">
</form>
</template>
<template name="progressBar">
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="{{progress}}" aria-valuemin="0" aria-valuemax="100" style="width: {{progress}}%;">
<span class="sr-only">{{progress}}% Complete</span>
</div>
</div>
</template>