Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/templates/user/profile_edit.html

67 lignes
1,9 Kio
HTML
Brut Vue normale Historique

2017-05-09 17:47:06 +02:00
{{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">
2017-05-10 08:57:48 +02:00
<img src="{{ getAvatar .MD5 130 }}" class="img-responsive" alt="{{.Username}}">
2017-05-09 17:47:06 +02:00
</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">
{{if gt $.User.ID 0 }}
{{if not (CurrentUserIdentical $.User .ID) }}
2017-05-10 03:15:29 +02:00
{{if not (IsFollower . $.User)}}
2017-05-10 08:57:48 +02:00
<a href="{{ genRoute "user_follow" "id" (print .ID)}}" class="btn btn-success btn-sm">{{ T "follow"}}</a>
2017-05-10 03:15:29 +02:00
{{else}}
2017-05-10 08:57:48 +02:00
<a href="{{ genRoute "user_follow" "id" (print .ID)}}" class="btn btn-danger btn-sm">{{ T "unfollow"}}</a>
2017-05-10 03:15:29 +02:00
{{end}}
2017-05-09 17:47:06 +02:00
{{end}}
{{end}}
<!-- <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="#">
<i class="glyphicon glyphicon-home"></i>
{{T "torrents"}} </a>
</li>
{{if gt $.User.ID 0 }}
{{if CurrentOrAdmin $.User .ID }}
2017-05-09 17:47:06 +02:00
<li class="active">
<a href="?edit">
<i class="glyphicon glyphicon-user"></i>
{{T "settings"}} </a>
</li>
{{end}}
{{end}}
</ul>
</div>
<!-- END MENU -->
</div>
</div>
{{end}}
<div class="col-md-9">
<div class="profile-content">
{{ block "profile_edit_content" . }}{{end}}
</div>
</div>
</div>
{{end}}