-
Notifications
You must be signed in to change notification settings - Fork 0
/
group_tasks.html
59 lines (44 loc) · 1.71 KB
/
group_tasks.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.6/handlebars.min.js"></script>
<script type="text/javascript" src="vendor/swag/lib/swag.js"></script>
<script type="text/javascript" src="js/data.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="css/user.css" rel="stylesheet">
<script>
$(document).ready(function(){
var template = Handlebars.compile($("#groups-tasks-template").html());
$("#content").append(template(data.groups[0]));
});
</script>
</head>
<body>
<div class="container">
<a href="./"><h2> <img src="img/logo.png" height="50">Affinity</h2></a>
<hr>
<div id="content"></div>
</div>
</body>
</html>
<script id="groups-tasks-template" type="text/x-handlebars-template">
<h1>Tasks you can do!</h1>
<br>
{{#each tasks}}
<div class="well">
<h4>{{name}}</h4>
<div class="pull-right">
<button class="btn btn-primary">I will volunteer for this task!</button>
</div>
{{#if event}}
<i class="fa fa-calendar"></i> Related Event: <a href="{{event.url}}">{{event.name}}: {{event.date}}</a><br><br>
{{/if}}
<p>{{description}}</p>
<strong>Due: {{due_date}}</strong>
</div>
<br>
{{/each}}
</script>