Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Graphe des révisions

13 commits

Auteur SHA1 Message Date
tomleb babf0a37f0 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
2017-05-19 12:55:59 +10:00
PantsuDev 70f87e7aac finish repo transfer 2017-05-17 15:58:40 +10:00
sfan5 cb455113cc Various fixes (#521)
* Re-add old uploader name to view page

* Update zh-CN translation (fixes #519)

* Nicer text boxes in night mode (closes #515)

* Fix max results defaulting to 5 (fixes #488)

* Add link back to nyaa on sukebei (fixes #255 and #437)

* Fix visual bug with pt-BR translation (fixes #427)
2017-05-15 21:55:16 +10:00
Atvaark cd844aec45 Replace 'en-us' literals with the default language
This consolidates the places where a default language has to be set.

- Removed import of the 'userService' package into the 'languages' util
  package
  This was required to prevent a cyclic import between the two packages.
- Added a 'UserRetriever' interface to read the language setting of users
  inside the 'languages' package
2017-05-14 22:10:07 +02:00
sfan5 f1aa52e618 Cleanup usage of now removed HideAdvancedSearch 2017-05-14 13:05:18 +02:00
ElegantMonkey 9e10102c2d Add translation code to handlers 2017-05-08 16:16:26 -03:00
akuma06 9bc75c86f3 Added logged badge + new User variable in each template variables 2017-05-08 01:46:30 +02:00
Jeff Becker b599bb1ef2 fix up templates, get reading for Reload template on SIGHUP 2017-05-07 07:51:33 -04:00
bakape 8e15b211df Revert quicktemplate search template 2017-05-07 02:20:13 +03:00
bakape a16caa0556 Port _search.html to quicktemplate 2017-05-07 00:21:16 +03:00
bakape 2cb605a027 Don't reparse templates on every fucking request 2017-05-06 20:03:21 +03:00
akuma06 6b1196f12c Merge branch 'master' of https://github.com/ewhal/nyaa
Conflicts:
	main.go
Resolved conflicts with new merge
2017-05-05 22:30:56 +02:00
akuma06 9739610311 Separated Routes and handler from Main
Everything is in the router folder in different file
2017-05-05 16:39:15 +02:00