Project

General

Profile

1
<div class="uk-container line-height-normal" *ngIf="community">
2
  <div class="badges">
3
    <div *ngIf="community.isSubscribed"
4
         class="portal-card-badge uk-text-center">
5
      <span>Subscribed</span>
6
    </div>
7
    <div *ngIf="community.status == 'manager'"
8
         class="private-card-badge uk-text-center ">
9
      <span>Private</span>
10
    </div>
11
  </div>
12
  <div class="uk-card-media-top uk-padding uk-padding-remove-vertical uk-flex uk-flex-center uk-flex-middle">
13
    <a *ngIf="directLink" [href]="getCommunityPageUrl()" target="_blank">
14
      <div class="community">
15
        <img *ngIf="community.logoUrl != null && community.logoUrl != ''" src="{{community.logoUrl}}"
16
             alt="{{(community.title)?community.title:community.shortTitle}} logo">
17
        <span *ngIf="community.logoUrl == null || community.logoUrl == ''" class="uk-icon">
18
          <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none" stroke="#000"
19
                                                                                           stroke-width="1.1" cx="7.7"
20
                                                                                           cy="8.6" r="3.5"></circle> <path
21
            fill="none" stroke="#000" stroke-width="1.1"
22
            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"
23
                                                                                                 stroke="#000"
24
                                                                                                 stroke-width="1.1"
25
                                                                                                 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>
26
        </span>
27
      </div>
28
    </a>
29
    <a *ngIf="!directLink" (click)="confirmModalOpen()">
30
      <div class="community">
31
        <img *ngIf="community.logoUrl != null && community.logoUrl != ''" src="{{community.logoUrl}}"
32
             alt="{{(community.title)?community.title:community.shortTitle}} logo">
33
        <span *ngIf="community.logoUrl == null || community.logoUrl == ''" class="uk-icon">
34
          <svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none" stroke="#000"
35
                                                                                           stroke-width="1.1" cx="7.7"
36
                                                                                           cy="8.6" r="3.5"></circle> <path
37
            fill="none" stroke="#000" stroke-width="1.1"
38
            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"
39
                                                                                                 stroke="#000"
40
                                                                                                 stroke-width="1.1"
41
                                                                                                 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>
42
        </span>
43
      </div>
44
    </a>
45
  </div>
46
  <div class="uk-card-body uk-padding-small uk-padding-remove-horizontal uk-padding-remove-top uk-margin-small-top uk-margin-bottom">
47
    <div class="uk-text-center uk-text-bold " [ngClass]="(showDescription)?'uk-margin-bottom':''">
48
      <a *ngIf="directLink" [href]="getCommunityPageUrl()" class="color uk-text-bold" target="_blank" [class.uk-text-small]="smallTitle">
49
        <span *ngIf="community.title">
50
          {{community.title.slice(0, thresholdTitle)}}
51
          <span *ngIf="community.title.length > thresholdTitle">...</span>
52
        </span>
53
        <span *ngIf="!community.title && community.shortTitle">
54
          {{community.shortTitle.slice(0, thresholdTitle)}}
55
          <span *ngIf="community.shortTitle.length > thresholdTitle">...</span>
56
        </span>
57
      </a>
58
      <a *ngIf="!directLink" (click)="confirmModalOpen()" class="color uk-text-bold" [class.uk-text-small]="smallTitle">
59
        <span *ngIf="community.title">
60
          {{community.title.slice(0, thresholdTitle)}}
61
          <span *ngIf="community.title.length > thresholdTitle">...</span>
62
        </span>
63
        <span *ngIf="!community.title && community.shortTitle">
64
          {{community.shortTitle.slice(0, thresholdTitle)}}
65
          <span *ngIf="community.shortTitle.length > thresholdTitle">...</span>
66
        </span>
67
      </a>
68
    </div>
69
    <div class="uk-text-left uk-text-small" *ngIf="community.description != null && showDescription"
70
         title="{{community.description}}">
71
      <span>{{community.description.slice(0, thresholdDescription)}}<span
72
        *ngIf="community.description.length > thresholdDescription">...</span></span>
73
    </div>
74
  </div>
75
  <div>
76
    <div class="uk-position-small uk-position-bottom-right">
77
      <a *ngIf="directLink" [href]="getCommunityPageUrl()" target="_blank" class="portal-link uk-text-uppercase uk-text-bold">
78
        Visit {{(properties.environment == 'production'?' BETA':'')}}
79
      </a>
80
      <a *ngIf="!directLink" (click)="confirmModalOpen()" class="portal-link uk-text-uppercase uk-text-bold">
81
        Visit {{(properties.environment == 'production'?' BETA':'')}}
82
      </a>
83
    </div>
84
  </div>
85
</div>
86
<modal-alert #AlertModal (alertOutput)="goToCommunityPage($event)">
87
  <div class="uk-text-left">
88
    You will be navigated to a new tab. Are you sure that you want to proceed?
89
  </div>
90
</modal-alert>
(1-1/3)