aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/profile.tmpl
diff options
context:
space:
mode:
authorslene <vslene@gmail.com>2014-03-15 10:35:04 +0800
committerslene <vslene@gmail.com>2014-03-15 10:35:04 +0800
commit2289ff20bf40e2adaa096aeac80837c69c2f01c3 (patch)
treea90faa66ed0d49bbcfda430b8e00632bce59505e /templates/user/profile.tmpl
parentd50e18ab6dd3de96c4d48816ab53e8ba9b74cf17 (diff)
downloadgitea-2289ff20bf40e2adaa096aeac80837c69c2f01c3.tar.gz
gitea-2289ff20bf40e2adaa096aeac80837c69c2f01c3.zip
That's one small step for man, one giant leap for gopher.
Diffstat (limited to 'templates/user/profile.tmpl')
-rw-r--r--templates/user/profile.tmpl12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index c10bfcb0f3..6e4604152a 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -10,9 +10,15 @@
</div>
<div class="profile-info">
<ul class="list-group">
- <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
- <li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}">{{.Owner.Email}}</a></li>
- <li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
+ {{if .Owner.Location}}
+ <li class="list-group-item"><i class="fa fa-thumb-tack"></i>{{.Owner.Location}}</li>
+ {{end}}
+ {{if .Owner.Email}}
+ <li class="list-group-item"><i class="fa fa-envelope"></i><a href="mailto:{{.Owner.Email}}">{{.Owner.Email}}</a></li>
+ {{end}}
+ {{if .Owner.Website}}
+ <li class="list-group-item"><i class="fa fa-link"></i><a target="_blank" href="{{.Owner.Website}}">{{.Owner.Website}}</a></li>
+ {{end}}
<li class="list-group-item"><i class="fa fa-clock-o"></i>{{.Owner.Created}}</li>
</ul>
</div>