UNIT3D-Community-Edition
UNIT3D-Community-Edition copied to clipboard
(Feature) RG Blacklist
Adds a blacklist for not allowed release groups (RG blacklist). RG blacklist is only a list so far and will not check upon upload if the RG is blacklisted.
ToDo:
- Add a staff dashboard entry for the new menus?
- Remove old files/routes/code blocks
Staff Views at: /dashboard/blacklists/releasegroups
Client Views at: /pages/blacklist/releasegroups
- Added a new blacklist for releasegroups
- Created the controller and model to handle this data
- Migrated database table with columns name, reason, created_at & updated_at
- Updated PageController to show link on sidebar menu (blacklist) that links to /page/releasegroup-blacklist which shows all blacklisted groups in a table format using DB::table('blacllist_releasegroups')->get() as $releasename; foreach($releasename as $name); echo '
'; endforeach; . This is not ideal but it works until we can figure out how best to display this information from eloquent models instead of raw queries like above... I'm sure there's an easier way than what i've done here.. just couldn't think of anything else atm lol!'.$name.' - Added a new blacklist system for release groups.
- Created the following routes:
- /blacklist/releasegroups (GET) -> PageController@releasegroupblacklist()
- Created the following controllers:
- Staff\BlacklistReleaseGroupController (CRUD operations on blacklisted release groups)