Add creationDate
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51042 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
c973bec01c
commit
0e29902938
|
@ -31,6 +31,7 @@ export class CommunitiesService {
|
|||
result['queryId'] = resData[0].queryId;
|
||||
result['logoUrl'] = resData[0].logoUrl;
|
||||
result['description'] = resData[0].description;
|
||||
result['date'] = resData[0].creationDate;
|
||||
|
||||
if(resData[0].managers != null) {
|
||||
if(result['managers'] == undefined) {
|
||||
|
@ -67,6 +68,7 @@ export class CommunitiesService {
|
|||
result['queryId'] = resData.queryId;
|
||||
result['logoUrl'] = resData.logoUrl;
|
||||
result['description'] = resData.description;
|
||||
result['date'] = resData.creationDate;
|
||||
|
||||
if(resData.managers != null) {
|
||||
if(result['managers'] == undefined) {
|
||||
|
|
|
@ -19,10 +19,11 @@
|
|||
<div *ngIf="community.subjects != null">
|
||||
<p *ngFor='let subject of community.subjects; let i = index'> <span class="uk-label"> {{subject}}</span> </p>
|
||||
</div>
|
||||
<p><span *ngIf="community.managers !=null">
|
||||
<p>
|
||||
<span *ngIf="community.managers != null">
|
||||
<span *ngFor='let manager of community.managers; let i = index'>Curated by: {{manager}} </span>
|
||||
</span>
|
||||
<span class="uk-margin-left"> Created: 26-01-2018</span>
|
||||
<span *ngIf="community.date != null" class="uk-margin-left"> Created: {{community.date | date:'dd-MM-yyyy'}}</span>
|
||||
</p>
|
||||
</div>
|
||||
<div class="uk-child-width-1-6@l uk-child-width-1-6@m uk-child-width-1-3@s uk-text-center uk-grid" uk-grid="">
|
||||
|
|
|
@ -110,6 +110,7 @@ export class CommunityService {
|
|||
community['queryId'] = resData[0].queryId;
|
||||
community['logoUrl'] = resData[0].logoUrl;
|
||||
community['description'] = resData[0].description;
|
||||
community['date'] = resData[0].creationDate;
|
||||
|
||||
if(resData[0].managers != null) {
|
||||
if(community['managers'] == undefined) {
|
||||
|
@ -147,6 +148,7 @@ export class CommunityService {
|
|||
community['queryId'] = resData.queryId;
|
||||
community['logoUrl'] = resData.logoUrl;
|
||||
community['description'] = resData.description;
|
||||
community['date'] = resData.creationDate;
|
||||
|
||||
if(resData.managers != null) {
|
||||
if(community['managers'] == undefined) {
|
||||
|
|
Loading…
Reference in New Issue