Skip to content

Commit 4a9fa9c

Browse files
Wire new markup for current checkins
1 parent 89c3335 commit 4a9fa9c

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

html-templates/home.tpl

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -58,38 +58,39 @@
5858
</div>
5959
<input type="submit" value="Check In" class="btn btn-success">
6060
</form>
61+
62+
{if count($currentMeetup.checkins)}
6163
<div class="checkins">
6264
<h3>{_ "Checked-in Members"}</h3>
6365

64-
{*
65-
6666
{$lastProjectID = false}
67-
<dl class="checkins-list">
68-
<dt class="checkins-list-title">{_ "No Current Project"}</dt>
69-
{foreach item=Checkin from=$currentMeetup.checkins}
70-
{if $Checkin->Project && $Checkin->ProjectID != $lastProjectID}
71-
<dt class="checkins-list-title">{projectLink $Checkin->Project}</dt>
72-
{$lastProjectID = $Checkin->ProjectID}
67+
68+
{foreach item=Checkin from=$currentMeetup.checkins}
69+
{if $Checkin->ProjectID !== $lastProjectID}
70+
{tif !$.foreach.default.first ? '</ul>'}
71+
<h4>
72+
{if $Checkin->Project}
73+
{projectLink $Checkin->Project}
74+
{else}
75+
No Current Project
7376
{/if}
74-
<dd class="checkins-list-person">{personLink $Checkin->Member photo=yes photoSize=64 linkCls="thumbnail"}</dd>
75-
{/foreach}
76-
</dl>
77-
78-
*}
79-
80-
<h4>No Current Project</h4>
81-
82-
<h4><a href="/projects/example_project-4">Example Project</a></h4>
83-
<ul class="row list-unstyled">
84-
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
85-
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
86-
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/kurt" title="Kurt Gawinowicz" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/5d5ff5fd825a914d5057562aec05eb9b?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Kurt Gawinowicz</span></a></li>
87-
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/kurt" title="Kurt Gawinowicz" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/5d5ff5fd825a914d5057562aec05eb9b?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Kurt Gawinowicz</span></a></li>
88-
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
89-
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/kurt" title="Kurt Gawinowicz" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/5d5ff5fd825a914d5057562aec05eb9b?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Kurt Gawinowicz</span></a></li>
77+
</h4>
78+
79+
{$lastProjectID = $Checkin->ProjectID}
80+
81+
<ul class="row list-unstyled">
82+
{/if}
83+
84+
<li class="col-xs-6 col-sm-4 col-md-3">
85+
{personLink $Checkin->Member photo=yes photoSize=64 linkCls="thumbnail"}
86+
</li>
87+
{/foreach}
88+
9089
</ul>
9190

9291
</div>
92+
{/if}
93+
9394
</div>
9495
</div>
9596
{/if}
@@ -114,7 +115,7 @@
114115

115116
<h4>Projects</h4>
116117
<h5><a href="/projects/example_project-4">Example Project</a></h5>
117-
<ul class="row list-unstyled">
118+
<ul class="row list-unstyled">
118119
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
119120
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
120121
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/kurt" title="Kurt Gawinowicz" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/5d5ff5fd825a914d5057562aec05eb9b?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Kurt Gawinowicz</span></a></li>
@@ -124,15 +125,15 @@
124125
</ul>
125126

126127
<h4>New Projects</h4>
127-
<ul class="padding-bottom">
128+
<ul class="padding-bottom">
128129
<li><a href="#">Example Project 2</a></li>
129130
<li><a href="#">Example Project 3</a></li>
130131
<li><a href="#">Example Project 4</a></li>
131132
<li><a href="#">Example Project 5</a></li>
132133
</ul>
133134

134135
<h4>New Members</h4>
135-
<ul class="row list-unstyled">
136+
<ul class="row list-unstyled">
136137
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
137138
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/chris" title="Chris Alfano" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/36b6d909c0c65d4fcdfcc307b84fb06f?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Chris Alfano</span></a></li>
138139
<li class="col-xs-6 col-sm-4 col-md-3"><a href="/people/kurt" title="Kurt Gawinowicz" class="thumbnail text-center"><img src="//www.gravatar.com/avatar/5d5ff5fd825a914d5057562aec05eb9b?s=128&amp;r=g&amp;d=mm" class="avatar " width="64" height="64"><span class="name ">Kurt Gawinowicz</span></a></li>

0 commit comments

Comments
 (0)