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
64 lignes
2,7 Kio
HTML
64 lignes
2,7 Kio
HTML
{{define "profile_content"}}
|
|
{{with .UserProfile}}
|
|
{{ if gt (len .Torrents) 0 }}
|
|
<div class="table-responsive">
|
|
<table class="table custom-table-hover">
|
|
<tr>
|
|
<th>{{call $.T "category"}}</th>
|
|
<th>{{call $.T "name"}}</th>
|
|
<th>{{call $.T "date"}}</th>
|
|
<th>{{call $.T "size"}}</th>
|
|
<th>{{call $.T "links"}}</th>
|
|
</tr>
|
|
{{ range $i, $t := .Torrents }}
|
|
{{ if lt $i 16 }}
|
|
{{ with $t.ToJSON }}
|
|
<tr class="torrent-info
|
|
{{if eq .Status 2}}remake{{end}}
|
|
{{if eq .Status 3}}trusted{{end}}
|
|
{{if eq .Status 4}}aplus{{end}}">
|
|
<!-- forced width because the <td> gets bigger randomly otherwise -->
|
|
<td style="width:80px">
|
|
<a href="{{$.URL.Parse (printf "/search?c=%s_%s" .Category .SubCategory) }}">
|
|
{{ if Sukebei }}
|
|
<img src="{{$.URL.Parse (printf "/img/torrents/sukebei/%s%s.png" .Category .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
|
|
{{ else }}
|
|
<img src="{{$.URL.Parse (printf "/img/torrents/%s.png" .SubCategory) }}" title="{{ call $.T (CategoryName .Category .SubCategory) }}">
|
|
{{ end}}
|
|
</a>
|
|
</td>
|
|
<td class="name">
|
|
<a href="{{genRoute "view_torrent" "id" .ID }}">
|
|
{{.Name}}
|
|
</a>
|
|
</td>
|
|
<td class="nowrap date-short">{{.Date}}</td>
|
|
<td class="nowrap">
|
|
{{ fileSize .Filesize $.T }}
|
|
</td>
|
|
<td>
|
|
<a href="{{.Magnet}}" title="{{ call $.T "magnet_link" }}">
|
|
<span class="oi" data-glyph="cloud-download"></span>
|
|
</a>
|
|
{{if ne .TorrentLink ""}}
|
|
<a href="{{.TorrentLink}}" title="{{ call $.T "torrent_file" }}">
|
|
<span class="oi" data-glyph="data-transfer-download"></span>
|
|
</a>
|
|
{{end}}
|
|
</td>
|
|
</tr>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|
|
</table>
|
|
<nav class="torrentNav" aria-label="Page navigation">
|
|
<ul class="pagination">
|
|
<li><a href="{{ genRoute "search" }}?userID={{ .ID }}" aria-label="Next"><span class="glyphicon glyphicon-add"></span> {{ call $.T "see_more_torrents_from" .Username }}</a></li>
|
|
</ul>
|
|
</nav>
|
|
</div>
|
|
{{else}}
|
|
<h2 style="text-align: center;">{{ call $.T "no_torrents_uploaded" }}</h2>
|
|
{{end}}
|
|
{{end}}
|
|
{{end}}
|