mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 11:27:24 +08:00
userdetails add weeks
This commit is contained in:
+1
-1
@@ -326,7 +326,7 @@ if (get_setting('main.spsct') == 'yes') {
|
||||
<td class="rowhead"><?php echo $lang_getrss['row_sort']?>
|
||||
</td>
|
||||
<td class="rowfollow" align="left">
|
||||
<label><input type="radio" name="sort" value="sticky"><?php echo $lang_getrss['sort_sticky']?></label>
|
||||
<label><input type="radio" name="sort" value="sticky" checked><?php echo $lang_getrss['sort_sticky']?></label>
|
||||
<label><input type="radio" name="sort" value="newest"><?php echo $lang_getrss['sort_newest']?></label>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@@ -32,10 +32,12 @@ $medalType = 'valid_medals';
|
||||
$userInfo = \App\Models\User::query()->with($medalType)->findOrFail($user['id']);
|
||||
$userRep = new \App\Repositories\UserRepository();
|
||||
|
||||
if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null)
|
||||
$joindate = $lang_userdetails['text_not_available'];
|
||||
else
|
||||
$joindate = $user['added']." (" . gettime($user["added"], true, false, true).")";
|
||||
if ($user['added'] == "0000-00-00 00:00:00" || $user['added'] == null) {
|
||||
$joindate = $lang_userdetails['text_not_available'];
|
||||
} else {
|
||||
$weeks = $userInfo->added->diffInWeeks() . nexus_trans('nexus.time_units.week');
|
||||
$joindate = $user['added']." (" . gettime($user["added"], true, false, true).", $weeks)";
|
||||
}
|
||||
$lastseen = $user["last_access"];
|
||||
if ($lastseen == "0000-00-00 00:00:00" || $lastseen == null)
|
||||
$lastseen = $lang_userdetails['text_not_available'];
|
||||
|
||||
@@ -5,4 +5,7 @@ return [
|
||||
'require_argument' => ':argument cannot be empty',
|
||||
'select_one_please' => 'Please select one',
|
||||
'user_not_exists' => '(orphaned)',
|
||||
'time_units' => [
|
||||
'week' => 'weeks',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -5,4 +5,7 @@ return [
|
||||
'require_argument' => ':argument 不能为空',
|
||||
'select_one_please' => '请选择一项',
|
||||
'user_not_exists' => '(无此帐户)',
|
||||
'time_units' => [
|
||||
'week' => '周',
|
||||
],
|
||||
];
|
||||
|
||||
@@ -5,4 +5,7 @@ return [
|
||||
'require_argument' => ':argument 不能為空',
|
||||
'select_one_please' => '請選擇一項',
|
||||
'user_not_exists' => '(無此帳戶)',
|
||||
'time_units' => [
|
||||
'week' => '周',
|
||||
],
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user