-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
95 lines (88 loc) · 4.25 KB
/
Copy pathtest.html
File metadata and controls
95 lines (88 loc) · 4.25 KB
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<template name="projectCardOld">
<div class="col-lg-3">
<div class="panel">
<div class="panel-header">
<div class="post-module">
<div class="thumbnailCover">
<img class="img-responsive" src={{getImgURL currentDoc.coverImg "cover"}} alt="">
<div class="post-content">
<h1 class="title">
<a href="{{pathFor route='projectDetails' _id=currentDoc._id title=currentDoc.title}}">{{currentDoc.title}}</a>
</h1>
<h2 class="sub_title">{{currentDoc.subtitle}}</h2>
<div class="category">
<ul class="member-icons list-inline">
<li>
<a href="{{pathFor 'userProfile' _id=currentDoc.owner.userId }}"><img class="img-circle" rel="tooltip" title={{getFullUsername currentDoc.owner.userId}} src={{getAvatarURL currentDoc.owner.userId "avatarCard"}}></a>
</li>
{{#each member in currentDoc.team}}
<li>
<a href="{{pathFor 'userProfile' _id=member.userId }}">
<img class="img-circle" rel="tooltip" title={{getFullUsername member.userId}} src={{getAvatarURL member.userId "avatarCard"}}>
</a>
</li>
{{/each}}
</ul>
</div> <!-- ./member-box -->
<div class="list-div">
<ul class="list-unstyled">
{{#if $lte currentDoc.jobs.length 3}}
{{#each job in currentDoc.jobs}}
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span>{{job.joblabel}}
</li>
{{/each}}
{{else}}
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span> {{currentDoc.jobs.[0].joblabel}}
</li>
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span> {{currentDoc.jobs.[1].joblabel}}
</li>
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span> {{currentDoc.jobs.[2].joblabel}} (...)
</li>
<p class="description">
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span> {{currentDoc.jobs.[3].joblabel}}
</li>
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span> {{currentDoc.jobs.[4].joblabel}}
</li>
<li class="text-primary">
<span class="glyphicon glyphicon-bullhorn"></span> {{currentDoc.jobs.[5].joblabel}}
</li>
</p>
{{/if}}
</ul>
</div> <!-- ./list-div -->
{{#if $lte currentDoc.tags.length 3}}
{{#each tag in currentDoc.tags}}
<span class="label label-default">{{currentDoc.tag}}</span>
{{/each}}
{{else}}
<span class="label label-default">{{currentDoc.tags.[0]}}</span>
<span class="label label-default">{{currentDoc.tags.[1]}}</span>
<span class="label label-default">{{currentDoc.tags.[2]}}</span>
<span class="label label-default">...</span>
{{/if}}
<div class="panel-footer text-center">
<ul class="list-inline">
<li class="text-muted"><span class="glyphicon glyphicon-time"></span> <small>{{releaseDate currentDoc.createdAt}}</small></li>
{{#if currentDoc.deadline}}
<li class="text-muted"><span class="glyphicon glyphicon-calendar"></span> <small>
{{#if currentDoc.start}}
{{readableDate currentDoc.start}}
{{/if}}
bis {{readableDate currentDoc.deadline}}</small></li>
{{/if}}
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
</template>