Add private projects to project listing

stable
Xavier Julián 2015-04-27 10:48:09 +02:00 committed by Juanfran
parent 7052e88d84
commit a69e230126
2 changed files with 22 additions and 4 deletions

View File

@ -14,8 +14,10 @@ div.project-list-wrapper.centered
div.project-list-single-left div.project-list-single-left
div.project-list-single-title div.project-list-single-title
h1 h1
a(href="#", ng-bind="::project.name", tg-nav="project:project=project.slug", title="{{ ::project.name }}") a(href="#", tg-nav="project:project=project.slug")
span {{::project.is_private}} h1.project-name(ng-bind="::project.name", title="{{ ::project.name }}")
span.private(ng-if="project.is_private", title="{{'PROJECT.PRIVATE' | translate}}")
include ../../../svg/lock.svg
p {{ ::project.description | limitTo:300 }} p {{ ::project.description | limitTo:300 }}
span(ng-if="::project.description.length > 300") ... span(ng-if="::project.description.length > 300") ...

View File

@ -17,11 +17,27 @@
flex: 4; flex: 4;
h1 { h1 {
@extend %text; @extend %text;
@extend %larger; @extend %large;
color: $gray; display: inline-block;
margin-bottom: 0; margin-bottom: 0;
text-transform: none; text-transform: none;
} }
.project-name {
@extend %text;
@extend %larger;
color: $gray;
vertical-align: middle;
white-space: nowrap;
}
.private {
display: inline-block;
margin-left: .3rem;
width: .5rem;
path {
fill: $gray-light;
transition: fill .3s linear;
}
}
p { p {
@extend %text; @extend %text;
@extend %small; @extend %small;