Skip to content

Commit

Permalink
[admin] fix user link
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Oct 6, 2022
1 parent 00fc229 commit 9865fed
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('username_new')
->searchable()
->label(__('username-change-log.labels.username_new'))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->id, false, true, true, true)))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->uid, false, true, true, true)))
,
Tables\Columns\TextColumn::make('operator')
->searchable()
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Resources/User/ClaimResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('user.username')
->label(__('label.user.label'))
->searchable()
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->id, false, true, true, true)))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->uid, false, true, true, true)))
,
Tables\Columns\TextColumn::make('torrent.name')->limit(40)->label(__('label.torrent.label'))->searchable(),
Tables\Columns\TextColumn::make('torrent.size')->label(__('label.torrent.size'))->formatStateUsing(fn (Model $record) => mksize($record->torrent->size)),
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Resources/User/ExamUserResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('user.username')
->label(__('label.username'))
->searchable()
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->id, false, true, true, true)))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->uid, false, true, true, true)))
,
Tables\Columns\TextColumn::make('exam.name')->label(__('label.exam.label')),
Tables\Columns\TextColumn::make('begin')->label(__('label.begin'))->dateTime(),
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Resources/User/HitAndRunResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('user.username')
->searchable()
->label(__('label.username'))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->id, false, true, true, true)))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->uid, false, true, true, true)))
,

Tables\Columns\TextColumn::make('torrent.name')->limit(30)->label(__('label.torrent.label')),
Expand Down
2 changes: 1 addition & 1 deletion app/Filament/Resources/User/UserMedalResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static function table(Table $table): Table
Tables\Columns\TextColumn::make('user.username')
->label(__('label.username'))
->searchable()
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->id, false, true, true, true)))
->formatStateUsing(fn ($record) => new HtmlString(get_username($record->uid, false, true, true, true)))
,
Tables\Columns\TextColumn::make('medal.name')->label(__('label.medal.label'))->searchable(),
Tables\Columns\ImageColumn::make('medal.image_large')->label(__('label.image')),
Expand Down
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.7.28');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-10-06');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2022-10-07');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down

0 comments on commit 9865fed

Please sign in to comment.