Explorar o código

Only show progress bar percent if there is any checklist item done

Martin Filser %!s(int64=3) %!d(string=hai) anos
pai
achega
1fcc0d2ec2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      client/components/cards/checklists.jade

+ 1 - 1
client/components/cards/checklists.jade

@@ -45,7 +45,7 @@ template(name="checklistDetail")
                 = checklist.title
 
     .checklist-progress-bar-container
-      .checklist-progress-text {{finishedPercent}}%
+      .checklist-progress-text {{#if $gt finishedPercent 0}}{{finishedPercent}}%{{/if}}
       .checklist-progress-bar
         .checklist-progress(style="width:{{finishedPercent}}%;{{#if $eq finishedPercent 0}}display:none{{/if}}")
     +checklistItems(checklist = checklist)