Status page reward edits

Ninja Github merge, yolo!
This commit is contained in:
Thomas Zarebczan 2020-08-03 18:08:50 -04:00 committed by GitHub
parent 9f1447cef8
commit 088b086186
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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>