Skip to content

Commit 29d1988

Browse files
Apply column layout to profile page
1 parent d46e939 commit 29d1988

1 file changed

Lines changed: 62 additions & 60 deletions

File tree

html-templates/people/person.tpl

Lines changed: 62 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -24,73 +24,75 @@
2424
{/if}
2525
</header>
2626

27-
<div id="photos">
28-
{avatar $Person size=200}
29-
<div id="photo-thumbs" class="clearfix">
30-
{foreach item=Photo from=$Person->Photos}
31-
<a href="{$Photo->getThumbnailRequest(1024,768)}" class="photo-thumb" id="t{$Photo->ID}" title="{$Photo->Caption|escape}"><img src="{$Photo->getThumbnailRequest(48,48)}" /></a>
32-
{/foreach}
33-
</div>
34-
</div>
27+
<div class="row">
28+
<section id="info" class="col-md-9">
29+
{if $Person->About}
30+
<h3>{_ 'About Me'}</h3>
31+
<section class="about">
32+
{$Person->About|escape|markdown}
33+
</section>
34+
{/if}
3535

36-
<div id="info">
37-
{if $Person->About}
38-
<h3>{_ 'About Me'}</h3>
39-
<section class="about">
40-
{$Person->About|escape|markdown}
41-
</section>
42-
{/if}
36+
{if $.User}
37+
<h3>{_ 'Contact Information'}</h3>
38+
<dl class="section">
39+
{if $Person->Email}
40+
<dt>Email</dt>
41+
<dd><a href="mailto:{$Person->Email}" title="Email {personName $Person}">{$Person->Email}</a></dd>
42+
{/if}
4343

44-
{if $.User}
45-
<h3>{_ 'Contact Information'}</h3>
46-
<dl class="section">
47-
{if $Person->Email}
48-
<dt>Email</dt>
49-
<dd><a href="mailto:{$Person->Email}" title="Email {personName $Person}">{$Person->Email}</a></dd>
50-
{/if}
44+
{if $Person->Twitter}
45+
<dt>Twitter</dt>
46+
<dd><a href="https://twitter.com/{$Person->Twitter|escape}">{$Person->Twitter|escape}</a></dd>
47+
{/if}
5148

52-
{if $Person->Twitter}
53-
<dt>Twitter</dt>
54-
<dd><a href="https://twitter.com/{$Person->Twitter|escape}">{$Person->Twitter|escape}</a></dd>
55-
{/if}
49+
{if $Person->Phone}
50+
<dt>Phone</dt>
51+
<dd><a href="tel:{$Person->Phone|escape:url}">{$Person->Phone|phone}</a></dd>
52+
{/if}
53+
</dl>
54+
{/if}
5655

57-
{if $Person->Phone}
58-
<dt>Phone</dt>
59-
<dd><a href="tel:{$Person->Phone|escape:url}">{$Person->Phone|phone}</a></dd>
60-
{/if}
61-
</dl>
62-
{/if}
56+
{if $Person->TechTags}
57+
<h3>{_ "Tech I'm interested in"}</h3>
58+
<ul>
59+
{foreach item=Tag from=$Person->TechTags}
60+
<li>{contextLink $Tag}</li>
61+
{/foreach}
62+
</ul>
63+
{/if}
6364

64-
{if $Person->TechTags}
65-
<h3>{_ "Tech I'm interested in"}</h3>
66-
<ul>
67-
{foreach item=Tag from=$Person->TechTags}
68-
<li>{contextLink $Tag}</li>
69-
{/foreach}
70-
</ul>
71-
{/if}
65+
{if $Person->TopicTags}
66+
<h3>{_ "Topics I'm interested in"}</h3>
67+
<ul>
68+
{foreach item=Tag from=$Person->TopicTags}
69+
<li>{contextLink $Tag}</li>
70+
{/foreach}
71+
</ul>
72+
{/if}
7273

73-
{if $Person->TopicTags}
74-
<h3>{_ "Topics I'm interested in"}</h3>
75-
<ul>
76-
{foreach item=Tag from=$Person->TopicTags}
77-
<li>{contextLink $Tag}</li>
78-
{/foreach}
79-
</ul>
80-
{/if}
74+
{if $Person->ProjectMemberships}
75+
<h3>{_ 'My projects'}</h3>
76+
<ul>
77+
{foreach item=Membership from=$Person->ProjectMemberships}
78+
<li>{projectLink $Membership->Project} &mdash; {projectMemberTitle $Membership}</li>
79+
{/foreach}
80+
</ul>
81+
{/if}
8182

82-
{if $Person->ProjectMemberships}
83-
<h3>{_ 'My projects'}</h3>
84-
<ul>
85-
{foreach item=Membership from=$Person->ProjectMemberships}
86-
<li>{projectLink $Membership->Project} &mdash; {projectMemberTitle $Membership}</li>
87-
{/foreach}
88-
</ul>
89-
{/if}
83+
{if $Person->LastCheckin}
84+
<h3>{_ "Last event checkin"}</h3>
85+
<a href="{RemoteSystems\Meetup::getEventUrl($Person->LastCheckin->MeetupID)}">{$Person->LastCheckin->Created|date_format:'%c'}</a>
86+
{/if}
87+
</section>
9088

91-
{if $Person->LastCheckin}
92-
<h3>{_ "Last event checkin"}</h3>
93-
<a href="{RemoteSystems\Meetup::getEventUrl($Person->LastCheckin->MeetupID)}">{$Person->LastCheckin->Created|date_format:'%c'}</a>
94-
{/if}
89+
<section id="photos" class="col-md-3">
90+
{avatar $Person size=200}
91+
<div id="photo-thumbs" class="clearfix">
92+
{foreach item=Photo from=$Person->Photos}
93+
<a href="{$Photo->getThumbnailRequest(1024,768)}" class="photo-thumb" id="t{$Photo->ID}" title="{$Photo->Caption|escape}"><img src="{$Photo->getThumbnailRequest(48,48)}" /></a>
94+
{/foreach}
95+
</div>
96+
</section>
9597
</div>
9698
{/block}

0 commit comments

Comments
 (0)