{{define "title"}}{{ T "profile_edit_page" .UserProfile.Username }}{{end}}
{{define "contclass"}}cont-view{{end}}
{{define "content"}}
<div class="row profile">
{{with .UserProfile}}
<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 class="profile-usertitle-job">
{{GetRole . }}
<!-- END SIDEBAR USER TITLE -->
<!-- SIDEBAR BUTTONS -->
<div class="profile-userbuttons">
{{if gt $.User.ID 0 }}
{{if not (CurrentUserIdentical $.User .ID) }}
{{if not (IsFollower . $.User)}}
<a href="{{ genRoute "user_follow" "id" (print .ID)}}" class="btn btn-success btn-sm">{{ T "follow"}}</a>
{{else}}
<a href="{{ genRoute "user_follow" "id" (print .ID)}}" class="btn btn-danger btn-sm">{{ T "unfollow"}}</a>
{{end}}
<!-- <button type="button" class="btn btn-danger btn-sm">Message</button> -->
<!-- END SIDEBAR BUTTONS -->
<!-- SIDEBAR MENU -->
<div class="profile-usermenu">
<ul class="nav">
<li>
<a href="#">
<i class="glyphicon glyphicon-home"></i>
{{T "torrents"}} </a>
</li>
{{if CurrentOrAdmin $.User .ID }}
<li class="active">
<a href="?edit">
<i class="glyphicon glyphicon-user"></i>
{{T "settings"}} </a>
</ul>
<!-- END MENU -->
<div class="col-md-9">
<div class="profile-content">
{{ block "profile_edit_content" . }}{{end}}