         @location.url("/project/#{projectSlug}/user-story/#{usRef}")
 
 
-moduleDeps = ['taiga.services.resource', 'taiga.services.data', 'gmModal',
-              'taiga.services.model', 'i18next', 'favico', 'gmOverlay',
-              'gmFlash']
+moduleDeps = ["taiga.services.resource", "taiga.services.data", "gmModal",
+              "taiga.services.model", "i18next", "favico", "gmOverlay",
+              "gmFlash"]
 module = angular.module("taiga.controllers.kanban", moduleDeps)
 module.controller("KanbanController", KanbanController)
 module.controller("KanbanUsController", KanbanUsController)

            return us

        result = {}
        result['project'] = @scope.projectId
        result['status'] = status or @scope.project.default_us_status
        points = {}
        for role in @scope.constants.computableRolesList
            points[role.id] = @scope.project.default_points
        result['points'] = points
        return result

    openCreateUsForm: (statusId) ->
        promise = @modal.open("us-form", {'us': @initializeUsForm(null, statusId), 'type': 'create'})
        promise.then (us) =>
            newUs = @model.make_model("userstories", us)
            @scope.userstories.push(newUs)
            @formatUserStories()

    openEditUsForm: (us) ->
        promise = @modal.open("us-form", {'us': us, 'type': 'edit'})
        promise.then =>
            @formatUserStories()


        hash = hex_sha1(option.text.trim().toLowerCase())
        color = hash
            .substring(0,6)
            .replace("8","0")
            .replace("9","1")
            .replace("a","2")
            .replace("b","3")
            .replace("c","4")
            .replace("d","5")
            .replace("e","6")
            .replace("f","7")

        container.parent().css("background", "##{color}")
        container.text(option.text)
        return


class KanbanUsController extends TaigaBaseController
    @.$inject = ["$scope", "$rootScope", "$q", "$location"]

    constructor: (@scope, @rootScope, @q, @location) ->
        super(scope)
