omments on logging out
[unfold.git] / views / templates / widget-topmenu.html
index 8b8ff57..ceb56f2 100644 (file)
@@ -17,7 +17,7 @@
          <li class='other'> <a href="{{ d.href }}"> {{ d.label }} </a> </li>
          {% endif %}
          {% endfor %}
-       </ul>
+       </ul> {# logout.js will attach a click function on that button, which then retrieves the 'username' attribute #}
        <span class="navbar-text pull-right"> {% if username %} Logged in as {{ username }}<button id='logout' class='btn btn-danger' username='{{ username }}'>Logout</a>
 {% else %}Not logged in{% endif %}</span>
       </div><!--nav-collapse-->