<span class="mitem">
    <span class="msub" ng-click="setThings()">Things</span>
</span>

<span class="mitem">
    <span class="msub" ng-click="setGallery()">Gallery<spanext ng-if="state.page == 'gallery'"> ></spanext></span>
    <span ng-if="state.page == 'gallery'" class="msub" ng-click="setUpload()">Upload</span>
    <span ng-if="state.page == 'gallery'" class="msub" ng-click="clearGallery()">Clear</span>
</span>

<span class="mitem">
    <span class="msub" ng-click="setForum()">Forum<spanext ng-if="state.page == 'forum'"> ></spanext></span>
    <span ng-if="state.page == 'forum'" class="msub" ng-click="setCategoryCreate()">Create a Category</span>
    <span ng-if="state.page == 'forum'" class="msub" ng-click="setTopicCreate()">Create a Topic</span>
</span>

<div class="userbar">
    <span ng-show="state.user.userNo != null" class="mitem">
        <span>Welcome {{state.user.userName}}!</span>
        <span class="msub" ng-click="logOut()">Log Out</span>
    </span>
    <span ng-show="state.user.userNo == null" class="mitem">
        <span class="msub" ng-click="setLogin()">Log in</span>
    </span>
    <span ng-show="state.user.userNo == null" class="mitem">
        <span class="msub" ng-click="setSignup()">Sign Up</span>
    </span>
</div>