mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Handle tags properly
This commit is contained in:
@@ -472,7 +472,7 @@
|
||||
<td><?= __("Tag"); ?></td>
|
||||
<td>
|
||||
<?php if ($commitHash != "") { ?>
|
||||
<a target="_blank" href="https://github.com/wavelog/wavelog/releases/tag/<?php echo substr($tag, 0, strpos($tag, '-')); ?>"><span class="badge text-bg-success"><?php echo $tag; ?></span></a>
|
||||
<a target="_blank" href="https://github.com/wavelog/wavelog/releases/tag/<?php echo strpos($tag, '-') ? substr($tag, 0, strpos($tag, '-')) : $tag; ?>"><span class="badge text-bg-success"><?php echo $tag; ?></span></a>
|
||||
<?php } else { ?>
|
||||
<span class="badge text-bg-danger"><?= __("n/a"); ?></span>
|
||||
<?php } ?>
|
||||
|
||||
Reference in New Issue
Block a user