Skip to content

Commit

Permalink
Merge pull request #2465 from Alex-Jordan/achievement-points-notifica…
Browse files Browse the repository at this point in the history
…tion

don't show achievement points when there aren't any
  • Loading branch information
drgrice1 authored Jul 30, 2024
2 parents 64f6b97 + 8d668a9 commit 19865e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/AchievementEvaluator/cheevoMessage.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
</div>
% } else {
<h2><%= $achievement->{name} %></h2>
<div><i><%= $achievement->{points} %> Points</i>: <%= $achievement->{description} %></div>
<div>
% if ($achievement->{points}) {
<i><%= $achievement->{points} %> Points</i>:
% }
<%= $achievement->{description} %>
</div>
% }
</div>
<button type="button" class="btn-close me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
Expand Down

0 comments on commit 19865e1

Please sign in to comment.