Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0

Make comments extra column + search bar doesn't freak out anymore (#621)

* Make comments extra column

* Fixed #595 w00t

* Cleanups and fixes (#623)

* Keep naming consistent

* Remove execute bit from files

* Default to DefaultLanguage (without passing it to the func)

* Remove commented code

* Use Content-Type to get language json

* Lines of 400 characters is dumb

* Update new repo in README

* Remove useless script since we fallback to a defaultlang

* Fix fallback language panic

* Fix uninitialized MaxPerPage when not in querystr

The issue was that the req.MaxPerPage was not set (default to 0) when
the query string didn't include "max". This makes the server query the
whole db since the resulting limit is 0.

* Fix creating empty torrents (only worked once)

* Lines of 400 characters is still dumb

* Update ja-jp.all.json (#622)

* Update README.md

* Make comments extra column

* Fixed #595 w00t

* Comment out comments for now
Cette révision appartient à :
kipukun 2017-05-19 01:36:32 -04:00 révisé par ewhal
Parent afe52bdfbe
révision 13375411ad
3 fichiers modifiés avec 51 ajouts et 8 suppressions

Voir le fichier

@ -537,3 +537,40 @@ select#bottom_language_selector {
margin-left: 0;
}
}
@media (max-width: 995px) {
.navbar-header {
float: none;
}
.navbar-left,.navbar-right {
float: none !important;
}
.navbar-toggle {
display: block;
}
.navbar-collapse {
border-top: 1px solid transparent;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.navbar-fixed-top {
top: 0;
border-width: 0 0 1px;
}
.navbar-collapse.collapse {
display: none!important;
}
.navbar-nav {
float: none!important;
margin-top: 7.5px;
}
.navbar-nav>li {
float: none;
}
.navbar-nav>li>a {
padding-top: 10px;
padding-bottom: 10px;
}
.collapse.in{
display:block !important;
}
}

Voir le fichier

@ -25,9 +25,10 @@ Your browser does not support the audio element.
<table class="table custom-table-hover">
<tr>
<th class="col-xs-1 hidden-xs">{{T "category"}}</th>
<th class="col-xs-12">
<th class="col-xs-5">
<a href="{{ genSearchWithOrdering .URL "1" }}">{{T "name"}}{{ genSortArrows .URL "1" }}</a>
</th>
<!-- <th class="col-xs-1 hidden-xs"><span class="glyphicon glyphicon-comment"></span></th> -->
<th class="col-xs-1 hidden-xs"><a href="{{ genSearchWithOrdering .URL "5" }}">{{T "S"}}{{ genSortArrows .URL "5" }}</a></th>
<th class="col-xs-1 hidden-xs"><a href="{{ genSearchWithOrdering .URL "6" }}">{{T "L"}}{{ genSortArrows .URL "6" }}</a></th>
<th class="col-xs-1 hidden-xs"><a href="{{ genSearchWithOrdering .URL "7" }}">{{T "D"}}{{ genSortArrows .URL "7" }}</a></th>
@ -56,8 +57,12 @@ Your browser does not support the audio element.
<a href="{{genRoute "view_torrent" "id" .ID }}">
{{.Name}}
</a>
<span class="badge pull-right hidden-xs">{{ len .Comments }}</span>
</td>
<!--
<td class="hidden-xs">
{{len .Comments}}
</td>
-->
{{if .LastScrape.IsZero}}
<td class="hidden-xs" colspan="3" align="center">{{T "unknown"}}</td>
{{else}}

Voir le fichier

@ -45,17 +45,18 @@
<span class="icon-bar"></span>
</button>
<a href="{{.URL.Parse "/"}}"><img src="/img/logo.png" class ="navbar-logo" alt="Nyaa Pantsu"></a>
<a class="navbar-brand hidden-md pull-right nightswitch" href="javascript:toggleNightMode();" ></a>
<!--
<a class="navbar-brand hidden-md pull-right nightswitch" href="javascript:toggleNightMode();" ></a> -->
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="{{.URL.Parse "/upload"}}">{{T "upload"}}</a></li>
<li><a href="{{.URL.Parse "/faq"}}">{{T "faq"}}</a></li>
<li><a href="{{ genRouteWithQuery "feed" .URL }}">RSS</a></li>
<li><a href="{{.URL.Parse "/upload"}}"><div class="hidden-md hidden-sm">{{T "upload"}}</div><span class="glyphicon glyphicon-cloud-upload visible-md"></span></a></li>
<li><a href="{{.URL.Parse "/faq"}}"><div class="hidden-md hidden-sm">{{T "faq"}}</div><span class="glyphicon glyphicon-question-sign visible-md"></span></a></li>
<li><a href="{{ genRouteWithQuery "feed" .URL }}"><div class="hidden-md hidden-sm">RSS</div><span class="glyphicon glyphicon-flash visible-md"></span></a></li>
{{ if Sukebei }}
<li><a href="https://nyaa.pantsu.cat">{{T "fun"}}</a></li>
<li><a href="https://nyaa.pantsu.cat"><div class="hidden-md hidden-sm">{{T "fun"}}</div><span class="glyphicon glyphicon-eye-open visible-md"></span></a></li>
{{ else }}
<li><a href="https://sukebei.pantsu.cat">{{T "fap"}}</a></li>
<li><a href="https://sukebei.pantsu.cat"><div class="hidden-md hidden-sm">{{T "fap"}}</div><span class="glyphicon glyphicon-eye-close visible-md"></span></a></li>
{{ end }}
</ul>
{{block "badge_user" .}}{{end}}