Forráskód Böngészése

Commit 11.3: Add private button.

Frederic G. MARAND 8 éve
szülő
commit
41a14bd9fa
1 módosított fájl, 11 hozzáadás és 0 törlés
  1. 11 0
      simple-todos.html

+ 11 - 0
simple-todos.html

@@ -37,6 +37,17 @@
   <li class="{{#if checked}}checked{{/if}}">
     <button class="delete">&times;</button>
     <input type="checkbox" checked="{{checked}}" class="toggle-checked" />
+
+    {{#if isOwner}}
+      <button class="toggle-private">
+        {{#if private}}
+          Private
+        {{else}}
+          Public
+        {{/if}}
+      </button>
+    {{/if}}
+
     <span class="text"><strong>{{username}}</strong> - {{text}}</span>
   </li>
 </template>