Project

General

Profile

« Previous | Next » 

Revision 58161

[Trunk | Library]:
1. project.component: Project Landing Page redesign - html, component and parsing according to redesign.
2. landing-header.component.ts: Input parameters added for project landing redesing ("startDate", "endDate", "status").
3. htmlProjectReport.service.ts: Type check for request adjusted and "oaftype", "resulttypeid" removed from request (parameter "type" is enough).

View differences:

landing-header.component.ts
16 16
        <span *ngIf="properties.environment === 'production' && types && removeUnknown(types, true).length > 0">
17 17
           {{' . ' + removeUnknown(types, true).join(' . ')}}
18 18
        </span>
19
        <span>
20
          <span *ngIf="(startDate && startDate != '') || (endDate && endDate != '')">
21
            {{' . '}}
22
          </span>
23
          <span *ngIf="(startDate && startDate != '') && (!endDate || endDate == '')">
24
            {{'from '}}
25
          </span>
26
          <span *ngIf="(!startDate || startDate == '') && (endDate && endDate != '')">
27
            {{'until '}}
28
          </span>
29
          <span *ngIf="startDate && startDate != ''">
30
            {{startDate | date: 'yyyy'}}
31
          </span>
32
          <span *ngIf="(startDate && startDate != '') && (endDate && endDate != '')">
33
            {{' - '}}
34
          </span>
35
          <span *ngIf="endDate && endDate != ''">
36
            {{endDate | date: 'yyyy'}}
37
          </span>
38
        </span>
39
        <span *ngIf="status && status != ''">
40
          {{' . ' + status}}
41
        </span>
19 42
        <span *ngIf="year && year != ''">
20 43
          {{' . ' + year}}
21 44
        </span>
......
36 59
  @Input() entityType: string;
37 60
  @Input() properties: EnvProperties;
38 61
  @Input() types: string[];
62
  @Input() startDate: string; // project landing
63
  @Input() endDate: string; // project landing
64
  @Input() status: string;  // project landing
39 65
  @Input() year: string;
40 66
  @Input() embargoEndDate: Date;
41 67
  @Input() title: string;

Also available in: Unified diff