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

91 commits

Auteur SHA1 Message Date
kilo
70a865e49a Show message pinned at the bottom of the window warning of cookie usage to comply with EU law (#1506)
* Add global variable to template_test

* Add global variable related to EU cookie law

* Add GetEUCookieFromRequest function that checks if the EU cookie exists (to comply with EU law)

* Add div at bottom of page if no EU cookie set

* add styling in css

* Prevent message from showing up any more than once

* prevent cookie from being erased by resetCookies() function

* Fix wrong function return type

* shorter condition

* Import timeHelper

* Update template_test.go

* remove variable name

* Update template_test.go
2017-09-06 07:55:00 +02: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
4b80e16121 Fix wrong url for toggleTheme query (#1474) 2017-09-03 16:12:38 +10:00
kilo
508c6fd578 Fix Query.Get error (#1447) 2017-08-30 11:31:23 +10:00
kilo
469375435c Toggle theme JS now also do a query to save new theme settings for logged-in users (#1443)
* Set user theme through query in toggle

* Create UserID JS variable

* remove useless shit
2017-08-29 21:15:37 +10:00
akuma06
b3e3ec6083 Fix Navigation Admin Panel (#1398)
* Fix Navigation Admin Panel

* Fix broken html on reassign page

* fix user link in comment list

* Fix Unknown bytes

* Fix switch file upload/magnet

* fix modtools background white + width

* fix /mod/ redirection url

* Fix last torrents on modpanel

* empty torrent file input

* Add hidden class to h3
2017-08-26 12:15:28 +10:00
kilo
af36bb0ea7 Fix wrong behavior when opening refine through JS & replace farFutureString() function by variable (#1387)
* Check if searchbox & category is empty instead of not equal

* Replace farFutureString() by variable

The function was getting executed multiple times which triggered the creation of a new variable and the call of multiple functions multiple times throughout the code, instead it's just executed at the very start of the code

* Fix date showing negative difference (-20 days old)
2017-08-22 11:34:20 +10:00
kilo
bda181ee54 Add toggle dark theme for non-JS users (#1381)
* Add themeToggle handler to router.go

* Create themeToggle/router.go & ThemeToggle.go

* Add link to /dark in footer, remove display = none on toggle dark mode

* Remove JS that ordered toggle dark mode link to show as it is now constantly visible

* Rollback to fix errors

* Add some comments

* Create redirectUrl variable & set it's content then use it to redirect user

* Remove useless log

* Remove usage of fmt

* Add redirect get parameter to toggle link

* Add another url for toggleTheme

* wooo

* Update base.jet.html

* Update base.jet.html
2017-08-21 10:48:17 +10:00
kilo
4f00f74859 change position of return (#1374) 2017-08-17 11:35:18 +10:00
kilo
645a711222 Update main.js (#1366) 2017-08-12 16:52:54 +10:00
kilo
ff2efb347d Fix toggle theme that created a cookie on the wrong domain & header at lower res (#1361)
* add domain to cookie

* fix header icons at lower res
2017-08-09 21:24:42 +10:00
kilo
ab9e3906e2 Fix main.js (#1352)
* Update main.js

* Update main.js

* Update main.js

* Update main.js
2017-08-07 14:51:25 +10:00
kilo
75a98cf6e7 Show hours & minutes (instead of days & hours) when hovering last scraped date (#1335)
* Update main.js

* Update view.jet.html

* Update main.js
2017-08-03 22:09:06 +02:00
kilo
7207573cb1 Update main.js 2017-08-03 14:41:43 +02:00
kilo
4d1524e6a9 Remove href of dark mode toggle (#1317)
* cursor: pointer

* remove href

* add domain

* Update main.css

* Update main.css

* Update main.css

* Update search.jet.html

* Update tomorrow.css

* Update main.js

* Update base.jet.html

* less margin-bottom on torrent name for mobiles
2017-08-02 19:34:53 +02:00
kilo
78623ce71a Fix spacing of a link in footer, comments added, enhancements of toggle dark theme JS (#1307)
* Update main.js

* Update main.js

* add theme2

* Update main.js
2017-08-02 22:01:02 +10:00
kilo
5e95b57958 Make file list indent work across all browsers & some other css stuff (#1303)
* Update treeview.jet.html

* Update treeview.jet.html

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update torrents.jet.html

* Update main.css

* Update main.css

* Update main.css

* Update search.jet.html

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update main.css

* Update tomorrow.css

* Update main.css

* Update main.css

* Update main.js

* Update main.js

* Update main.js

* Update main.css

* Update main.css

* Update main.js

* Update base.jet.html

* Update main.js
2017-08-01 00:57:31 +02:00
kilo
207d72910c different behavior for refine JS (#1299) 2017-07-30 12:52:16 +10:00
kilo
5f91ecf0b4 Update main.js (#1296) 2017-07-28 14:30:07 +02:00
kilo
4fda9d0ba5 forgot to copy paste some code (#1290)
* Update main.js

* Update main.js

* Update main.js

* Update main.js

* Update main.js

* remove dumb shit
2017-07-28 13:47:26 +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
akuma06
09d7adb0e3 excluding csrf_token from erase cookie 2017-07-26 09:20:11 +02:00
PantsuDev
cdabd79c03 Fix more style issues 2017-07-24 15:03:43 +10:00
PantsuDev
18813627be Merge branch 'dev' of https://github.com/NyaaPantsu/nyaa into dev 2017-07-24 10:32:50 +10:00
kilo
95d1e9e192 Update main.js (#1274)
* Update main.js

* Update main.js

* Update main.js
2017-07-24 10:20:24 +10:00
kilo
f5bd1103c8 More readable code (#1273)
* Update main.js

* fix some variable names here too

* change variable name

* Update main.css

* Update main.js
2017-07-23 19:08:42 +02:00
PantsuDev
a931b47bff beautify assets 2017-07-23 15:50:18 +10:00
kilo
e05d2b78cb JS to add ".new" class to commit's <a></a> 2017-07-23 04:14:21 +02:00
kilo
fb06f72139 Update main.js 2017-07-23 02:40:39 +02:00
kilo
02df6b7310 Update main.js 2017-07-23 02:28:09 +02:00
kilo
bf695d9b89 Update main.js 2017-07-23 02:22:33 +02:00
kilo
85f9f8b2e4 Update main.js 2017-07-23 01:52:36 +02:00
kilo
00b4439bff Update main.js 2017-07-23 01:41:42 +02:00
kilo
52579448fd Update main.js 2017-07-23 00:00:44 +02:00
kilo
6e5808b2b8 Update main.js 2017-07-22 23:27:02 +02:00
akuma06
ce90f6fbce Improved a bit the placement of the function. Now FlagCode is in Templates js renderer (same place as the golang counterpart) 2017-07-21 01:47:36 +02:00
akuma06
81113001df Context list on upload preview (#1220)
* Update kilo.js

* torrent item js as a separate file to prevent redudancy

* Adding context list

* Fix indent
2017-07-17 14:20:18 +02:00
kilo
0a6ce25b30 nice commit while im editing files ;-; 2017-07-16 17:36:17 +02:00
kilo
bab885d7a2 add new nyanpassu in js 2017-07-16 17:35:18 +02:00
PantsuDev
913028f529 Comply with JS styling recommendations 2017-07-16 14:43:09 +10:00
kilo
5eb291d50b scroll to top of the page when opening refine 2017-07-15 13:08:23 +02:00
kilo
678bb62bb3 Update main.js 2017-07-14 21:04:33 +10:00
kilo
e92e306bdc Make category in refine update based on category in header 2017-07-14 21:04:33 +10:00
akuma06
f8de340265 Added search refine on every pages + fixed kilo.js 2017-07-10 15:24:52 +02:00
kilo
328edbe9a0 no idea if that works, i think it doesn't 2017-07-10 22:11:35 +10:00
kilo
d1a5a74f54 Update main.js 2017-07-10 22:11:35 +10:00
kilo
06442da77f Fix wrong JS variable name & some css stuff (#1151)
* Update main.js

* remove workaround that doesn't work

* Update torrents.jet.html

* Update search_handler.go

* Update search.jet.html

* Update main.js

* Update main.js

* Update search_handler.go

* Update main.js
2017-07-10 17:33:26 +10:00
kilo
acf0ae0fad Make refine button submit form if refine dropdown doesn't exist (#1149)
* Update site.jet.html

* Update main.js

* remove onload

* Update main.js
2017-07-10 15:36:24 +10:00
kilo
f5a86525d0 Header & refine dropdown changes (#1130)
* add button in header & remove two options from header search

* dont show refine button on small screens

* remove the div in there

* to put it there and add display: none when needed

* add refine class for future js code

* add function in code to toggle refine

* more html changes

* spacing changes

* add limit & show trusted and all that stuff to refine

* add margin

* obligatory css changes

* forgot {{ }} for a variable name

* add function on onclick refine button

* wrong file

* put onclick & translation on button
2017-07-10 13:57:59 +10:00
kipukun ;_
121101fe1c Frontend small (#1040)
* Header isn't as WIDE on resolutions past 1920

* Turn down the fucking volume because it scares the shit out of me everytime

* Make clear the mascot is clickable

* Make torrent buttons not fuckhuge

* Just show N/A on no website

* search.html: Fix minor typo in refine box
2017-06-21 11:28:47 +10:00