Created
June 29, 2018 17:39
-
-
Save Cibernomadas/d69bb95818f6923eb6a0aaee6462d5ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{{define "content"}} | |
<div> | |
<table> | |
<tr valign="top"> | |
<td><img src="{{ .user.Avatar 128 }}"></td> | |
<td> | |
<h1>User: {{ .user.Username }}</h1> | |
{{ if .user.AboutMe }} | |
<p>{{ .user.AboutMe }}</p> | |
{{ end }} | |
{{ if .user.LastSeen }} | |
<p>Last seen on: {{ .user.LastSeen }}</p> | |
{{ end }} | |
{{ if eq .current_user.Username .user.Username }} | |
<p><a href="/edit_profile">Edit your profile</a></p> | |
{{ end }} | |
</td> | |
</tr> | |
</table> | |
<hr> | |
{{ template "posts" .posts }} | |
</div> | |
{{end}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment