Browse Source

Commit 11.3: Add private button.

Frederic G. MARAND 9 years ago
parent
commit
41a14bd9fa
1 changed files with 11 additions and 0 deletions
  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>