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

695 commits

Auteur SHA1 Message Date
kilo
0a765b5589 Things (#1740)
* Add new followers directly to user.Followers

* Update user.go

* Remove useless condition

* Query an update of user followers if at 0 when looking at his profile

* Fix comment not appearing until you refreshed the torrent page

* call ViewHandler so that comments visually update properly

* Remove now useless imports

* Add "uploader" userstatus in comment

* GetLikings() & GetFollowers() now return count too

* Don't update follower count here

* Update follower count directly here

* show liking count

* Update user.go

* Update profile.jet.html

* Update torrentParam.go

* Fix locked torrents that were shown even when they should not

* Update torrentParam_test.go

* remove inline styling

* Update main.css

* Update upload.jet.html

* Update main.css

* Update tomorrow.css

* Update classic.css

* Update classic_colors.css

* Update index_site.jet.html

* Make announcements support markdown

* Add markdown form to announcement creation

* fix "report" text position

* Add exclude search option to exclude words

* Make sure the "NameLike" value is the search query because we edit it during a search

* Show search content in page title for /feed too

* rollback

* Add "Search" variable that shows exactly what is being searched

* Use "Search.Search" variable here instead of NameLike because NameLike is edited

* Update torrentParam_test.go

* Update torrentParam.go

* remove redundant spaces from NameLike

* Update torrentParam.go

* Update torrentParam.go

* Update torrentParam.go

* Update torrentParam.go

* turn date input into type date

* bigger date inputs

* add support for YYYY-MM-DD dates

* rollback this change

* rollback

* Update search.jet.html

* Update helpers.go

* Update template_functions.go

* Update torrentParam.go

* only uploader & staff can comment on locked torrents

* Add "Upload to Nyaa/Sukebei" button for mods

* Update torrentlist.jet.html

* Update view.jet.html

* Update view.jet.html

* fix wrong page title for notifications page
2017-11-20 11:13:00 +10:00
kilo
5dcd30676f
Janitor (#1728)
* Fix "torrent is being generated" message showing up even when the torrent couldn't be generated

* Add janitor user status

* Remove usage of deprecated HasAdmin() function

* Give Janitors access to mod panel

* Stop using deprecated HasAdmin() function

* Stop using deprecated HasAdmin() function

* Update edit.go

* Update profile.go

* Rollback bad changes, remove redundant email check and stop using deprecated function

* Show every userstatus (member, janitor, banned, mod) in comments

* Return empty status if anonymous

* Show no userstatus for anonymous profile

* Show moderation link to janitors too

* Stop using deprecated HasAdmin() function

* Stop using deprecated HasAdmin() function

* Stop using deprecated HasAdmin() function

* Add Janitor to userstatus select in user edit

* "Janitor" translation string

* didnt mean to commit this change

* rollback wrongfully comitted changes

* rollback commit

* Update CHANGELOG.md

* Fix wrong id for translation

* remove deprecated HasAdmin() function again

* change name of variable used in comment loop for clarity purposes

* visual cue for locked torrents in torrent listing for admins

* add visual cues for hidden torrents in admin torrent listing

* Dont show delete buttons for janitors

* janitor cannot delete torrents

* show block/unblock button in torrent list for janitors instead of delete button

* fix function that didnt get executed

* add ban buttons on userlist & visual cue for banned users

* Fix "user successfully deleted" message showing even if user wasnt deleted

* Add "ban" button, no "delete" button for jantiors

* add "unban" and "ban" translation strings

* add "unban" and "ban" translation strings

* different <form> for ban button

* Update index.jet.html

* add userprofile ban route

* add toggleBan() function, janitors dont need captcha either

* fix panic error when deleting an anonymous comment

* add user_banned_by and user_unbanned_by

* add user_banned_by and user_unbanned_by

* Make ToggleBan() return whether or not the user is now banned

* Add handler for /ban route

* change log filter

* hide locked torrents from regular users

* hide locked torrents from regular users

* hide locked torrent from api search for regular users

* change function to CurrentOrJanitor

* change function to currentorjanitor

* change function to currentorjanitor

* add CurrentOrJanitor function

* fix extra (

* fix extra ) and wrong variable name

* Fix wrong value for janitor user status

* Fix user edit that did not work because of "unique constraint user.emails" error

* only immediately visually update user if user has been updated successfully

* use FindAllForAdminsOrderBy in order to preload users

* create FindAllForAdminsOrderBy that preloads users

* Show username instead of ID in Uploader column in admin panel

* Fix userprofile buttons overflowing at some specific resolutions

* Mods can set users as janitors

* Show ban/unban buttons on userprofile for janitors

* Identical styling for usermenu links and buttons

* dont show ban buttons on other staff

* add ban message through get parameter

* make toggleBan() trigger user update

* Add "user_banned" and "user_unbanned"

* add "user_banned" and "user_unbanned"

* Visual cue for banned user

* banned users can still log in

* visual cue for banned user in  badgemenu

* locked status if banned user on upload

* banned users cannot comment

* Put "banned" text between ()

* add GetCategoryName() to template_test

* add GetCategoryName() that returns full category name from full category string

* Show search content in page title if it exists, or search category if it exists, otherwise shows "Home"

* error message when user uploads an torrent & is banned

* add torrent_uploaded_locked

* add torrent_uploaded_locked

* fix delete definitely button that never appeared

* Show delete definitely button on admin panel index

* admins can undelete a torrent by editing it's status

* Trigger ViewHandler() directly instead of redirecting

* Render the template directly instead of triggering torrent view handler

* bigger usermenu buttons once responsive design kicks in

* make btn-* class non-bold

* Responsive notification page

* visual cue for locked torrents in torrent listing

* Update search.go

* Update search.go

* Update api.go

* Update helpers.go

* Update template.go

* Update torrentParam.go

* remove "hidden" class

* Update search.go

* fix an html error

* Add files via upload

* Update admin.jet.html

* Update index.go

* Update index.go

* Update router.go

* Update torrentParam_test.go

* Update torrentParam_test.go

* fix extra "

* fix bad copypaste

* Update CHANGELOG.md

* Update guidelines.jet.html

* Update CHANGELOG.md

* add Guidelines and Moderation Guidelines

* fix missing commas

* Update torrentlist.jet.html

* Update find.go

* Update stats.go

* Update view.jet.html

* Update index.jet.html
2017-11-14 09:39:39 +01:00
MMP0
03d9d4e680 Add Markdown editor to view page (#1736)
* Update view.jet.html

* Styling to make the markdown textarea smaller by default

* Fix markdown editor in fullscreen

* Different positionsand sizes are needed in classic theme

* Add class to <td> containing description textarea, needed in order to apply a CSS rule onto it
2017-11-11 19:00:32 +01:00
kilo
fdd86d6a9e Also delete cookies from main domain instead of just current subdomain (#1726)
* Update main.js

* fix folders in filelist

* Update treeview.jet.html
2017-11-09 19:49:01 +10:00
kilo
6a03a75d6b
Fix settings page for non-logged in users (#1725)
* Update main.js

* delete cookies from any domain before creating them

* Update settings.jet.html
2017-11-09 10:21:28 +01:00
kilo
fdbf06e610 Increase max torrent per page, fix HTML errors, other fixes (#1723)
* Increase max torrent per page

* Increase max torrent per page

* fix html error by changing an ID into a class

* change css selector from id to class

* Update oldNav.jet.html

* Update classic.css

* Update captcha.jet.html

* Fix order of torrents in admin panel index

* Update settings.jet.html

* make lang postform have same name as cookie
2017-11-09 11:53:38 +10:00
kilo
213780f0eb
Small fixes (#1715)
* Update main.css

* saving settings now clear old cookies of current domain

* Update main.js

* Update classic.css

* Update settings.go

* Update main.css

* Update commentlist.jet.html

* Update generate.go

* Update default_config.yml

* Update structs.go

* Update default_config.yml

* Update find.go

* Update find.go

* Update stats.go

* Update interaction.go
2017-11-08 09:32:06 +01:00
kilo
e8dfeaea4a
Fix report creation from report template for anonymous users & small css adjustement (#1712)
* Fix report creation from report template for anonymous users

* small adjustement for styling of usernames in comment

* lower margin-top for comment content

* Update en-us.all.json

* Update CHANGELOG.md

* fix torrent link button's styling getting messed up from
2017-11-05 07:43:53 +01:00
kilo
8ec3c2a743
Add possibility of reporting without JS, add report reason for NSFW content, Add possibility of getting a torrent by Hash in refine (#1709)
* Add possibility of reporting without JS

* Add report message input and new report reason to /report/:id page

* add new report reason here too

* Update en-us.all.json

* Update CHANGELOG.md

* only show if not sukebei

* ditto

* fix label for value

* ditto

* fix overly big report message column

* Update main.css

* Update search.jet.html

* Add possibility of getting a torrent by Hash in refine

* Update search.go

* Update search.go

* fix template_test

* ditto

* fix Sprintf wrongly using a Token

* rollback that

* Update callback.go

* remove line that creates error

* fix travis
2017-11-04 06:42:36 +01:00
MMP0
57d2e32ff1 Fix cookie warning (#1706)
* Update base.jet.html

* Update listing.jet.html

* Update main.css

* bottom padding needs to be higher than top padding otherwise it looks off
2017-11-03 12:46:39 +01:00
kilo
7f61eeb02b
Update classic.css 2017-11-01 04:29:55 +01:00
kilo
03640a0c95
Add files via upload 2017-10-31 23:18:45 +01:00
kilo
73441008c7
Add files via upload 2017-10-31 23:01:55 +01:00
kilo
ce0c812741
Update classic.css 2017-10-31 08:10:53 +01:00
kilo
5f30e0c031
Update classic.css 2017-10-31 08:09:52 +01:00
kilo
bc7fb76e71
Update classic.css 2017-10-31 07:40:05 +01:00
kilo
9a0a6f1277
Update main.css 2017-10-31 06:31:28 +01:00
kilo
eb4cd2e376
Update main.css 2017-10-31 06:03:45 +01:00
kilo
daacc546be
Update classic.css 2017-10-31 05:59:38 +01:00
kilo
0b28792078
Update main.css 2017-10-31 05:55:29 +01:00
kilo
32ddba50ab
Update classic.css 2017-10-31 05:49:24 +01:00
kilo
40b282057d
Update main.css 2017-10-31 05:49:03 +01:00
kilo
d20fe56594
Update classic.css 2017-10-31 05:47:02 +01:00
kilo
3ae6e7df7e
Update classic.css 2017-10-31 05:45:05 +01:00
kilo
9792e4eee3
Update classic.css 2017-10-31 05:43:16 +01:00
kilo
44f76fc837
Update classic.css 2017-10-31 05:33:46 +01:00
kilo
8d2be6ca5b
Update classic.css 2017-10-31 05:15:48 +01:00
kilo
c570624905
Update main.css 2017-10-31 04:52:35 +01:00
kilo
25627f6bca
Update main.css 2017-10-31 04:52:01 +01:00
kilo
48d624fb47
Update classic.css 2017-10-31 04:49:36 +01:00
kilo
38aebaf827
Update classic.css 2017-10-31 04:38:04 +01:00
kilo
1318b855ba
Update classic.css 2017-10-31 04:30:04 +01:00
kilo
783e4fdf64
Update classic.css 2017-10-31 04:23:50 +01:00
kilo
30c6993df2
Update classic.css 2017-10-31 04:21:44 +01:00
kilo
a4b9b34f9b
Update classic.css 2017-10-31 04:12:00 +01:00
kilo
de6751b1f5
Update classic.css 2017-10-31 04:11:06 +01:00
kilo
99ec8e303c
Update main.css 2017-10-31 04:10:56 +01:00
kilo
ee5a9488df
Update classic.css 2017-10-31 03:55:20 +01:00
kilo
ec7c086350
Update classic.css 2017-10-31 03:47:44 +01:00
kilo
60ac28a122
Update main.css 2017-10-31 03:44:15 +01:00
kilo
3cd90a7d08
Update classic.css 2017-10-31 03:41:43 +01:00
kilo
26023640ca
Update main.css 2017-10-31 03:38:29 +01:00
kilo
7a9e78b192
Update classic.css 2017-10-31 03:35:08 +01:00
kilo
570fcd763f
Update main.css 2017-10-31 03:32:57 +01:00
kilo
29226a9a27
Update main.css 2017-10-31 03:32:11 +01:00
kilo
404fb66978
Update main.css 2017-10-31 03:30:06 +01:00
kilo
0800924982
Update main.js 2017-10-31 02:36:24 +01:00
kilo
20e1777b95
Update main.css 2017-10-31 02:15:45 +01:00
kilo
57be73d2e6
Update main.css 2017-10-31 01:42:25 +01:00
kilo
6d96e5d201
Update main.css 2017-10-31 00:54:45 +01:00