-
+

{{'DMP-LISTING.TITLE' | translate}} {{titlePrefix}}

{{'DMP-LISTING.SUBTITLE' | translate}}

-
@@ -17,11 +17,12 @@
-
-
- +
+ +
+
- +
diff --git a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss index 2c71ecd54..027648e92 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss +++ b/dmp-frontend/src/app/ui/dmp/listing/dmp-listing.component.scss @@ -1,38 +1,51 @@ -::ng-deep .mat-paginator { - margin-top: auto; -} - ::ng-deep .mat-paginator-container { - flex-direction: row-reverse !important; - justify-content: space-between !important; + flex-direction: row-reverse !important; + justify-content: space-between !important; background-color: #f6f6f6; height: 30px; min-height: 30px !important; } ::ng-deep .mat-paginator-page-size { - height: 43px; + height: 43px; } ::ng-deep .mat-icon-button { - height: 30px !important; - font-size: 12px !important; + height: 30px !important; + font-size: 12px !important; } ::ng-deep .mat-paginator-range-label { - margin: 15px 32px 0 24px !important; + margin: 15px 32px 0 24px !important; } ::ng-deep .mat-paginator-range-actions { - width: 55% !important; - min-height: 43px !important; - justify-content: space-between; + width: 55% !important; + min-height: 43px !important; + justify-content: space-between; } ::ng-deep .mat-paginator-navigation-previous { - margin-left: auto !important; + margin-left: auto !important; } + +.top-paginator ::ng-deep .mat-paginator-navigation-previous { + display: none !important; +} + +.top-paginator ::ng-deep .mat-paginator-navigation-next { + display: none !important; +} + +// .bot-paginator { +// margin-top: auto; +// } + +// ::ng-deep .mat-paginator { +// margin-top: auto; +// } + // .listing { // .mat-card { // margin: 1em 0; diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html index debf41f87..b90e4e486 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.html @@ -1,48 +1,62 @@ -
-
- lock -
+
-

{{dmp.label}}

-

{{dmp.project}}

-
-
- storage -

{{dmp.datasets.length}}

-
-
{{profile.label}}
+
+ {{dmp.projectabbreviation}} + + + + + + +
-
- settings -

OWNER

+
+
+ lock + lock +

DRAFT:{{dmp.label}}

+

{{dmp.label}}

+
-
- group +
+
+

{{dmp.description}}

+
+
+
+
+ settings +

OWNER

+ + storage +

{{dmp.datasets.length}}

+ + assignment +
+
{{profile.label}}
+
+

Published {{dmp.creationTime | date: "shortDate"}}

+
+
+
+
- + diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.scss b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.scss index e69de29bb..54ff403a2 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.scss +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.scss @@ -0,0 +1,39 @@ +.gray-container { + letter-spacing: 5px; + color: #aaaaaa; +} + +.container-header { + display: flex; + align-items: baseline; + margin-top: 0px; + text-transform: uppercase; +} + +.about-item { + display: flex; +} + +.about-item .length { + color: rgb(70, 135, 240); +} + +.about-item .title { + margin: 2px 10px; +} + +.about-item p { + margin-left: auto; + margin-bottom: 0px; + padding-top: 7px; + color: #aaaaaa; +} + +.draft-icon { + color: #aaaaaa; +} + +.more-horiz { + font-size: 28px; + color: #aaaaaa; +} diff --git a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts index a516dafa5..650816797 100644 --- a/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts +++ b/dmp-frontend/src/app/ui/dmp/listing/listing-item/dmp-listing-item.component.ts @@ -15,9 +15,13 @@ export class DmpListingItemComponent implements OnInit { @Input() showDivider: boolean = true; @Output() onClick: EventEmitter = new EventEmitter(); + isDraft: boolean; + constructor(private router: Router, private dialog: MatDialog) { } ngOnInit() { + if (this.dmp.status == 0) { this.isDraft = true } + else { this.isDraft = false } } itemClicked() { diff --git a/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.html b/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.html index aab3e01ca..ce66de578 100644 --- a/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.html +++ b/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.html @@ -8,18 +8,18 @@

{{dmp.project}}

- storage + storage

{{dmp.associatedProfiles.length}}

{{profile.label}}
- settings + settings

OWNER

- group + group
JOHN DOE
JOHN DOE
JOHN DOE
diff --git a/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.scss b/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.scss index 392b76645..15940c5de 100644 --- a/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.scss +++ b/dmp-frontend/src/app/ui/explore-dmp/listing-item/explore-dmp-listing-item.component.scss @@ -11,7 +11,7 @@ color: rgb(93, 125, 173); } - .type-icon { + .gray-icon { color: rgb(191, 191, 191); } diff --git a/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.html b/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.html index ba1566b83..6760107d2 100644 --- a/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.html +++ b/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.html @@ -8,11 +8,11 @@

{{project.abbreviation}}

- desc + desc {{project.description}}
- settings + settings

{{project.startDate | date:'shortDate'}}

-

{{project.endDate | date:'shortDate'}}

diff --git a/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.scss b/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.scss index 7165dbded..bc76c4282 100644 --- a/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.scss +++ b/dmp-frontend/src/app/ui/project/listing/listing-item/project-listing-item.component.scss @@ -11,7 +11,7 @@ color: rgb(93, 125, 173); } - .type-icon { + .gray-icon { color: rgb(191, 191, 191); } diff --git a/dmp-frontend/src/app/ui/project/listing/project-listing.component.scss b/dmp-frontend/src/app/ui/project/listing/project-listing.component.scss index a1dde24bb..8d075edf1 100644 --- a/dmp-frontend/src/app/ui/project/listing/project-listing.component.scss +++ b/dmp-frontend/src/app/ui/project/listing/project-listing.component.scss @@ -2,17 +2,17 @@ .mat-card { margin: 1em 0; } - + .col-9 { display: flex; flex-direction: column; } } - - ::ng-deep .mat-paginator { - margin-top: auto; - } - + +// ::ng-deep .mat-paginator { +// margin-top: auto; +// } + ::ng-deep .mat-paginator-container { flex-direction: row-reverse !important; justify-content: space-between !important; @@ -20,27 +20,26 @@ height: 30px; min-height: 30px !important; } - + ::ng-deep .mat-paginator-page-size { height: 43px; } - + ::ng-deep .mat-icon-button { height: 30px !important; font-size: 12px !important; } - + ::ng-deep .mat-paginator-range-label { margin: 15px 32px 0 24px !important; } - + ::ng-deep .mat-paginator-range-actions { width: 55% !important; min-height: 43px !important; justify-content: space-between; } - + ::ng-deep .mat-paginator-navigation-previous { margin-left: auto !important; } - \ No newline at end of file diff --git a/dmp-frontend/src/styles.scss b/dmp-frontend/src/styles.scss index 33a35a6b9..e8c203377 100644 --- a/dmp-frontend/src/styles.scss +++ b/dmp-frontend/src/styles.scss @@ -30,10 +30,15 @@ $theme: mat-light-theme($primary, $accent); color: #111010; } +.lightblue-btn { + background-color: rgb(70, 135, 240) !important; +} + .listing-item { - margin-top: 2em; - margin-bottom: 2em; + margin-top: 0.5em; + padding: 0.5em; cursor: pointer; + border: 3px solid #f2f2f2; .title { color: black; @@ -43,11 +48,20 @@ $theme: mat-light-theme($primary, $accent); color: rgb(93, 125, 173); } - .type-icon { + .gray-icon { color: rgb(191, 191, 191); } .chip { + padding: 0.1em 1em; + border-radius: 10em; + background-color: rgb(70, 135, 230); + color: #fff; + text-transform: uppercase; + font-weight: 500; + } + + .bordered-chip { padding: 0.1em 1em; border: 0.1em solid rgb(218, 227, 243); border-radius: 10em; @@ -115,7 +129,7 @@ $theme: mat-light-theme($primary, $accent); } h4 span { - color: #0070c0; + color: #619ce3; font-weight: 600; } } @@ -130,3 +144,8 @@ $theme: mat-light-theme($primary, $accent); flex-direction: column; } } + +.gray-container { + background: linear-gradient(180deg, #f6f6f6, #fff); + margin: 5px 0px; +}