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

575 commits

Auteur SHA1 Message Date
MMP0 2cd80735f2 Update ja-jp.all.json (#1588) 2017-09-18 05:56:46 +02:00
kilo 216d241143 alt attribute for ads images, fix missing tags on upload, fix wrong name for translation string (#1577)
* alt attribute for ads images

* fix <tr> too much

* fix missing <tr> that created HTML error

* fix wrong translation string name

* ditto

* fix accepted tags not having background on classic

* Put tag table inside upload table

* Update classic.css

* Remove prefix of dlsite tag on view

* Update main.css

* 10px bigger website

* fix wrong css selector

* fix markdown scroll visually broken in classic.css

* Add magnet link on torrent file not found page

* don't show magnet <a> if empty

* Fetch magnet link in download.go and pass it on to torrent_file_missing

* add magnet in template_test
2017-09-18 10:15:39 +10:00
Myrmece 1f07736742 Updated translation. (#1580) 2017-09-18 01:03:03 +02:00
kilo cedbec3246 New design for upload form (#1574)
* CSS for new upload form

* add torrent_name in translation

* Update CHANGELOG.md

* New upload form HTML, don't load kilo.js

* Update upload.jet.html

* Update main.css

* change placeholder of torrent name input

* Update upload.jet.html

* remove useless function call from upload

* responsive upload form

* Fix description being constantly bold in upload

* fix vertical align of labels in upload

* upload tags inputs in table too

* tag table styling & remove old upload tag styling

* Update main.css

* Update main.css

* Update main.css

* Update upload.jet.html

* fix flag misalignement in upload form

* Remove rules <div> from upload, provide temporary link to rules in faq (maybe will turn into a modal in the future?), remove useless input

* bigger upload button & no margin for upload rules text

* Update en-us.all.json

* Update CHANGELOG.md

* add ID to rules div

* Update upload.jet.html
2017-09-17 20:30:58 +02:00
Myrmece 5f485a2d75 Updated translation. (#1567) 2017-09-15 00:45:07 +02:00
Myrmece efc37cf981 Updated translation. (#1559) 2017-09-12 23:54:16 +02:00
kilo 65772d8654 rollback the rollback (#1554)
* rollback the rollback

* fix classic.css padding

* remove </img> tag

* Update torrents.jet.html

* Fix html tag

* fix footer & ad showing over the TOS

* move setting & add it's explanation

* Update en-us.all.json

* include nav in listing directly instead of refine

* Update search.jet.html

* remove now useless css rules

* Update main.css

* Update base.jet.html

* exclude old navigation cookie from deletion

* add torrent uploaded total size to user profile
2017-09-12 15:03:26 +02:00
Myrmece 9f36485b1e Updated translation. (#1557) 2017-09-12 14:27:54 +02:00
MMP0 a8863a3821 Update ja-jp.all.json (#1556) 2017-09-12 14:10:07 +02:00
Myrmece 0d1ff6273a Updated translation. (#1555)
* Updated translation.

* gonna change that right now actually
2017-09-12 01:22:53 +02:00
Miiiiaaooooo 5ce54160d1 Terms and Conditions (#1553)
* Terms and Conditions

* fix miao's mistakes

* Update CHANGELOG.md
2017-09-12 00:33:56 +02:00
kilo 870b72f1e9 "No comments" message, avatar in comments, classic theme improvements, some other changes, Old Navigation (#1545)
* Update view.jet.html

* Update en-us.all.json

* Update view.jet.html

* Update CHANGELOG.md

* fix travis

* Update classic.css

* Update view.jet.html

* Update main.css

* Update classic.css

* Update classic.css

* Update classic.css

* add link to user page & avatar in comment

* stylisation for avatar in main.css

* Update classic.css

* Fix wrongly placed ::before

* Add rule list to terms of service

* import rules on register

* fix refine-container-2's inputs

* Update base.jet.html

* Update en-us.all.json

* Update CHANGELOG.md

* GenNav changes to constantly put HTML for nav arrows regardless of page

* css changes for website nav etc etc

* add OldNav global variable

* Add OldNav to test.go

* Update publicSettings.go

* change OldNav's value type

* Old navigation in settings

* add OldNav in user variables

* add oldNav input handler in settings.go

* Change OldNav's default value into false

* Create OldNav.jet.html

* Update search.jet.html

* remove character that had nothing to do here

* fix wrong variable name

* fix worng variable name and travis

* Update classic.css

* Add sort order & type to old nav

* add toString() function in test

* add toString() function

* translation string for oldnav setting

* Use translation string in settings.jet.html

* fix few html errors

* ditto

* travis fix test

* remove useless charset

* remove useless things

* add spaces before attributes

* attempt at fixing travis 2

* fix wrong variable name

* Update classic.css

* fix travis plsss
2017-09-11 19:45:39 +02:00
MMP0 ed35976564 Update ja-jp.all.json (#1547) 2017-09-11 13:22:49 +02:00
Myrmece 782fcfdd90 Updated translation. (#1546) 2017-09-11 00:43:55 +02:00
MMP0 b44b31f5ca Update ja-jp.all.json (#1544) 2017-09-10 18:57:05 +02:00
kilo 83bd0165d1 Small css fix,, classic improvements & translation change (#1543)
* remove useless spacing

* spacing through CSS instead of HTML

* remove icon spacing on classic

* Update en-us.all.json

* Update classic.css

* Update classic.css
2017-09-10 22:53:34 +10:00
Myrmece 5b1c6aed4e Updated translation. (#1541) 2017-09-09 11:53:01 +02:00
kilo d1d4bf8e28 Remove hide ads options (#1536)
* Update base.jet.html

* Update settings.jet.html

* Update template.go

* Update publicSettings.go

* Update user.go

* Update settings.go

* Update main.js

* Update base.jet.html

* Update template_test.go

* Update en-us.all.json
2017-09-08 20:46:45 +02:00
kilo c485801d79 Turn comment count into comment icon, add link to comments on comment icon (#1534) 2017-09-08 20:29:32 +02:00
Lamppostmanufacturer 33cd7e3a2f Clarification (#1538) 2017-09-08 16:14:46 +02:00
Lamppostmanufacturer 8cf3c1a62d Update CHANGELOG.md (#1537) 2017-09-08 15:43:22 +02:00
hksy46 ee61a9a54c Update ru-ru.all.json (#1532)
Translation update and fixes yet again
2017-09-08 12:52:11 +02:00
MMP0 c8498175fa Update ja-jp.all.json (#1531) 2017-09-08 09:30:11 +02:00
Myrmece f22d463a71 Updated translation. (#1526) 2017-09-07 09:05:24 +02:00
hksy46 c2a785760c Update ru-ru.all.json (#1525)
Translation update and fixes
2017-09-06 22:34:28 +02:00
MMP0 4f8eabb5fb Update ja-jp.all.json (#1520) 2017-09-06 11:06:19 +02:00
kilo 4cb5c9cf23 Styling fixes & improvements for cookie warning, addition of cookie warning text & close button (#1519)
* Styling fixes for new nav, improvements for cookie warning, styling for close button on cookie warning

* Fix wrong css rule name on tomorrow

* add cookie warning text

* Update CHANGELOG.md

* tomorrow colors for cookie warning

* Color improvements for cookie-warning & close button styling

* Addition of close button for cookie warning

* JS to hide cookie warning when clicking the cross

* Add warning that message will be hidden at next page load

* middle alignement for japanese text in refine

* Remove NyaaPantsu link from admin nav

* Allow HTML in cookie warning translation string

* Remove [0] that was not needed and broke the script from JS

* Bold font & slightly taller cookie warning

* Add message when ad is blocked

* styling for blocked message

* fix wrong id

* Prevent JS error

* remove ad-blocked message

* remove ad-blocked styling

* Update main.css

* Update base.jet.html
2017-09-06 10:51:25 +02:00
MMP0 619536f064 Update ja-jp.all.json (#1518) 2017-09-06 08:52:46 +02:00
kilo a78f4117c3 "Torrent file not found" page (#1503)
* Add torrent file missing page instead of old 404

* Make download.go redirect to file missing page instead of 404

* Add files via upload

* Update translation changelog

* add translation string for "torrent file not found" page

* Forgot to create variables

* import templates
2017-09-06 08:20:24 +02:00
Miiiiaaooooo 5437b700ff Update tracker and Ad's explanation. (#1508)
* Update tracker and Ad's  explanation.

* Fix JSON

* Update en-us.all.json

* pff
2017-09-06 13:25:37 +10:00
Lamppostmanufacturer 13cc4eaa68 Update doko.moe to uw0.xyz
* Update ca-es.json

* Update de-de.all.json

* Update es-es.all.json

* Update fr-fr.all.json

* Update hu-hu.all.json

* Update in-id.all.json

* Update is-is.all.json

* Update it-it.all.json

* Update ja-jp.all.json

* Update ko-kr.all.json

* Update nb-no.all.json

* Update nl-nl.all.json

* Update pt-br.all.json

* Update pt-pt.all.json

* Update ro-ro.all.json

* Update ru-ru.all.json

* Update sv-se.all.json

* Update th-th.all.json

* Update zh-cn.all.json

* Update zh-tw.all.json
2017-09-05 17:37:52 -05:00
Myrmece 0ebbf433f5 Updated translation. (#1502) 2017-09-05 10:30:05 +10:00
kilo fe119ed384 Add translation strings in changelog (#1501) 2017-09-05 09:22:58 +10:00
MMP0 47ac0217c3 Update Japanese translation (#1498)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-09-05 08:48:09 +10:00
Lamppostmanufacturer 2450a70cce Update CHANGELOG.md (#1497) 2017-09-04 22:28:15 +10:00
Myrmece 2187c2e06a Updated translation. (#1496) 2017-09-04 22:15:00 +10:00
Miiiiaaooooo 25e6fe2942 Ads enabled settings, ads in FAQ, ads actually in code (#1493)
* Update base.jet.html

* Remove inline styling, put whole thing into a div instead of center to be able to move it at other places at will

* Move inline styling in there & some adjustements that will need further tweaking

* Add GetAdsEnabledFromRequest() function

* Ads Enabled global var

* Need to add global var in test file for it to work properly

* AdEnabled handler in settings

* Create AdsEnabled var for users

* Check if user wants to hide ads

* change var name

* change var name

* change var name

* change var name

* var name changes

* Add ad enabled settings & put each indiviidual setting into a span

* add |raw

* add translation strings

* add ads to faq

* Remove <br> and add faq link

* Fix travis

* Fix wrong condition check

* exclude aldColors & hideAds cookie from deletion

* remove useless things

* Fix template_test.go

* No idea why that part got removed

* Forgot }}

* lower padding for ad container
2017-09-04 21:48:47 +10:00
kilo 0c241dfda5 Add translation string for alternating color in setting & specify the font will not be bold anymore (#1490)
* Add translation string

* Add translation string & be more clear about what does it do
2017-09-04 08:26:09 +10:00
kilo a01cb17e4c Add new refine translation strings (#1469)
* Add missing translation strings in refine

* Add new refine translation strings
2017-09-03 13:21:37 +10:00
MMP0 c721ab263e Update Japanese translation (#1445)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-08-30 09:57:11 +10:00
Myrmece da005b6635 Updated translation. (#1431) 2017-08-29 00:37:44 +10:00
Lamppostmanufacturer 96fbacfcc0 Updating Translations (#1430)
* Update de-de.all.json

* Update en-us.all.json

* Update de-de.all.json

* Update de-de.all.json
2017-08-29 00:23:18 +10:00
kilo 783d4e4f8b Update en-us.all.json (#1425) 2017-08-28 13:47:38 +10:00
MMP0 171683d314 Update ja-jp.all.json (#1414) 2017-08-28 08:58:01 +10:00
Myrmece 3cbfffc19c Updated translation. (#1413) 2017-08-28 08:44:04 +10:00
yiiT 81e9a8a1a1 Add RSS Feed Information to FAQ (#1356)
* Add RSS Feed Information to FAQ

* Update faq.jet.html

* Add TL strings
2017-08-27 11:42:27 +10:00
Myrmece 323d090203 Updated translation. (#1401) 2017-08-26 23:42:37 +10:00
akuma06 2b4731d16c Dbidlinks (#1396)
* Add Anidb, Vndb, Vgmdb links

* Anidb, Vndb, Vgmdb and Dlsite links into tag design
* Add external links to Anidb, Vndb, Vgmdb and dlsite

* Add filter links to tags

* Filter string translation already exists

* Fix display tags

* Update translation changelog

* Do not display tag type when default
2017-08-26 11:42:12 +10:00
akuma06 eea581bae9 Removing SearchType and SearchOrder + Move to new date search behaviour (#1395)
* Update search.go

* Update helpers.go

* Update search.jet.html

* Update search.jet.html

* Removing SortOrder and SortType from template's Search struct. Since we already have them in main torrentParam search struct and we don't need to overwrite them.

* Replaced old date search filter behaviour
2017-08-26 11:24:25 +10:00
Myrmece 2a6d7dcda8 Updated translation. (#1392) 2017-08-23 09:08:44 +10:00
akuma06 c6168be8b1 Tag Search + Tests + Search slight refactor [DONE] (#1342)
* Tag Search + Tests + Search slight refactor

First commit improving search. Different struct have their own file with their tests. This way of separating struct by files is inspired by the go packages I've seen so far.

Added new behaviour as discussed in #1334

* fix fallback to ES

* Added some comments to explain PG fallback + log err moved

* Refactored search

Nearly fully covered
WhereParams struct has disappeared for Query struct instead
In DB model, we use an interface implementing Query struct methods

* 1rst Refactor of Tags (WTF already?!)

Prepare Tags for the refactored system. Now there will be descriptive tags for a particular release (ecchi, BDSM, ....) and typed tags.
Typed tags are tags relevant to all torrents and can be limited to some input value. For example, video quality is a typed tag limited to some values (hd, full hd, sd, ...). In the same way, anidbid is also a typed tag but doesn't have default values.

Furthermore, the location storage of tags have changed, now accepted descriptive tags are stored in the torrents table in the column "tags" and they are separated by commas.
In the opposite, accepted typed tags can have have their own column in the torrents table. For example, anidbid, vndbid will populate the column DbID when accepted. On the other hand, videoquality will populate the same way as descriptive tags.

This behaviour depends on the callbackOnType function in tag/helpers.go

* fix for modtools :')

* Added anidb, vndb, dlsite & vmdb id fields in torrent model.
Tags don't have an accepted field anymore.
Accepted Tags are in torrent.AcceptedTags and non-accepted ones in torrrent.Tags.

New Helper + New Changelog for translation string.

* New upload/edit form for torrent tags.
Now the inputs are dynamically generated by the helper tag_form.
No more modal window in those form, only inputs.
Support of tags in API
New translation string for the  link to the modal on torrent view.
More comments in the functions for tags

* Improving how config for tags work. Adding a test on them with understandable messages.
Config for tags have now a Field attribute which is linked to the Torrent model. For example anidbid tag type has now a AnidbID field in config which is the name of the field in torrent model (AnidbID). Every new tag type need to have a field attribute with its counterpart in torrent Model.
Fixing some errors

* Fix compile error + Tests Errors

* Improve performance by caching the list of tags with an index
Adding/removing tags works/tested
New translation strings

TODO: test/fix adding tag on upload/edit

* Mini fix to display video quality
+ tags works/tested on modo edit

* Fix editing tags on modpanel

* Edit tags works

* Add translation string

* Add search backend for tags.
?tags=xxx,eee,ddd
?anidb=21
?vndb=23
?vgmdb=24
?vq=full_hd

* Fix Ajax tag Removal&Add

* Added form for descriptive tags

* Forgot to add the link between database and form for descriptive tags.

* Adding the increase/decrease pantsu for descriptive tags

* Fix #1370

* When you actually forgot to commit files after having forgotten commits
2017-08-22 11:48:10 +10:00
hksy46 58217a5182 Update ru-ru.all.json (#1380)
(almost) full and (almost) correct russian translation
2017-08-20 08:34:06 +10:00
MMP0 46f29f93de Update Japanese translation (#1379)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-08-19 23:46:39 +10:00
Myrmece 21058924a3 Updated translation. (#1372) 2017-08-15 16:44:04 +10:00
kilo 199d2b3b85 Add "sort by" inputs in refine on low res (#1369)
* Add HTML for sorting by name etc

* Add CSS to hide inputs for sorting in refine

* Set value of SortOrder on true if on true (wew)

* Add SortOrder & SortType variables

* change translation strings

* add translation strings

* forgot a missing { and change ascending value
2017-08-14 15:56:45 +10:00
Lamppostmanufacturer e0068456e7 Add Indonesian translation, credits go to @39-chan (#1350)
Thanks @39-chan for helping us out
2017-08-06 00:04:16 -05:00
Lamppostmanufacturer 846e9d2b8a Translation Overhaul #2 (#1345)
* Update it-it.all.json

* Update nl-nl.all.json

* Update pt-br.all.json

* Update pt-pt.all.json

* Update ro-ro.all.json

* Update th-th.all.json
2017-08-04 16:05:59 +02:00
MMP0 00e092372f Update ja-jp.all.json (#1348) 2017-08-04 15:40:30 +02:00
Myrmece e1cf80169c Updated translation. (#1347) 2017-08-04 15:18:51 +02:00
MMP0 81a8f1c65c Update en-us.all.json (#1343) 2017-08-04 14:50:30 +02:00
Lamppostmanufacturer 0d617287ce Update zh-tw.all.json 2017-08-03 14:51:05 +02:00
Lamppostmanufacturer 83644f92ff Update zh-cn.all.json 2017-08-03 14:50:50 +02:00
Lamppostmanufacturer c448314a84 Update sv-se.all.json 2017-08-03 14:50:34 +02:00
Lamppostmanufacturer 90a709e0cf Update ru-ru.all.json 2017-08-03 14:49:54 +02:00
Lamppostmanufacturer 60e0854192 Update nb-no.all.json 2017-08-03 14:49:28 +02:00
Lamppostmanufacturer 1e0aa8fc87 Update ko-kr.all.json 2017-08-03 14:48:46 +02:00
Lamppostmanufacturer 4a6e7f8cb4 Update is-is.all.json 2017-08-03 14:48:15 +02:00
Lamppostmanufacturer 14ac2de5b5 Update hu-hu.all.json 2017-08-03 14:47:45 +02:00
Lamppostmanufacturer 7542dda4dd Update es-es.all.json 2017-08-03 14:46:49 +02:00
Lamppostmanufacturer 6202228403 Update de-de.all.json 2017-08-03 14:39:50 +02:00
ewhal 1fa234e164 Merge pull request #1330 from MMP0/patch-15
Update Japanese translation
2017-08-03 22:21:18 +10:00
MMP0 5e2103c15c Update ja-jp.all.json 2017-08-03 21:07:11 +09:00
Myrmece 57708f7185 Updated translation. 2017-08-03 13:49:18 +02:00
ewhal 445374242f Merge pull request #1327 from NyaaPantsu/pr/1242
Announcement [done]
2017-08-03 21:23:05 +10:00
akuma06 1dbfe1b3b4 Added moderation part + tests 2017-08-03 03:38:07 +02:00
Eduard Ereza Martínez 4550329234 Update Catalan translation (#1326) 2017-08-03 11:15:30 +10:00
akuma06 818a100bfc Merge branch 'dev' into patch-7 2017-08-02 22:15:06 +02:00
Myrmece 518f59d089 Updated translation. (#1322) 2017-08-02 19:35:16 +02:00
MMP0 5632f8eab4 Update Japanese translation (#1318)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-08-02 19:34:32 +02:00
akuma06 78f8b90129 Added comments on mod route +delete all tags link (#1316) 2017-08-02 15:06:34 +02:00
Lamppostmanufacturer 3af141f852 Update de-de.all.json (#1310)
* Update de-de.all.json

* Update en-us.all.json
2017-08-02 22:01:24 +10:00
akuma06 a38f79eaf5 Merge branch 'dev' into tags 2017-07-31 17:15:32 +02:00
MMP0 d77b69e613 Update Japanese translation (#1300)
* Update ja-jp.all.json

* Fix syntax error(?)

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-07-30 12:52:26 +10:00
Myrmece 526e148dd0 Updated translation. (#1297) 2017-07-30 12:51:49 +10:00
akuma06 fe2c128e44 Added form to add tags on view 2017-07-30 03:29:09 +02:00
akuma06 51d7fe2ef7 Added html views + fix template test + View & JSON Controller 2017-07-29 14:43:12 +02:00
MMP0 34d4400c09 Update ja-jp.all.json (#1291) 2017-07-28 13:47:08 +10:00
Myrmece 5823f3d44b Updated translation. (#1288) 2017-07-28 13:46:54 +10:00
akuma06 03ea72595d OAuth API [done] (#1275)
* Initial Commit for OAuth API

This builds and run and return the right error.
Need to test it and then adding all users as possible client

* Added mising dependency

* just compile already...

* Fixing template test

* Imrpovements

Moved db stuff in models
Added some tests
Added form in modpanel to add/update a client
Added controllers for add/update of client

* Added Forms + speed improvements

Controller oauth client listing + html
Controller oauth client delete + messages
Messages on comment delete
New ES config that disable ES if set to false. Improve load speed on local development
Fix a load config bug
Fix index admin & translation string sign_out broken by @ewhal

* Sanitize empty strig in form array + css

Multiple empty array of strings are sanitized for the oauth client create form
Added some css for the form display

* Upload and Create form works

* Fix splitting response types

* Removing required on secret when updating

* fix travis error

* Fix travis template test

* Update dependency

* Moved to jinzhu instead of azhao

* randomizen secret on creation

* Final touch on oath api

improved display name
fix grant form csrf
fix login csrf on oauth

* Fix gorm test

* fix template test

* Fixing deleted dependency issue

* Make travis faster

* Fix typo

* Fix csrf for api calls

* This shouldn't be exempt

* Removing hard coded hash

@ewhal Don't forget to replace the hash in tokens.go with another one

* Added an example on how to use OAuth middleware

* Renamed fosite utils to oauth2 utils
2017-07-28 13:46:40 +10:00
kilo d5888079f8 Date difference when hovering a torrent date (#1287)
* Update en-us.all.json

* Update main.js

* Update base.jet.html

* Update main.js

* Update main.js
2017-07-26 18:59:48 +10:00
PantsuDev 18813627be Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev 2017-07-24 10:32:50 +10:00
ewhal cfa343f69d Merge pull request #1272 from Myrmece/patch-4
Updated translation.
2017-07-23 20:51:40 +10:00
Myrmece 11fe71cd18 Updated translation. 2017-07-23 11:01:08 +02:00
MMP0 6621c0a7fd Update ja-jp.all.json 2017-07-23 16:57:56 +09:00
PantsuDev d9142a73c3 Fix most go lint warnings 2017-07-23 15:50:18 +10:00
MMP0 50b6b065c1 Update Japanese translation (#1265)
* Update ja-jp.all.json

* Update ja-jp.all.json

* Update ja-jp.all.json
2017-07-22 21:49:29 +02:00
kilo b06db8de90 Update en-us.all.json 2017-07-22 18:10:55 +02:00
kilo 3807c6937d No results template & image (#1263)
* Create no_results.jet.html

* no_results

* Delete Non Non Biyori Repeat - 10 [BDRip 1920x1080 x264 FLAC].mkv_snapshot_12.37_[2017.07.22_14.16.50].jpg

* Add files via upload

* Delete no_results.png.jpg

* Add files via upload

* Update en-us.all.json

* Update no_results.jet.html

* Update search.go
2017-07-22 16:05:11 +02:00
akuma06 806888cb1e Update nl-nl.all.json (#1250) 2017-07-20 20:56:39 +02:00
Myrmece c437cab287 Updated translation. (#1238) 2017-07-19 17:54:07 +10:00