798ec9a3a8
# Conflicts: # templates/_badgemenu.html
54 lignes
1,7 Kio
HTML
54 lignes
1,7 Kio
HTML
{{define "title"}}{{ call $.T "profile_edit_page" .User.Username }}{{end}}
|
||
{{define "contclass"}}cont-view{{end}}
|
||
{{define "content"}}
|
||
<div class="row profile">
|
||
{{with .User }}
|
||
<div class="col-md-3">
|
||
<div class="profile-sidebar">
|
||
<!-- SIDEBAR USERPIC -->
|
||
<div class="profile-userpic">
|
||
<img src="{{ getAvatar .MD5 130 }}" class="img-responsive" alt="{{.Username}}">
|
||
</div>
|
||
<!-- END SIDEBAR USERPIC -->
|
||
<!-- SIDEBAR USER TITLE -->
|
||
<div class="profile-usertitle">
|
||
<div class="profile-usertitle-name">
|
||
{{.Username}}
|
||
</div>
|
||
<div class="profile-usertitle-job">
|
||
{{GetRole . }}
|
||
</div>
|
||
</div>
|
||
<!-- END SIDEBAR USER TITLE -->
|
||
<!-- SIDEBAR BUTTONS -->
|
||
<div class="profile-userbuttons">
|
||
<!-- <button type="button" class="btn btn-danger btn-sm">Message</button> -->
|
||
</div>
|
||
<!-- END SIDEBAR BUTTONS -->
|
||
<!-- SIDEBAR MENU -->
|
||
<div class="profile-usermenu">
|
||
<ul class="nav">
|
||
<li>
|
||
<a href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}"><i class="glyphicon glyphicon-home"></i>{{call $.T "torrents"}}</a>
|
||
</li>
|
||
{{if gt .ID 0 }}
|
||
<li class="active">
|
||
<a href="{{ genRoute "user_notifications" }}"><i class="glyphicon glyphicon-bell"></i>{{call $.T "my_notifications"}}</a>
|
||
</li>
|
||
<li>
|
||
<a href="{{ genRoute "user_profile_edit" "id" (print .ID) "username" .Username }}"><i class="glyphicon glyphicon-user"></i>{{call $.T "settings"}}</a>
|
||
</li>
|
||
{{end}}
|
||
</ul>
|
||
</div>
|
||
<!-- END MENU -->
|
||
</div>
|
||
</div>
|
||
{{end}}
|
||
<div class="col-md-9">
|
||
<div class="profile-content">
|
||
{{ block "profile_notifications_content" . }}{{end}}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{{end}}
|