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/layouts/partials/menu/profile.jet.html
2017-10-07 17:45:43 +02:00

60 lignes
2,4 Kio
HTML

{{ block profile_menu(route="profile") }}
<div class="profile-sidebar">
<!-- SIDEBAR USERPIC -->
<div class="profile-userpic">
<img src="{{ getAvatar(UserProfile.MD5, 130) }}" alt="{{ UserProfile.Username }}"/>
</div>
<!-- END SIDEBAR USERPIC -->
<!-- SIDEBAR USER TITLE -->
<div class="profile-usertitle">
<p class="profile-usertitle-name">
{{ UserProfile.Username}}
</p>
<p class="profile-usertitle-job">
{{UserProfile.GetRole()}}
</p>
<p class="profile-usertitle-uploadcount">{{ T("torrents_uploaded") }}:<span>{{ NbTorrents }}</span></p>
</div>
<!-- END SIDEBAR USER TITLE -->
<!-- SIDEBAR BUTTONS -->
<div class="profile-usermenu">
{{if User.ID > 0 }}
{{if !User.CurrentUserIdentical(UserProfile.ID) }}
{{if !User.IsFollower(UserProfile)}}
<a class="form-input" href="/user/{{UserProfile.ID}}/{{UserProfile.Username}}/follow" class="form-input btn-green">{{ T("follow")}}</a>
{{else}}
<a class="form-input" href="/user/{{UserProfile.ID}}/{{UserProfile.Username}}/follow" class="form-input btn-orange">{{ T("unfollow")}}</a>
{{end}}
{{end}}
{{end}}
{{ if User.ID > 0 && (User.CurrentUserIdentical(UserProfile.ID) || User.CurrentOrAdmin(UserProfile.ID)) }}
<a class="form-input btn-green" href="/user/{{ UserProfile.ID }}/{{ UserProfile.Username }}">
{{ else }}
<a class="form-input btn-green" href="/search?userID={{ UserProfile.ID }}">
{{end}}
<div class="icon-floppy"></div>{{ T("torrents")}}
</a>
<a class="form-input btn-orange" href="/feed?userID={{ UserProfile.ID }}">
<div class="icon-rss-squared"></div>RSS
</a>
{{if User.ID > 0 }}
{{ if User.CurrentUserIdentical(UserProfile.ID) }}
<a class="form-input" href="/notifications">{{ T("my_notifications")}}</a>
{{end}}
{{if UserProfile.ID > 0 && User.CurrentOrAdmin(UserProfile.ID) }}
<a class="form-input" href="/user/{{UserProfile.ID}}/{{UserProfile.Username}}/edit">
{{ T("settings")}}
</a>
{{end}}
{{end}}
</div>
{{ if User.ID != UserProfile.ID }}
<div class="user-search">
<form role="search" action="/user/{{UserProfile.ID}}/{{UserProfile.Username}}/search" id="header-form" method="get">
<input class="form-input" name="q" type="text" placeholder="{{T("search_from_user")}}">
<button type="submit" class="form-input icon-search"></button>
</form>
</div>
{{end}}
</div>
{{end}}