           
           if not request.owners
             return false
-            
+
           for owner in request.owners
             ownerTrimmed = owner.split("@")[0]
             if deployUserTrimmed == ownerTrimmed
               return true
-          
+
           return false
         userRequestTotals =
             all: userRequests.length

    render: =>
        deployUser = app.user.get 'deployUser'

        # Filter starred requests
        starredRequests = @collection.getStarredOnly()
        starredRequests = _.pluck starredRequests, 'attributes'

        # Count up the Requests for the clicky boxes
        userRequests = @collection.filter (model) ->


class DashboardView extends View

    templateBase: require '../templates/dashboard'
    templateRequestsTable: require '../templates/dashboardTable/dashboardStarred'

    events: ->
        _.extend super,
            'click [data-action="unstar"]': 'unstar'
            'click [data-action="change-user"]': 'changeUser'
            'click th[data-sort-attribute]': 'sortTable'

    initialize: =>
        @listenTo app.user, 'change', @render
