* Different color for cookie warning on sukebei
* Copy paste improvement from another PR since it's going to take time until it's complete
* ditto
* ditto
* ditto
* Update main.css
* JS fallback for /settings page on mirrors
* Update main.js
* Update settings.jet.html
* bottom margin for comment avatar
* Resetting API key now redirects you back to edit page
* move important faq things up in the faq
* Add div as high as header instead of top margin for #content
* Fix modtools showing behind ad
* No margin-top for body
* add functions that will be used in the future to file.go
* Update create.go
* fix css rule that didn't apply
* Fix some JS of upload form that kept shitting out errors since i updated the upload form
* Update upload.jet.html
* fix duplicate id on a form
* Fix very very slightly misaligned input
* fix html error on filelist
* Add FullDate variable to torrents
* Create Go function that returns an user-friendly date when fed a go date
* akuma must hate me for butchering the template_functions_test file
* Make use of said function in view.jet.html
* Forgot to vars.set the function
* Remove useless title
* Make use of function in listing
* modify JS to fetch full date from title instead of innerText
* Fix title date & two functions looping on non-existing objects
* Show full dates in an AM/PM format like on live
* Torrent dates on UTC+0 by default
* Fix cookie warning constantly showing on mirrors, fix JS cookies on mirrors
* space mirrors links on faq
* Update base.jet.html
* Update base.jet.html
* Fix JS theme toggler
* fix check
* Fix user search USERID parameter not working
* User search controller now calls UserSearchHandler
* rollback this
* Update search.go
* Lower amount of torrents shown in user profile
* Additional routes for user search
* Handler for user not found page
* User not found error page, with input to search username
* Move theme css in their own folder
* Delete g.css
* Delete classic.css
* Delete classic_colors.css
* Delete tomorrow.css
* Delete bg-body.png
* Delete bg-header-tile.png
* Delete s_bg-header-tile.png
* Change path used by stylesheet in html head
* Change theme path used by JS theme changers
* Update user_not_found.jet.html
* Update CHANGELOG.md
* Update en-us.all.json
* fix ad scrolling
* remove useless stuff
* fix travis & json file
* fix travis again
* remove duplicate
* Update CHANGELOG.md
* Writing an username instead of an userid in userprofile URL will no longer return the Anonymous profile
* redirect to username search instead of rendering a template without checking if username exists
* 2px
* remove useless css rule
* Forgot path=/; in resetCookie()
* forgot a max-width
* Update base.jet.html
* resetCookies() now also triggered by mismatching website version
* create JS domain variable
* use domain JS variable when creating cookies
* Create getDomainName() function in Go
* Update template_functions_test.go
* Update template_functions_test.go
* recreate cookie when resetCookies() is called
* Update main.css
* Update classic.css
* show "unknown" instead of "0 0 0" if stats are unknown
* don't show top ad if there's an announcement
* remove BBCode support that broke description's line breaks
* remove useless identifier
* hide error instead of fixing it
* Update markdown_test.go
* Update markdown_test.go
* css for tags in classic
* remove wrong explanation for alternating color
* fix RSS URL in header
* remove eu cookie <div> from base
* fix cookie warning never showing up
* Update main.js
* nyaa.se-like styling for upload form on classic.css
* Smaller markdown toolbar on classic upload form
* Fix indent, non-round borders for markdown & language list on classic
* Update view.jet.html
* add fillZero function
* ditto but in test
* Update view.jet.html
* add RJ prefix to dlsite link
* Update template_functions_test.go
* Update listing.jet.html
* prevent responsiveness of upload form in classic.css
* remove now useless css rule
* fix tag input padding on classic
* Update template_functions_test.go
* rollback workaround
* rollback workaround
* rollback workaround
* remove now unused function
* ditto
* Update main.css
* 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
* Remove useless / that created html error
* Slightly bigger font for torrent name on view.html, padding fixes
* Set kilo.js to look for span class name instead of name to remove HTML error
* Change span name into class to remove html errors
* remove name attribute
* remove link to user profile is Anon or invalid userid
* fix duplicate class attribute
* remove useless center, remove useless attribute, remove useless yield errors & bad name attribute
* turn name attribute into ID
* JS changes to go along
* fix travis
* Delete OldNav.jet.html
* Create oldNav.jet.html
* turn <li> into <span>
* Update classic.css
* Update main.css
* Update g.css
* Update tomorrow.css
* Update tomorrow.css
* Update classic_colors.css
* 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
* 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
* 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
* 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)
* 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