Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Minor html formatting

Cette révision appartient à :
ripdog 2017-05-10 22:22:12 +12:00
Parent 8391fc57bc
révision f0a82c52cf

28
templates/user/profile.html Fichier normal → Fichier exécutable
Voir le fichier

@ -26,13 +26,13 @@
<!-- SIDEBAR BUTTONS --> <!-- SIDEBAR BUTTONS -->
<div class="profile-userbuttons"> <div class="profile-userbuttons">
{{if gt $.User.ID 0 }} {{if gt $.User.ID 0 }}
{{if not (CurrentUserIdentical $.User .ID) }} {{if not (CurrentUserIdentical $.User .ID) }}
{{if not (IsFollower . $.User)}} {{if not (IsFollower . $.User)}}
<a href="{{ genRoute "user_follow" "id" ( print .ID ) "username" .Username }}" class="btn btn-success btn-sm">{{ T "follow"}}</a> <a href="{{ genRoute "user_follow" "id" ( print .ID ) "username" .Username }}" class="btn btn-success btn-sm">{{ T "follow"}}</a>
{{else}} {{else}}
<a href="{{ genRoute "user_follow" "id" ( print .ID ) "username" .Username }}" class="btn btn-danger btn-sm">{{ T "unfollow"}}</a> <a href="{{ genRoute "user_follow" "id" ( print .ID ) "username" .Username }}" class="btn btn-danger btn-sm">{{ T "unfollow"}}</a>
{{end}} {{end}}
{{end}} {{end}}
{{end}} {{end}}
<!-- <button type="button" class="btn btn-danger btn-sm">Message</button> --> <!-- <button type="button" class="btn btn-danger btn-sm">Message</button> -->
</div> </div>
@ -46,13 +46,13 @@
{{T "torrents"}} </a> {{T "torrents"}} </a>
</li> </li>
{{if gt $.User.ID 0 }} {{if gt $.User.ID 0 }}
{{if CurrentOrAdmin $.User .ID }} {{if CurrentOrAdmin $.User .ID }}
<li> <li>
<a href="?edit"> <a href="?edit">
<i class="glyphicon glyphicon-user"></i> <i class="glyphicon glyphicon-user"></i>
{{T "settings"}} </a> {{T "settings"}} </a>
</li> </li>
{{end}} {{end}}
{{end}} {{end}}
</ul> </ul>
</div> </div>