Fix broken sidebar projects list

stable
Xavier Julián 2015-10-07 09:42:47 +02:00 committed by Alejandro Alonso
parent 0de2d7388f
commit 15dbf078a4
2 changed files with 23 additions and 20 deletions

View File

@ -1,4 +1,5 @@
ul.home-project-list(ng-show="vm.projects.size") section.home-project-list(ng-show="vm.projects.size")
ul
li.home-project-list-single(tg-bind-scope, tg-repeat="project in vm.projects") li.home-project-list-single(tg-bind-scope, tg-repeat="project in vm.projects")
a(href="#", tg-nav="project:project=project.get('slug')") a(href="#", tg-nav="project:project=project.get('slug')")
h2.home-project-list-single-title h2.home-project-list-single-title
@ -8,13 +9,15 @@ ul.home-project-list(ng-show="vm.projects.size")
p {{ ::project.get('description') | limitTo:150 }} p {{ ::project.get('description') | limitTo:150 }}
span(ng-if="::project.get('description').size > 150") ... span(ng-if="::project.get('description').size > 150") ...
a.see-more-projects-btn.button-gray(href="#", a.see-more-projects-btn.button-gray(
href="#",
ng-show="vm.projects.size", ng-show="vm.projects.size",
tg-nav="projects", tg-nav="projects",
title="{{'PROJECT.NAVIGATION.SEE_MORE_PROJECTS' | translate}}", title="{{'PROJECT.NAVIGATION.SEE_MORE_PROJECTS' | translate}}",
translate="PROJECT.NAVIGATION.SEE_MORE_PROJECTS") translate="PROJECT.NAVIGATION.SEE_MORE_PROJECTS"
)
section.projects-empty section.projects-empty(ng-show="!vm.projects.size")
include ../../../svg/empty-project.svg include ../../../svg/empty-project.svg
p(translate="HOME.EMPTY_PROJECT_LIST") p(translate="HOME.EMPTY_PROJECT_LIST")
a.create-project-button.button-green(href="#", ng-click="vm.newProject()", a.create-project-button.button-green(href="#", ng-click="vm.newProject()",

View File

@ -18,12 +18,12 @@
transition: fill .3s linear; transition: fill .3s linear;
} }
} }
}
a { a {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
min-height: 5rem; min-height: 5rem;
} }
}
h2 { h2 {
@extend %text; @extend %text;
color: $gray; color: $gray;