e9825a2683
* Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * HOLY FUCK INDEX IS /DONE/ * DO UPLOAD PAGE, DELETE OLD SHITTY CSS * Complete login page * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * Change layout on torrent table, using grids. * Remove Bootstrap and Jquery, and create basic nav * More improvements to navbar, as well as work on _badgemenu * Complete navbar HTML, obviously it still looks horrendous * HOLY FUCK INDEX IS /DONE/ * DO UPLOAD PAGE, DELETE OLD SHITTY CSS * Complete login page * Begin work on profile page * fucking git, man * Damn, that looks sexy * Complete login and register pages, include very minimal grid system, and delete all of view template * Do view page! * Finish view even more * Fix dates and filesizes in torrent table * Improve comment/captcha input * Actually add magnet and torrent buttons * Add open-iconic instead of fontawesome * Improve user side-panel * Rename Category_* to CategoryName * Beginning to finish up * Implement themes and add basic mobile support to front page * Fix some slight color errors * Fix captcha on dark * magnet and torrent links on view
63 lignes
2,7 Kio
HTML
Fichier exécutable
63 lignes
2,7 Kio
HTML
Fichier exécutable
{{define "title"}}{{ call $.T "profile_page" .UserProfile.Username }}{{end}}
|
||
{{define "contclass"}}cont-view{{end}}
|
||
{{define "rss_link"}}{{ genRoute "feed_user" "id" ( print .UserProfile.ID ) "username" .UserProfile.Username }}{{end}}
|
||
{{define "rsstitle" }}{{ .UserProfile.Username }}{{end}}
|
||
{{define "content"}}
|
||
{{ range (index $.FormInfos "infos")}}
|
||
<div class="alert alert-info"><a class="panel-close close" data-dismiss="alert">×</a><i class="glyphicon glyphicon-info-sign"></i> {{ . }}</div>
|
||
{{end}}
|
||
{{with .UserProfile}}
|
||
<div class="profile-main">
|
||
<div class="box profile-panel">
|
||
<div class="profile-sidebar">
|
||
<!-- SIDEBAR USERPIC -->
|
||
<div class="profile-userpic">
|
||
<img src="{{ getAvatar .MD5 130 }}" 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 . }}
|
||
</p>
|
||
</div>
|
||
<!-- 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 class="form-input" href="{{ genRoute "user_follow" "id" ( print .ID ) "username" .Username }}" class="btn btn-success btn-sm">{{ call $.T "follow"}}</a><br>
|
||
{{else}}
|
||
<a class="form-input" href="{{ genRoute "user_follow" "id" ( print .ID ) "username" .Username }}" class="btn btn-danger btn-sm">{{ call $.T "unfollow"}}</a><br>
|
||
{{end}}
|
||
{{end}}
|
||
{{end}}
|
||
<!-- <button type="button" class="btn btn-danger btn-sm">Message</button> -->
|
||
</div> <br>
|
||
<!-- 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> <br>
|
||
{{if gt $.User.ID 0 }}
|
||
{{ if CurrentUserIdentical $.User .ID }}
|
||
<a class="form-input" href="{{ genRoute "user_notifications" "id" (print .ID) "username" .Username }}"><i class="glyphicon glyphicon-bell"></i>{{ call $.T "my_notifications"}}</a> <br>
|
||
{{end}}
|
||
{{if CurrentOrAdmin $.User .ID }}
|
||
<a class="form-input" href="{{ genRoute "user_profile_details" "id" ( print .ID ) "username" .Username }}"><i class="glyphicon glyphicon-user"></i>{{call $.T "settings"}}</a> <br>
|
||
{{end}}
|
||
{{end}}
|
||
</div>
|
||
<!-- END MENU -->
|
||
</div>
|
||
</div>
|
||
{{end}}
|
||
<div class="profile-content box">
|
||
{{ block "profile_content" . }}{{end}}
|
||
</div>
|
||
</div>
|
||
</div>
|
||
{{end}}
|