Skip to content

Commit

Permalink
feat: link version update banner to github release
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel Ribeiro committed Oct 31, 2024
1 parent 2c3f14e commit e6f715c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@
if (version_compare($version, $latestVersion) == -1) {
?>
<div class="update-banner">
<?= translate('new_version_available', $i18n) ?>: <span><?= $latestVersion ?></span>
<?= translate('new_version_available', $i18n) ?>:
<span><a href="https://github.com/ellite/Wallos/releases/tag/<?= htmlspecialchars($latestVersion) ?>"
target="_blank">
<?= htmlspecialchars($latestVersion) ?>
</a></span>
</div>
<?php
}
Expand Down
4 changes: 4 additions & 0 deletions styles/dark-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,10 @@ input {
color: #FFF;
}

.update-banner>span>a {
color: #FFF;
}

.totp-qrcode-container {
padding: 14px;
border: 1px solid #DDD;
Expand Down
5 changes: 5 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,11 @@ input[type="radio"]:checked+label::after {
font-weight: 500;
}

.update-banner>span>a {
color: #222;
text-decoration: underline;
}

.demo-banner {
padding: 15px 20px;
background-color: rgba(var(--error-color-rgb), 0.2);
Expand Down

0 comments on commit e6f715c

Please sign in to comment.