render ticket list <ol> only if list is not empty

This commit is contained in:
Felix Niklas 2014-11-15 17:19:40 +01:00
parent f4c97de9e7
commit 7242581723
2 changed files with 3 additions and 2 deletions

View file

@ -1,4 +1,5 @@
<label><%- @T(@head) %> (<%= @ticket_ids.length %>)</label>
<% if @ticket_ids.length: %>
<ol class="tasks tasks--standalone">
<% for ticket_id in @ticket_ids_show: %>
<% ticket = App.Ticket.fullLocal(ticket_id) %>
@ -13,7 +14,7 @@
</li>
<% end %>
</ol>
<% if @ticket_ids.length is 0: %>
<% else: %>
<div class="profile-ticketsPlaceholder vertical centered">
<div class="<%- @iconClass %>"></div>
<%- @T('No Tickets') %>

View file

@ -4544,7 +4544,7 @@ label + .wizard-buttonList {
.profile-ticketsPlaceholder {
@extend .flex;
margin: 12px 0 22px;
margin: 8px 0 22px;
color: hsl(209,28%,74%);
.mood.icon {