add location field to user card expansion

This commit is contained in:
Jeff Atwood 2014-05-29 01:12:47 -07:00
parent 88494736bb
commit 696a7e2c4d
2 changed files with 2 additions and 1 deletions

View File

@ -23,6 +23,7 @@
{{#if user}} {{#if user}}
<div class="metadata"> <div class="metadata">
{{#if user.location}}<h3><i class="fa fa-map-marker"></i> {{{user.location}}}</h3>{{/if}}
<h3>{{i18n last_post}} {{unboundDate path="user.last_posted_at" leaveAgo="true"}}</h3> <h3>{{i18n last_post}} {{unboundDate path="user.last_posted_at" leaveAgo="true"}}</h3>
<h3>{{i18n joined}} {{unboundDate path="user.created_at" leaveAgo="true"}}</h3> <h3>{{i18n joined}} {{unboundDate path="user.created_at" leaveAgo="true"}}</h3>
{{groups-list groups=user.custom_groups}} {{groups-list groups=user.custom_groups}}

View File

@ -87,7 +87,7 @@
<div class='secondary'> <div class='secondary'>
<dl> <dl>
{{#if location}} {{#if location}}
<dt>{{i18n user.location}}</dt><dd>{{location}}</a></dd> <dd><i class="fa fa-map-marker"></i> {{location}}</dd>
{{/if}} {{/if}}
{{#if websiteName}} {{#if websiteName}}
<dt>{{i18n user.website}}</dt><dd><a {{bind-attr href="website"}} target="_blank">{{websiteName}}</a></dd> <dt>{{i18n user.website}}</dt><dd><a {{bind-attr href="website"}} target="_blank">{{websiteName}}</a></dd>