     # Requirements:
     #   - Us object (ng-model)
     #   - scope.statusById object
+    #   - $scope.project.my_permissions
 
     template = _.template("""
-    <div class="status-data clickable">
+    <div class="status-data <% if(editable){ %>clickable<% }%>">
         <span class="level" style="background-color:<%= status.color %>"></span>
         <span class="status-status"><%= status.name %></span>
-        <span class="icon icon-arrow-bottom"></span>
+        <% if(editable){ %><span class="icon icon-arrow-bottom"></span><% }%>
         <span class="level-name">status</span>
 
         <ul class="popover pop-status">

        require: "ngModel"
    }

module.directive("tgUsStatusButton", ["$rootScope", "$tgRepo", UsStatusButtonDirective])


#############################################################################

## User story status button directive
#############################################################################

UsStatusButtonDirective = ($rootScope, $repo, $confirm) ->
    # Display the status of a US and you can edit it.
    #
    # Example:
