mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-29 16:31:31 +00:00
Status page reward edits
Ninja Github merge, yolo!
This commit is contained in:
parent
9f1447cef8
commit
088b086186
1 changed files with 9 additions and 13 deletions
|
@ -9,6 +9,7 @@
|
||||||
<?php $statusData = $status_token['data'] ?>
|
<?php $statusData = $status_token['data'] ?>
|
||||||
<?php $isSyncAgreed = in_array($statusData['status'], ["failed", "finalized", "pendingemail", "queued", "synced", "syncing","pendingupgrade","abandoned"]) ?>
|
<?php $isSyncAgreed = in_array($statusData['status'], ["failed", "finalized", "pendingemail", "queued", "synced", "syncing","pendingupgrade","abandoned"]) ?>
|
||||||
<?php $isRewardClaimed = $statusData['redeemed_reward'] > 0 ?>
|
<?php $isRewardClaimed = $statusData['redeemed_reward'] > 0 ?>
|
||||||
|
<?php $isRewardable = $statusData['expected_reward'] > 0 ?>
|
||||||
<?php $isTransferred = $statusData['transferred'] ?>
|
<?php $isTransferred = $statusData['transferred'] ?>
|
||||||
|
|
||||||
<?php if (IS_PRODUCTION): ?>
|
<?php if (IS_PRODUCTION): ?>
|
||||||
|
@ -65,7 +66,7 @@
|
||||||
</p>
|
</p>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<h2><?php echo $isSyncAgreed && $isRewardClaimed ? "You're all set!" : "Almost done!" ?></h2>
|
<h2><?php echo $isSyncAgreed && $isTransferred ? "You're all set!" : "Almost done!" ?></h2>
|
||||||
|
|
||||||
<div class="confirmation-steps">
|
<div class="confirmation-steps">
|
||||||
<ul class="bulletless">
|
<ul class="bulletless">
|
||||||
|
@ -79,10 +80,10 @@
|
||||||
<p>Agree to sync</p>
|
<p>Agree to sync</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="<?php echo $isRewardClaimed && $isSyncAgreed ? "" : "disabled" ?>">
|
<li class="<?php echo $isTransferred && $isSyncAgreed ? "" : "disabled" ?>">
|
||||||
<span><?php echo $isRewardClaimed ? "✓" : "·" ?></span>
|
<span><?php echo $isTransferred ? "✓" : "·" ?></span>
|
||||||
<p>Claim wallet and rewards</p>
|
<p>Claim content</p>
|
||||||
<p <?php echo ($isSyncAgreed === true && ($isRewardClaimed === false || $isTransferred === false)) ? "" : "hidden" ?>>(<a href="https://lbry.tv">Sign in to lbry.tv</a> or <a href="/get">get the app</a>)</p>
|
<p <?php echo ($isSyncAgreed === true && $isTransferred === false) ? "" : "hidden" ?>>(<a href="https://lbry.tv">Sign in to lbry.tv</a> or <a href="/get">get the app</a>)</p>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
@ -95,7 +96,6 @@
|
||||||
<th>Your Sync Status</th>
|
<th>Your Sync Status</th>
|
||||||
<th>Subscribers</th>
|
<th>Subscribers</th>
|
||||||
<th>Videos</th>
|
<th>Videos</th>
|
||||||
<th>Expected Monthly Rewards</th>
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -140,10 +140,6 @@
|
||||||
<td>
|
<td>
|
||||||
<?php echo $statusData['videos'] === 0 ? "—" : $statusData['videos'] ?>
|
<?php echo $statusData['videos'] === 0 ? "—" : $statusData['videos'] ?>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
|
||||||
<?php echo $statusData['expected_reward'] === 0 ? "—" : $statusData['expected_reward'] ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -219,10 +215,10 @@
|
||||||
|
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
|
|
||||||
<?php if ($isSyncAgreed && !$isRewardClaimed && in_array($statusData['status'], ['queued', 'syncing', 'synced', 'finalized'])): ?>
|
<?php if ($isSyncAgreed && !$isTransferred && in_array($statusData['status'], ['queued', 'syncing', 'synced', 'finalized', 'pendingupgrade'])): ?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>Claim wallet and rewards</legend>
|
<legend>Claim channel and content</legend>
|
||||||
<p>Just one step left! Take permanent ownership of your channel and receive your rewards by signing in. To take ownership, the content must be synced first.</p>
|
<p>Just one step left! Take permanent ownership of your content after it's been synced to LBRY. You'll do this by claiming it on the Channels page of lbry.tv/Desktop</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="https://lbry.tv">On the web</a></li>
|
<li><a href="https://lbry.tv">On the web</a></li>
|
||||||
<li><a href="https://lbry.com/get">Desktop and mobile apps</a></li>
|
<li><a href="https://lbry.com/get">Desktop and mobile apps</a></li>
|
||||||
|
|
Loading…
Add table
Reference in a new issue