diff --git a/src/views/layout.ecr b/src/views/layout.ecr index 1c068350..cf26da3f 100644 --- a/src/views/layout.ecr +++ b/src/views/layout.ecr @@ -29,8 +29,9 @@
- <% if env.get("notifications").as(Int32) > 0 %> -
+ <% notifications = env.get("notifications").as(Int32) %> + <% if notifications > 0 %> +
<%= notifications %>
<% else %>
<% end %>