* 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
* styling for new nav shit
* new nav html
* Update index_admin.jet.html
* remove top margin
* Add moderation link
* color changes
* tomorrow colors
* remove useless class
* remove further useless styling
* remove useless class
* Remove useless class again
* 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
* Fix search Status
Should fix#1428 ?s=2 and others. Reason: the sql query wasn't correct when filtering (status >= ? = ?)
* Fix adding tag form (nojs) + miscalleneous
* Fix#1423 by checking http method before finding the tags.
* Form is now like other tags form
* New Middleware LoggedInMiddleware to protect routes to logged user only
* Display of Non-Accepted tags in torrent view improved by translating tagtype values
* Update tag.jet.html
* Non-bold torrent name when using alternating background colors
* Add alternating colors for g.css
* Add alternating colors for classic.css
* Add alternating colors for tomorreuw
* Update classic.css
* Add alternating colors to settings page
* Add alt-colors class to tbody if enabled
* Add GetAltColorsFromRequest() function to get AltColors cookie value
* Create AltColors variable for usage in listing
* Make settings handle altColors input
* Add AltColors in user struct
* Returned the wrong variable here
* Turn function return value into bool
* Condition checks variable like a bool
* ditto
* better color for g.css
* even better color
* better
* Last change for g.css
* Improvement for tomorrow
* Update classic.css
* add alt-colors class to upload preview
* Add alt-colors to user profile
* more vivid color for g
* Fix typo
* Remove browser outline for refine when clicked on
* remove browser outline
* Fix rules that didn't apply and category icon being way too small on user profile thanks to usage of percentage
* Remove show-xs class for search inputs
* Turn refine button back into position: absolute to pin at very bottom of refine
* Alternating colors for g's trusted, remake & aplus
* Update tomorrow.css
* attempt at fixing travis
* test (will have to rollback that change)
* rollback
* will have to rollback
* will have to rollback
* will have to rollback
* will have to rollback
* add AltColors variable to template test
* rollback
* rollback
* rollback
* rollback
* 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 username search
Quite simple, you need to provide ?user=xxxx
* Add userID search + Changed name of input field
Now ?user=xxx can also search userID.
For that you need to prefix it with "#".
Example:
* ?user=akuma06 would search torrents based on username akuma06
* ?user=#123 would search torrents based on userID 123 (be aware that you have to encode the "#" in url format %23)
* Update search.jet.html (#1436)
* Update main.css (#1435)
* Add title for tag inputs
* Turn the cursor into a pointer when hovering search icon
* Remove space separating search input & refine button
* Remove now useless css rules
* Proper padding for header searchbox
Some text was hidden by the search icon because of too low padding
* Fix language list position on IE
* Fix placeholder display for firefox
2px smaller than regular text
* HTML changes to have tags in one div
* Add form-input class to tags inputs in upload
to have them look like regular inputs
* CSS changes to make tags inline
* Add changes to torrent edit
* Add changes to admin torrent edit
* attempt at fixing travis
* rollback admin edit in an attempt to fix travis
* Fix tags being visually broken in one very specific resolution
* fuck this shit
* Avoid language list being higher than 59px in refine
Otherwise that would break the visual for the future anidb & tag inputs on some very specific res
* CSS to make the new input look pretty & responsive
* HTML of the new inputs
* -1px
* add refine-date class
* set refine-date width in css
* !important width for refine date as to avoid responsive css to change it
* remove size for date inputs
* 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
* 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
* 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
* 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
* 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