1b0211cfb9
* Remove https for dlsite * Update listing.jet.html * Update torrent_item.jet.html * Update torrent_item_upload.jet.html * Update torrents.jet.html * remove role attribute * remove role attribute * login & register page styling * website-nav stylisation for main.css * remove now useless css rules * up to date main.css * OwO * Update main.css * Last stylisation changes for classic's nav * margin-left * add categories * add TestgenSearchWithCategory to template_test * add genSearchWithCategory function * forgot to close the function call * Update template_functions_test.go * Update template_functions.go * Update template_functions.go * attempt at fixing template_functions * Update template_functions.go
39 lignes
1,9 Kio
HTML
39 lignes
1,9 Kio
HTML
<div class="box refine website-nav{{if URL.String() != "/" && !kilo_strcmp(URL.String(), "/search", 7, 1) }} refine-not-search{{end}}">
|
|
<table id="nav-category-list">
|
|
<tbody>
|
|
<tr><td>{{if Search.Category == ""}}<b>{{ T("all_categories")}}</b>{{else}}<a href="{{genSearchWithCategory(URL, "_")}}">{{ T("all_categories")}}</a>{{end}}</td></tr>
|
|
<tr>
|
|
{{ range _, cat := GetCategories(true, false) }}
|
|
<td>{{if Search.Category == cat.ID }}<b>{{ T(cat.Name) }}</b>{{else}}<a href="{{genSearchWithCategory(URL, cat.ID)}}">{{ T(cat.Name) }}</a>{{end}}</td>
|
|
{{ if _ % 3 == 2}}
|
|
</tr><tr>
|
|
{{end}}
|
|
{{if _ + 1 == len(GetCategories(true, false)) }}
|
|
</tr>{{end}}
|
|
{{ end }}
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<table id="sort-list-order">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
{{ if Search.Sort != 2 && Search.Sort != 0}}<a href="{{ genSearchWithOrdering(URL, "2") }}">Date</a>{{else}}<b>Date</b>{{end}} /
|
|
{{ if Search.Sort != 5}}<a href="{{ genSearchWithOrdering(URL, "5") }}">Seeders</a>{{else}}<b>Seeders</b>{{end}} /
|
|
{{ if Search.Sort != 6}}<a href="{{ genSearchWithOrdering(URL, "6") }}">Leechers</a>{{else}}<b>Leechers</b>{{end}} /
|
|
{{ if Search.Sort != 7}}<a href="{{ genSearchWithOrdering(URL, "7") }}">Downloads</a>{{else}}<b>Downloads</b>{{end}} /
|
|
{{ if Search.Sort != 4}}<a href="{{ genSearchWithOrdering(URL, "4") }}">Size</a>{{else}}<b>Size</b>{{end}} /
|
|
{{ if Search.Sort != 1}}<a href="{{ genSearchWithOrdering(URL, "1") }}">Name</a>{{else}}<b>Name</b>{{end}}
|
|
</td>
|
|
<td style="padding: 0 0.35em!important;"> | </td>
|
|
<td>
|
|
{{ if Search.Order}}<a href="{{ genSearchWithOrdering(URL, toString(Search.Sort)) }}">Ascending</a>{{else}}<b>Ascending</b>{{end}} /
|
|
{{ if !Search.Order}}<a href="{{ genSearchWithOrdering(URL, toString(Search.Sort)) }}">Descending</a>{{else}}<b>Descending</b>{{end}}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<div class="pagination">
|
|
{{ genNav(Navigation, URL, 33)|raw }}
|
|
</div>
|
|
</div>
|