From 12aedd0735db3d4f80d7b96681b7bb1cdc7716ef Mon Sep 17 00:00:00 2001 From: astex <0astex@gmail.com> Date: Tue, 19 Apr 2016 12:43:37 -0400 Subject: [PATCH 01/51] Add a project detail component. --- front/current/components/app/app.component.ts | 10 ++++++++-- front/current/components/project/detail.component.html | 0 front/current/components/project/detail.component.ts | 10 ++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 front/current/components/project/detail.component.html create mode 100644 front/current/components/project/detail.component.ts diff --git a/front/current/components/app/app.component.ts b/front/current/components/app/app.component.ts index d93420f..0fc7b23 100644 --- a/front/current/components/app/app.component.ts +++ b/front/current/components/app/app.component.ts @@ -6,11 +6,12 @@ import { config } from '../../config'; import { RestService } from '../../services/rest.service'; import { ProjectService } from '../../services/project/project.service'; +import { DocumentSlotService } from '../../services/project/document-slot.service'; +import { DocumentService } from '../../services/document/document.service'; import { NavComponent } from '../nav/nav.component'; import { ProjectListComponent } from '../projects/list.component'; -import { DocumentSlotService } from '../../services/project/document-slot.service'; -import { DocumentService } from '../../services/document/document.service'; +import { ProjectDetailComponent } from '../project/detail.component' @Component({ @@ -30,6 +31,11 @@ import { DocumentService } from '../../services/document/document.service'; name: 'Projects', component: ProjectListComponent, useAsDefault: true + }, + { + path: '/project/:id/:section', + name: 'ProjectDetail', + component: ProjectDetailComponent } ]) export class AppComponent { diff --git a/front/current/components/project/detail.component.html b/front/current/components/project/detail.component.html new file mode 100644 index 0000000..e69de29 diff --git a/front/current/components/project/detail.component.ts b/front/current/components/project/detail.component.ts new file mode 100644 index 0000000..d62ff40 --- /dev/null +++ b/front/current/components/project/detail.component.ts @@ -0,0 +1,10 @@ +import { Component } from 'angular2/core'; + +import { config } from '../../config'; + + +@Component({ + selector: 'project', + templateUrl: config.static_url + '/components/project/detail.component.html' +}) +export class ProjectDetailComponent {}; -- GitLab From 6cc9122df4b2a7d0df58deae95addb157721b745 Mon Sep 17 00:00:00 2001 From: astex <0astex@gmail.com> Date: Tue, 19 Apr 2016 15:00:56 -0400 Subject: [PATCH 02/51] Add links to the project detail page from the project list. --- front/current/components/app/app.component.ts | 2 +- front/current/components/projects/list.component.html | 6 +++++- front/current/components/projects/list.component.ts | 5 ++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/front/current/components/app/app.component.ts b/front/current/components/app/app.component.ts index 0fc7b23..0780347 100644 --- a/front/current/components/app/app.component.ts +++ b/front/current/components/app/app.component.ts @@ -34,7 +34,7 @@ import { ProjectDetailComponent } from '../project/detail.component' }, { path: '/project/:id/:section', - name: 'ProjectDetail', + name: 'Project', component: ProjectDetailComponent } ]) diff --git a/front/current/components/projects/list.component.html b/front/current/components/projects/list.component.html index 74f427e..72d5d05 100644 --- a/front/current/components/projects/list.component.html +++ b/front/current/components/projects/list.component.html @@ -21,7 +21,11 @@ {{ project.data['state'] }} - {{ project.data['name'] }} + + {{ project.data['name'] }} +