{{define "title"}}{{ call $.T "profile_edit_page" .User.Username }}{{end}}
{{define "contclass"}}cont-view{{end}}
{{define "content"}}
{{with .User }}
<div class="profile-main">
<div class="box profile-panel">
<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">
<p class="profile-usertitle-name">
{{.Username}}
</p>
<p class="profile-usertitle-job">
{{GetRole . }}
<!-- END SIDEBAR USER TITLE -->
<!-- SIDEBAR BUTTONS -->
<div class="profile-userbuttons">
<!-- <button type="button" class="btn btn-danger btn-sm">Message</button> -->
<!-- END SIDEBAR BUTTONS -->
<!-- SIDEBAR MENU -->
<div class="profile-usermenu">
<a class="form-input" href="{{ genRoute "user_profile" "id" (print .ID) "username" .Username }}"><i class="glyphicon glyphicon-home"></i>{{call $.T "torrents"}}</a>
{{if gt .ID 0 }}
<a class="form-input" href="{{ genRoute "user_notifications" }}"><i class="glyphicon glyphicon-bell"></i>{{call $.T "my_notifications"}}</a>
<a class="form-input" href="{{ genRoute "user_profile_edit" "id" (print .ID) "username" .Username }}"><i class="glyphicon glyphicon-user"></i>{{call $.T "settings"}}</a>
{{end}}
<!-- END MENU -->
<div class="profile-content box">
{{ block "profile_notifications_content" . }}{{end}}