* 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
* 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
* Remove useless shit
* Fix refine button on IE
* Fix header being bigger than it should
* Fix various issues with header when logged as admin
* More cleanup & small fixes
* Remove useless inline styling
* Forgot a number
* Update main.css
* Remove useless <link>
* 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
* remove custom_flag.css
* remove ' that had nothing to do here
* replace sukebei variable to boolean
* fix ? operator & variable name
* attempt at fixing visual cues for anonymous torrents
* Update torrents.jet.html
* add missing ,
* useless code if user logged off so moving that
* add it back here and check if logged in
* should work almost properly now
* same here
* flag-other invisible
* Update kilo.js
* Update upload.jet.html
* should work very well now
* same here
* Delete categories.png
* Add files via upload
* Update main.css
* Update kilo.js
* Update upload.jet.html
* Update kilo.js
* Update torrents.jet.html
* proper behavior for trusted people
* different flag form id
* add id
* add language name in an span
* make that span invisible =)
* Update flags.jet.html
* Update upload.jet.html
* Update kilo.js
* whoever read this is a faggot
* Update upload.jet.html
* 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