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

39 commits

Auteur SHA1 Message Date
ewhal
34a6961c0e Merge pull request #1304 from NyaaPantsu/tags
Initial Tag System [done]
2017-08-02 21:59:26 +10:00
akuma06
bd959764f3 fixed counter 2017-08-01 15:38:09 +02:00
akuma06
b16e76d0b6 Fix for ajax query + uniformize api response 2017-08-01 14:47:27 +02:00
akuma06
ba476185d3 fix form variable not defined error 2017-08-01 14:21:05 +02:00
akuma06
46c105362d fix hiding voting tag for anon 2017-08-01 14:12:17 +02:00
akuma06
6ba6117b8d Merge branch 'tags' of https://github.com/NyaaPantsu/nyaa into tags 2017-08-01 13:56:04 +02:00
akuma06
e68637198f Add ajax tag post + improved the way templating works 2017-08-01 13:54:01 +02:00
kilo
7508bc24f1 Hiding pending tag for anon (#1306)
* Update main.css

* Update tomorrow.css

* Update torrent.go

* Update tag.go

* Update torrent.go

* Update view.jet.html

* adding the S

* fix color for sukebei

* better padding for download buttons
2017-08-01 13:45:06 +02:00
kilo
3708647c73 Not showing torrents with invalid categories in listing (#1302)
* Show "unknown" category if name is empty (invalid)

* Don't show torrent in listing if invalid category
2017-08-01 00:57:56 +02:00
kilo
b21a09b9d4 Cleaning after akuma (#1305)
* Update view.jet.html

* Update tag.jet.html
2017-08-01 00:45:15 +02:00
akuma06
088612bed3 Parentheses for tag weight 2017-07-31 18:34:57 +02:00
akuma06
1697542143 CSS Rule: Anon can't vote 2017-07-31 18:33:27 +02:00
akuma06
6aa6e9d95f Added check on userID > 0 + links are more stylish 2017-07-31 18:29:43 +02:00
akuma06
7bd3b176c0 add css tags 2017-07-31 17:13:48 +02:00
akuma06
6e5be0f7f1 Tags no-js works + less sql in Development mode + debug tool 2017-07-31 03:15:37 +02:00
akuma06
fe2c128e44 Added form to add tags on view 2017-07-30 03:29:09 +02:00
kilo
35905fbe33 Update view.jet.html (#1285) 2017-07-26 18:59:41 +10:00
PantsuDev
cdabd79c03 Fix more style issues 2017-07-24 15:03:43 +10:00
kilo
bee042490b AAAAAA (#1252)
* Update view.jet.html

* fix height of "loop icon"
2017-07-20 21:32:51 +02:00
akuma06
4a26d50ed1 Fixing FileList IdentifierChain not available error 2017-07-19 22:12:03 +02:00
kilo
d32a5a306b File list open by default if there is only 1 - 3 files (not much space occupied), file list at 50% opacity if there's no file (#1227)
* Update view.jet.html

* whoopsies wrong line
2017-07-18 02:02:29 +02:00
kilo
50a66c2058 Update view.jet.html 2017-07-14 22:45:28 +10:00
kilo
22a1dbaf63 Update view.jet.html 2017-07-13 07:39:51 +02:00
kilo
c32f3f34d1 alright now travis werks 2017-07-13 00:39:54 +10:00
kilo
cdeac8283a maybe that will fix the travis? 2017-07-13 00:39:54 +10:00
kilo
bb26c861fd woopsies ) too much 2017-07-13 00:39:54 +10:00
kilo
e9db3f6445 Update view.jet.html 2017-07-13 00:39:54 +10:00
akuma06
fbb578b800 Fixing issues with language name translation 2017-07-12 12:04:20 +10:00
akuma06
21767877b1 Fixing call to flag method 2017-07-12 12:04:20 +10:00
akuma06
e1d6e7df20 Changing to the new behaviour of package languages 2017-07-12 12:04:20 +10:00
kilo
6e34889847 Update view.jet.html 2017-07-12 12:04:20 +10:00
akuma06
f8de340265 Added search refine on every pages + fixed kilo.js 2017-07-10 15:24:52 +02:00
kilo
baeb405490 too lazy to make a title (#1138)
* preliminary work

* Update main.css
2017-07-10 13:55:29 +10:00
akuma06
2bf9b26dfd Fix comments 2017-07-09 16:21:34 +02:00
akuma06
e2f3507069 Some html fixes 2017-07-04 01:15:43 +02:00
akuma06
929bf0e71b Fixing profile_edit 2017-07-03 02:16:39 +02:00
akuma06
baccce78e2 Added some check on User variable
User is now a pointer, so doing User.xxx will make an error nil pointer dereference. So we have to check that User is not nil
2017-07-03 01:11:45 +02:00
akuma06
b11c02e54e Fixed templates with new functions 2017-07-03 00:34:18 +02:00
akuma06
5991a21818 First batch of changes for the refactor (#1078)
* First batch of changes for the refactor

Added the support of gin in routes and other services/utils
Begining implementation of JetHTML

* Remove os folder

* Move scrapers to own repo

* Second batch of changes

All .jet.html are the working templates.
You can now test this PR, the index Page and upload works. If you want to complete the other html templates, you're welcome

* Move captcha to util

* Move uploadService to utils

* Use govalidator instead of regex

* Third batch of changes

All the front end should as previously.
I also fixed some minor things unrelated to the refactor (mostly style issues on static pages)
Now errors can be accessed by importing the "errors" helpers and using the `yield errors(name="xxx")` command in templates.
Same for infos.
Templates are now more hierarchized with a base template "base.jet.html" which is extended depending on the context in "index_site" or "index_admin" layouts. Those layouts are extended than in every pages.
Other helpers are captcha to render a captcha `yield captcha(captchaid="xxx")`
And also csrf, with the command `yield csrf_field()`
To translate, you don't have anymore to do `call $.T "xxx"`, you just have to do `T("xxx")`.

Pages for the website part are in folders in the folder "templates/site". Pages for the admin part are in "templates/admin". Layouts are separated in "templates/layouts". Helpers and menu are in "templates/layouts/helpers" and "templates/layouts/menu". Error pages should be put in "templates/errors"

* Added test on templates

When adding a new template, you have to tell to template_test.go, the context of the new template (if it doesn't use the common context)

* Panel admin works

Now the templating part should work. The PR can now be fully tested.

I think we should push the templating PR  and do the routes/controllers/removal of services in another branch. So we know that this one is functional

* Updated dependencies

* Fixed test for modelhelper

* Fix testing for commentlist

* Fix travis :')

* Just renamed router and removed network

* Applying same SEO fix

* Update form_validator.go

* Added back regexp package
2017-06-28 21:42:38 +10:00