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