80ab45d81e
* Fixing user profile page * Modified css rule word-break to break-word * Modified torrents table in user page to look like home listing * Made the button reset api look like a button according to actual design * Modified user menu to have the same spacing accross templates * User menu is in another template file loaded dynamically * Fixing the access to userprofile variable * Menu needs to access the user profile with $.UserProfile * User Notification template variable removed, instead using user profile variable * Reverting back theme flickering fix
19 lignes
750 o
HTML
Fichier exécutable
19 lignes
750 o
HTML
Fichier exécutable
{{define "title"}}{{ call $.T "profile_page" .UserProfile.Username }}{{end}}
|
||
{{define "contclass"}}cont-view{{end}}
|
||
{{define "rss_link"}}{{ genRoute "feed_user" "id" ( print .UserProfile.ID ) "username" .UserProfile.Username }}{{end}}
|
||
{{define "rsstitle" }}{{ .UserProfile.Username }}{{end}}
|
||
{{define "content"}}
|
||
{{ range (index $.FormInfos "infos")}}
|
||
<div class="alert alert-info"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-info-sign"></i> {{ . }}</div>
|
||
{{end}}
|
||
{{with .UserProfile}}
|
||
<div class="profile-main">
|
||
<div class="box profile-panel">
|
||
{{ block "profile_menu" $ }}{{end}}
|
||
</div>
|
||
{{end}}
|
||
<div class="profile-content box">
|
||
{{ block "profile_content" . }}{{end}}
|
||
</div>
|
||
</div>
|
||
{{end}}
|