Project

General

Profile

1
<ul [class]="'uk-list uk-margin ' + custom_class"  uk-height-match="target: .communityCard; row: false">
2
  <errorMessages [status]="[status]" [type]="'results'"></errorMessages>
3
  <li *ngFor="let result of results" class="uk-animation-fade uk-margin-auto">
4
    <div class="uk-card uk-card-default communityCard uk-position-relative uk-flex uk-flex-middle uk-grid uk-margin-remove-left" >
5
      <div class="badges">
6
        <div *ngIf="result.isSubscribed"
7
             class="portal-card-badge uk-text-center">
8
          <span>Subscribed</span>
9
        </div>
10
        <div *ngIf="result.status == 'manager'"
11
             class="private-card-badge uk-text-center ">
12
          <span>Private</span>
13
        </div>
14
      </div>
15
      <a *ngIf="directLink" [href]="getCommunityPageUrl(result)" target="_blank"
16
         class="uk-width-1-5">
17
        <div>
18
          <img *ngIf="result.logoUrl != null && result.logoUrl != '' " src="{{result.logoUrl}}"
19
               alt="{{(result.title)?result.title:result.shortTitle}} logo">
20
          <span *ngIf="result.logoUrl == null || result.logoUrl == '' && result.type != 'funder'" class="uk-icon">
21
                   <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
22
                                                                                                    stroke="#000"
23
                                                                                                    stroke-width="1.1"
24
                                                                                                    cx="7.7" cy="8.6"
25
                                                                                                    r="3.5"></circle> <path
26
                       fill="none" stroke="#000" stroke-width="1.1"
27
                       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"
28
                                                                                                            stroke="#000"
29
                                                                                                            stroke-width="1.1"
30
                                                                                                            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>
31
                </span>
32
          <div *ngIf="(result.logoUrl == null || result.logoUrl == '' ) &&   result.type == 'funder' "
33
               [class]="'funderLogo ' + result['jurisdictionLogo'] "></div>
34
        </div>
35
      </a>
36
      <a *ngIf="!directLink"
37
         class="uk-width-1-5"
38
         (click)="confirmModalOpen(result)">
39
        <div>
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 == '' ) && result.type != 'funder' " 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 *ngIf="(result.logoUrl == null || result.logoUrl == '' ) &&   result.type == 'funder' "
55
               [class]="'funderLogo ' + result['jurisdictionLogo'] "></div>
56
        </div>
57
      </a>
58
      <div class="uk-width-expand">
59
        <div [title]=result.shortTitle class="uk-text-large uk-grid">
60
          <a *ngIf="directLink" [href]="getCommunityPageUrl(result)" target="_blank"
61
             [class]="(result.isManager)?'uk-width-3-4 portal-link':'portal-link'">
62
            {{(result.title) ? result.title : result.shortTitle}}
63
          </a>
64
          <a *ngIf="!directLink" (click)="confirmModalOpen(result)" [class]="(result.isManager)?'uk-width-3-4':''" class="portal-link">
65
            {{(result.title) ? result.title : result.shortTitle}}
66
          </a>
67
          <manage *ngIf="result.isManager" [communityId]="result.communityId"
68
                  class="uk-width-expand uk-margin-auto-right"></manage>
69
        </div>
70
        <div class="uk-margin-small-top uk-text-small">
71
          <span class="uk-text-muted" *ngIf="result.date">Creation Date:</span>
72
          <span class="space" *ngIf="result.date">{{result.date | date:'dd-MM-yyyy'}}</span>
73
          <span *ngIf="showType && result.type && result.type != ''" class="uk-margin-left">
74
            <span class="uk-text-muted">Type:</span>
75
            <span class="space">{{(result.type == 'ri') ? 'Research Initiative' : 'Research Community'}}</span>
76
          </span>
77
          <span *ngIf="result['jurisdiction'] && result['jurisdiction']!=''" class="uk-margin-left">
78
            <span class="uk-text-muted">Jurisdiction:</span>
79
            <span class="space">{{result['jurisdiction']}}</span>
80
          </span>
81
        </div>
82
        <div *ngIf="result.description">
83
          <div class="text-justify descriptionText uk-text-small uk-text-muted uk-margin-auto-right" [title]="result.description">
84
            {{_formatDescription(result.description)}}
85
          </div>
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/55)