render ticket list <ol> only if list is not empty
This commit is contained in:
parent
f4c97de9e7
commit
7242581723
2 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
<label><%- @T(@head) %> (<%= @ticket_ids.length %>)</label>
|
<label><%- @T(@head) %> (<%= @ticket_ids.length %>)</label>
|
||||||
|
<% if @ticket_ids.length: %>
|
||||||
<ol class="tasks tasks--standalone">
|
<ol class="tasks tasks--standalone">
|
||||||
<% for ticket_id in @ticket_ids_show: %>
|
<% for ticket_id in @ticket_ids_show: %>
|
||||||
<% ticket = App.Ticket.fullLocal(ticket_id) %>
|
<% ticket = App.Ticket.fullLocal(ticket_id) %>
|
||||||
|
@ -13,7 +14,7 @@
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ol>
|
</ol>
|
||||||
<% if @ticket_ids.length is 0: %>
|
<% else: %>
|
||||||
<div class="profile-ticketsPlaceholder vertical centered">
|
<div class="profile-ticketsPlaceholder vertical centered">
|
||||||
<div class="<%- @iconClass %>"></div>
|
<div class="<%- @iconClass %>"></div>
|
||||||
<%- @T('No Tickets') %>
|
<%- @T('No Tickets') %>
|
||||||
|
|
|
@ -4544,7 +4544,7 @@ label + .wizard-buttonList {
|
||||||
|
|
||||||
.profile-ticketsPlaceholder {
|
.profile-ticketsPlaceholder {
|
||||||
@extend .flex;
|
@extend .flex;
|
||||||
margin: 12px 0 22px;
|
margin: 8px 0 22px;
|
||||||
color: hsl(209,28%,74%);
|
color: hsl(209,28%,74%);
|
||||||
|
|
||||||
.mood.icon {
|
.mood.icon {
|
||||||
|
|
Loading…
Reference in a new issue