diff options
author | slene <vslene@gmail.com> | 2014-03-15 10:35:04 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-15 10:35:04 +0800 |
commit | 2289ff20bf40e2adaa096aeac80837c69c2f01c3 (patch) | |
tree | a90faa66ed0d49bbcfda430b8e00632bce59505e /templates/user/profile.tmpl | |
parent | d50e18ab6dd3de96c4d48816ab53e8ba9b74cf17 (diff) | |
download | gitea-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.tmpl | 12 |
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> |