Project

General

Profile

1
<ul [class]="'uk-list uk-list-divider  uk-margin ' + custom_class">
2
  <errorMessages [status]="[status]" [type]="'results'"></errorMessages>
3

    
4
  <li *ngFor="let result of results" class="uk-animation-fade uk-margin-auto" uk-grid>
5
    <a *ngIf="directLink" [href]="getCommunityPageUrl(result.communityId)" target="_blank"
6
       class="uk-width-1-5 uk-height-small uk-card uk-card-default uk-card-small communityCard uk-padding-remove-horizontal uk-inline">
7
      <div *ngIf="result.isSubscribed"
8
           class="uk-position-top-right uk-card-badge portal-card-badge uk-width-1-2 uk-text-small uk-text-center">
9
        <span>Subscribed</span>
10
      </div>
11
      <div class="uk-card-body uk-position-center uk-flex uk-flex-middle uk-flex-center">
12
        <img *ngIf="result.logoUrl != null && result.logoUrl != '' " src="{{result.logoUrl}}"
13
             alt="{{(result.title)?result.title:result.shortTitle}} logo">
14
        <span *ngIf="result.logoUrl == null || result.logoUrl == '' " class="uk-icon">
15
                   <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
16
                                                                                                    stroke="#000"
17
                                                                                                    stroke-width="1.1"
18
                                                                                                    cx="7.7" cy="8.6"
19
                                                                                                    r="3.5"></circle> <path
20
                     fill="none" stroke="#000" stroke-width="1.1"
21
                     d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path> <path fill="none"
22
                                                                                                          stroke="#000"
23
                                                                                                          stroke-width="1.1"
24
                                                                                                          d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg>
25
                </span>
26
      </div>
27
      <div *ngIf="result.status == 'manager'"
28
           class="uk-card-badge private-card-badge uk-width-2-5 uk-position-top-left uk-text-small uk-text-center ">
29
        <span class="uk-padding-small">Private</span>
30
      </div>
31
    </a>
32
    <a *ngIf="!directLink"
33
       class="uk-width-1-5 uk-height-small uk-card uk-card-default uk-card-small communityCard uk-padding-remove-horizontal uk-inline"
34
       (click)="confirmModalOpen(result)">
35
      <div *ngIf="result.isSubscribed"
36
           class="uk-position-top-right uk-card-badge portal-card-badge uk-width-1-2 uk-text-small uk-text-center">
37
        <span>Subscribed</span>
38
      </div>
39
      <div class="uk-card-body uk-position-center uk-flex uk-flex-middle uk-flex-center">
40
        <img *ngIf="result.logoUrl != null && result.logoUrl != '' " src="{{result.logoUrl}}"
41
             alt="{{(result.title)?result.title:result.shortTitle}} logo">
42
        <span *ngIf="result.logoUrl == null || result.logoUrl == '' " class="uk-icon">
43
                   <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
44
                                                                                                    stroke="#000"
45
                                                                                                    stroke-width="1.1"
46
                                                                                                    cx="7.7" cy="8.6"
47
                                                                                                    r="3.5"></circle> <path
48
                     fill="none" stroke="#000" stroke-width="1.1"
49
                     d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path> <path fill="none"
50
                                                                                                          stroke="#000"
51
                                                                                                          stroke-width="1.1"
52
                                                                                                          d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg>
53
                </span>
54
      </div>
55
      <div *ngIf="result.status == 'manager'"
56
           class="uk-card-badge private-card-badge uk-width-2-5 uk-position-top-left uk-text-small uk-text-center ">
57
        <span class="uk-padding-small">Private</span>
58
      </div>
59
    </a>
60
    <div class="uk-width-expand">
61
      <div [title]=result.shortTitle class="uk-text-large uk-grid">
62
        <a *ngIf="directLink" [href]="getCommunityPageUrl(result.communityId)" target="_blank"
63
           [class]="(result.isManager)?'uk-width-3-4':''">
64
          {{(result.title) ? result.title : result.shortTitle}}
65
        </a>
66
        <a *ngIf="!directLink" (click)="confirmModalOpen(result)" [class]="(result.isManager)?'uk-width-3-4':''">
67
          {{(result.title) ? result.title : result.shortTitle}}
68
        </a>
69
        <manage *ngIf="result.isManager" [communityId]="result.communityId"
70
                class="uk-width-expand uk-margin-auto-right"></manage>
71
      </div>
72
      <div *ngIf="result.description">
73
        <div class="text-justify descriptionText uk-margin-auto-right" [title]="result.description">
74
          {{_formatDescription(result.description)}}
75
        </div>
76
      </div>
77
      <div class="uk-padding-small uk-padding-remove-left uk-grid">
78
        <div class="uk-width-1-2">
79
          <span *ngIf="result.date"><b> Creation Date: </b></span>
80
          <span *ngIf="result.date">{{result.date | date:'dd-MM-yyyy'}}</span>
81
        </div>
82
        <div *ngIf="showType" class="uk-width-expand uk-align-right uk-margin-auto-right">
83
          <span *ngIf="result.type && result.type != ''"><b> Type: </b></span>
84
          <span
85
            *ngIf="result.type && result.type != ''">{{(result.type == 'ri') ? 'Research Initiative' : 'Research Community'}}</span>
86
        </div>
87
      </div>
88
    </div>
89
  </li>
90
</ul>
91
<modal-alert #AlertModal (alertOutput)="goToCommunityPage($event)">
92
  <div class="uk-text-left">
93
    You will be navigated to a new tab. Are you sure that you want to proceed?
94
  </div>
95
</modal-alert>
96

    
(11-11/45)