{{ define "gist_header" }}

{{ .gist.User.Username }} / {{ .gist.Title }}

{{ if .userLogged }}
{{ .csrfHtml }} {{ .gist.NbLikes }}
{{ .csrfHtml }} {{ .gist.NbForks }}
{{ else }} {{ end }} {{ if .userLogged }}{{ if eq .gist.User.Username .userLogged.Username }}
{{ .csrfHtml }}
Edit
{{ .csrfHtml }}
{{ end }}{{ end }}
{{ if .gist.Forked }}

Forked from {{ .gist.Forked.User.Username }}/{{ .gist.Forked.Title }}

{{ end }}

Last active {{ .gist.UpdatedAt }} • {{ if .gist.Private }} Unlisted {{else}} Public {{ end }}

{{ .gist.Description }}

{{ if .revision }} {{ if ne .revision "HEAD" }}

Revision {{ .revision }}

{{ end }} {{ end }}
{{ end }}