US/121 new project home front
parent
d5478c2b44
commit
93d74affd3
|
@ -24,6 +24,7 @@
|
||||||
configure = ($routeProvider, $locationProvider, $httpProvider, $provide) ->
|
configure = ($routeProvider, $locationProvider, $httpProvider, $provide) ->
|
||||||
|
|
||||||
$routeProvider.when("/", {templateUrl: "/partials/projects.html"})
|
$routeProvider.when("/", {templateUrl: "/partials/projects.html"})
|
||||||
|
$routeProvider.when("/create-project", {templateUrl: "/partials/create-project.html"})
|
||||||
$routeProvider.when("/project/:pslug/backlog", {templateUrl: "/partials/backlog.html"})
|
$routeProvider.when("/project/:pslug/backlog", {templateUrl: "/partials/backlog.html"})
|
||||||
$routeProvider.when("/project/:pslug/taskboard/:id", {templateUrl: "/partials/taskboard.html"})
|
$routeProvider.when("/project/:pslug/taskboard/:id", {templateUrl: "/partials/taskboard.html"})
|
||||||
$routeProvider.when("/project/:pslug/search", {templateUrl: "/partials/search.html"})
|
$routeProvider.when("/project/:pslug/search", {templateUrl: "/partials/search.html"})
|
||||||
|
|
|
@ -49,6 +49,7 @@ urls = {
|
||||||
"change-password": "/change-password/:token",
|
"change-password": "/change-password/:token",
|
||||||
"register": "/register",
|
"register": "/register",
|
||||||
"invitation": "/invitation/:token",
|
"invitation": "/invitation/:token",
|
||||||
|
"create-project": "/create-project",
|
||||||
|
|
||||||
"profile": "/:user",
|
"profile": "/:user",
|
||||||
|
|
||||||
|
@ -80,7 +81,9 @@ urls = {
|
||||||
"project-admin-project-values-issue-types": "/project/:project/admin/project-values/issue-types",
|
"project-admin-project-values-issue-types": "/project/:project/admin/project-values/issue-types",
|
||||||
"project-admin-project-values-issue-priorities": "/project/:project/admin/project-values/issue-priorities",
|
"project-admin-project-values-issue-priorities": "/project/:project/admin/project-values/issue-priorities",
|
||||||
"project-admin-project-values-issue-severities": "/project/:project/admin/project-values/issue-severities",
|
"project-admin-project-values-issue-severities": "/project/:project/admin/project-values/issue-severities",
|
||||||
"project-admin-memberships": "/project/:project/admin/memberships"
|
"project-admin-memberships": "/project/:project/admin/memberships",
|
||||||
|
"project-admin-project-profile-features": "/project/:project/admin/project-profile/features",
|
||||||
|
"project-admin-project-values-us-status": "/project/:project/admin/project-values/us-status"
|
||||||
}
|
}
|
||||||
|
|
||||||
init = ($log, $navurls) ->
|
init = ($log, $navurls) ->
|
||||||
|
|
|
@ -159,7 +159,7 @@ ProjectMenuDirective = ($log, $compile, $rootscope) ->
|
||||||
$rootscope.$broadcast("nav:projects-list:open")
|
$rootscope.$broadcast("nav:projects-list:open")
|
||||||
|
|
||||||
$scope.$on "$viewContentLoaded", (ctx) ->
|
$scope.$on "$viewContentLoaded", (ctx) ->
|
||||||
if ctx.targetScope.$$childHead is null
|
if ctx.targetScope.$$childHead is null || ctx.targetScope.$$childHead.hideMenu
|
||||||
$log.error "No scope found for render menu."
|
$log.error "No scope found for render menu."
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -172,5 +172,3 @@ ProjectMenuDirective = ($log, $compile, $rootscope) ->
|
||||||
|
|
||||||
|
|
||||||
module.directive("tgProjectMenu", ["$log", "$compile", "$rootScope", ProjectMenuDirective])
|
module.directive("tgProjectMenu", ["$log", "$compile", "$rootScope", ProjectMenuDirective])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ class ProjectController extends taiga.Controller
|
||||||
@.$inject = ["$scope", "$tgResources"]
|
@.$inject = ["$scope", "$tgResources"]
|
||||||
|
|
||||||
constructor: (@scope, @rs) ->
|
constructor: (@scope, @rs) ->
|
||||||
|
@scope.hideMenu = true
|
||||||
@.projects = []
|
@.projects = []
|
||||||
@.loadInitialData()
|
@.loadInitialData()
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 812 KiB |
|
@ -4,10 +4,18 @@ block head
|
||||||
title Taiga Project management web application with scrum in mind!
|
title Taiga Project management web application with scrum in mind!
|
||||||
|
|
||||||
block content
|
block content
|
||||||
div.wrapper(ng-controller="ProjectController as ctrl")
|
div.home-projects-list(ng-controller="ProjectController as ctrl")
|
||||||
section.main.home-projects-list
|
.home-projects-list-inner
|
||||||
|
ul.recent-projects
|
||||||
|
li(ng-repeat="project in ctrl.projects")
|
||||||
|
.project-content
|
||||||
|
h2(tg-bo-html="project.name")
|
||||||
|
p(tg-bo-html="project.description")
|
||||||
|
.project-link
|
||||||
|
a.button.button-gray(href="", tg-nav="project-backlog:project=project.slug") Go to project
|
||||||
|
|
||||||
|
div.all-projects
|
||||||
|
h1 Projects
|
||||||
ul
|
ul
|
||||||
li(ng-repeat="project in ctrl.projects")
|
li(ng-repeat="project in ctrl.projects")
|
||||||
a(href="", tg-nav="project-backlog:project=project.slug")
|
a.button(href="", tg-bo-html="project.name", tg-nav="project-backlog:project=project.slug")
|
||||||
span(tg-bo-html="project.name")
|
|
||||||
span.icon.icon-arrow-right
|
|
|
@ -1,6 +1,30 @@
|
||||||
.home-projects-list {
|
.home-projects-list {
|
||||||
background: url('/images/invitation_bg.jpg') no-repeat center center;
|
align-items: center;
|
||||||
|
background-image: url('/images/project-selector.jpg');
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
left: 0;
|
||||||
|
padding: 0;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.all-projects {
|
||||||
|
background-color: rgba(0, 0, 0, .5);
|
||||||
|
flex-grow: 0;
|
||||||
|
margin-left: 2rem;
|
||||||
|
min-width: 285px;
|
||||||
|
padding: 1rem;
|
||||||
|
h1 {
|
||||||
|
color: $whitish;
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
li {
|
||||||
|
border-bottom: 2px solid $gray;
|
||||||
|
}
|
||||||
a {
|
a {
|
||||||
@extend %large;
|
@extend %large;
|
||||||
@extend %title;
|
@extend %title;
|
||||||
|
@ -8,6 +32,7 @@
|
||||||
display: block;
|
display: block;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
width: 100%;
|
||||||
&.active,
|
&.active,
|
||||||
&:hover {
|
&:hover {
|
||||||
@include transition (background-color .3s linear);
|
@include transition (background-color .3s linear);
|
||||||
|
@ -18,20 +43,48 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.home-projects-list-inner {
|
||||||
|
align-items: strech;
|
||||||
|
display: flex;
|
||||||
|
height: 575px;
|
||||||
|
max-width: 1300px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.recent-projects {
|
||||||
|
display: flex;
|
||||||
|
flex-grow: 0;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin: 0;
|
||||||
li {
|
li {
|
||||||
border-bottom: 2px solid $gray;
|
background-color: rgba(255, 255, 255, .5);
|
||||||
&:last-child {
|
display: flex;
|
||||||
border-bottom: 0;
|
flex-grow: 0;
|
||||||
|
flex-shrink: 0;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
max-width: 32%;
|
||||||
|
height: 280px;
|
||||||
|
padding: 2rem;
|
||||||
|
&:nth-child(-n+3) {
|
||||||
|
margin-bottom: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ul {
|
h2,
|
||||||
background-color: #232323;
|
a,
|
||||||
padding: 1rem;
|
p {
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
.icon {
|
|
||||||
color: $whitish;
|
color: $whitish;
|
||||||
float: right;
|
}
|
||||||
opacity: 0;
|
.project-content,
|
||||||
|
.project-link {
|
||||||
|
min-width: 100%;
|
||||||
|
}
|
||||||
|
.project-link {
|
||||||
|
align-self: flex-end;
|
||||||
|
}
|
||||||
|
.button-gray {
|
||||||
|
text-align: center;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue