Fix project listing

stable
Xavier Julián 2015-04-27 12:02:56 +02:00 committed by Juanfran
parent bd8bdd3a11
commit 8705b8ffc4
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@ HomeProjectListDirective = (projectsService) ->
link = (scope, el, attrs, ctrl) ->
scope.vm = {}
scope.vm.projects = projectsService.projects
taiga.defineImmutableProperty(scope.vm, "projects", () -> projectsService.projects.get("recents"))
scope.vm.newProject = ->
projectsService.newProject()

View File

@ -1,5 +1,5 @@
ul.home-project-list(ng-show="vm.projects.length")
li.home-project-list-single(tg-bind-scope, ng-repeat="project in vm.projects.all")
li.home-project-list-single(tg-bind-scope, tg-repeat="project in vm.projects")
a(href="#", tg-nav="project:project=project.slug")
h2.home-project-list-single-title
span.project-name(ng-bind="::project.name", title="{{ ::project.name }}")