mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
torrents list show seedbox icon
This commit is contained in:
@@ -9,9 +9,28 @@ class SearchBox extends NexusModel
|
||||
protected $fillable = [
|
||||
'name', 'catsperrow', 'catpadding', 'showsubcat',
|
||||
'showsource', 'showmedium', 'showcodec', 'showstandard', 'showprocessing', 'showteam', 'showaudiocodec',
|
||||
'custom_fields', 'custom_fields_display_name', 'custom_fields_display'
|
||||
'custom_fields', 'custom_fields_display_name', 'custom_fields_display', 'extra'
|
||||
];
|
||||
|
||||
protected $casts = [
|
||||
'extra' => 'object'
|
||||
];
|
||||
|
||||
const EXTRA_DISPLAY_COVER_ON_TORRENT_LIST = 'display_cover_on_torrent_list';
|
||||
|
||||
public static array $extras = [
|
||||
self::EXTRA_DISPLAY_COVER_ON_TORRENT_LIST => ['text' => 'Display cover on torrent list'],
|
||||
];
|
||||
|
||||
public static function listExtraText(): array
|
||||
{
|
||||
$result = [];
|
||||
foreach (self::$extras as $extra => $info) {
|
||||
$result[$extra] = nexus_trans("searchbox.extras.$extra");
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function categories(): \Illuminate\Database\Eloquent\Relations\HasMany
|
||||
{
|
||||
return $this->hasMany(Category::class, 'mode');
|
||||
|
||||
Reference in New Issue
Block a user