* 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 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
* Fix rule that didn't apply and change it's value
* Remove css rule from html
* one pixel higher margin
* smaller category in refine, bigger minimu msize for searchbox
* fix for too big searchbox at some very specific resolution
* lower height level for log-in icon
* add "sign in" text when hovering log-in link
* Css changes
* Better outline for refine button in g.css
* remove hide-xs class from category in header
* Forgot a ;
* User menu alignement on low width
* same as above
* Update main.css
* Update main.css
* Update main.css
* Update main.css
* Update main.css
* Padding enhancement for "Sign in" link and avatar
* Update main.css
* Update g.css
* Update classic.css
* Update tomorrow.css
* Update g.css
* Update g.css
* Update tomorrow.css
* some <summary> improvements
* make it wider
* better border color for torrent preview tomorrow
* better border for classic
* fixing that god damn padding once for all
* bigger search icon
* Update tomorrow.css
* 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
* Remove html rules from upload, load rules file and call the rule function
* Update faq.jet.html
* Create rules.jet.html
* forgot to remove old list
* forgot to do that
* remove <br/>
* Update main.css
* Update g.css
* add jav flag keyword
* Update kilo.js
* add h-games keyword
* removal of space
* margin-right addition
* Update flags.jet.html
* margin into padding
* add "highlighted" class for possible future use
* bigger rules-drop, fix wrong display, remove useless line
* add alt for category img & alt with every language for flag
* literally no point of an alt on a div
* flag alt
* 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