feat(identity): close free-task progress, level card, hot threshold
Finish remaining 1:1 parity gaps: free-task done/progress DTO with daily marks, user-center level/integral card UI, configurable forum hot recommend threshold, and task progress bars.
This commit is contained in:
1 parent
a7489798fe
commit
5949c7a503
9 files changed
+243
-8
No files matched your search
@@ -201,6 +201,19 @@ $pane = isset($points_tasks_pane) ? sanitize_key((string) $points_tasks_pane)
|
||||
<div class="flex1 mr20">
|
||||
<div class="font-bold mb6"><?php echo esc_html((string) $task['title']); ?></div>
|
||||
<div class="muted-2-color em09"><?php echo esc_html((string) $task['desc']); ?></div>
|
||||
<?php
|
||||
$progress = $task['progress'] ?? null;
|
||||
$target = $task['target'] ?? null;
|
||||
if ($target !== null && (int) $target > 0) :
|
||||
$pv = max(0, (int) $progress);
|
||||
$tv = max(1, (int) $target);
|
||||
$pct = (int) min(100, round(($pv / $tv) * 100));
|
||||
?>
|
||||
<div class="uc-points-tasks__progress mt6">
|
||||
<div class="uc-points-tasks__progress-bar"><span style="width:<?php echo (int) $pct; ?>%"></span></div>
|
||||
<div class="muted-2-color em09 mt3"><?php echo esc_html($pv . '/' . $tv); ?></div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="uc-points-tasks__meta shrink0 text-right">
|
||||
<div class="focus-color em14">
|
||||
|
||||
Reference in new issue
Block a user