mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 22:36:18 +08:00
add location field to user card expansion
This commit is contained in:
parent
88494736bb
commit
696a7e2c4d
|
@ -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}}
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user