Project

General

Profile

1
<schema2jsonld [URL]="properties.baseLink"
2
               [logoURL]="properties.baseLink+'/assets/common-assets/logo-small-monitor.png'" type="home"
3
               name="OpenAIRE Monitor">
4
</schema2jsonld>
5
<div
6
  class="image-front-topbar uk-margin-medium-top"
7
  uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}"
8
  tm-header-transparent="light" tm-header-transparent-placeholder="">
9
  <div *ngIf="status === errorCodes.LOADING" class="uk-animation-fade uk-margin-top  uk-width-1-1" role="alert">
10
    <span class="loading-gif  uk-align-center"></span>
11
  </div>
12
  <div *ngIf="stakeholder && status === errorCodes.DONE && activeTopic"
13
       class="uk-background-primary uk-light uk-padding-small">
14
    <div class="uk-flex uk-flex-middle topic-nav" uk-grid>
15
      <div class="uk-width-1-5@m uk-margin-left">
16
        <span class="uk-text-bold uk-h4">{{stakeholder.index_name}}</span><br>
17
        <span class="uk-h5">Monitor Dashboard</span>
18
      </div>
19
      <nav class="uk-width-3-5@m uk-navbar" uk-navbar>
20
        <div class="uk-navbar-center">
21
          <ul class="uk-navbar-nav">
22
            <ng-template ngFor [ngForOf]="stakeholder.topics" let-topic let-i="index">
23
              <li *ngIf="topic.isPublic && topic.isActive"
24
                  [ngClass]="(topic.alias === activeTopic.alias)?'uk-active':''">
25
                <a (click)="navigateTo(stakeholder.alias, topic.alias)">{{topic.name}}</a>
26
              </li>
27
            </ng-template>
28
          </ul>
29
        </div>
30
      </nav>
31
    </div>
32
  </div>
33
  <div uk-grid>
34
    <sidebar [menuItems]="sideMenuItems" class="uk-width-1-5 sidebar"></sidebar>
35
    <div *ngIf="activeSubCategory"
36
         class="uk-width-expand uk-background-muted uk-padding uk-text-center@s uk-text-left@m">
37
      <h5 class="uk-margin-bottom uk-text-bold">Indicators</h5>
38
      <div class="uk-grid-medium uk-margin-bottom" uk-grid uk-height-match="target: div > h6">
39
        <ng-template ngFor [ngForOf]="activeSubCategory.numbers" let-number let-i="index">
40
          <div *ngIf="number.isActive && number.isPublic"
41
               [class.uk-width-1-3@m]="number.width === 'small'"
42
               [class.uk-width-1-2@m]="number.width === 'medium'"
43
               [class.uk-width-1-1@m]="number.width === 'large'">
44
            <div class="uk-card uk-card-default uk-box-shadow-large uk-padding-small" [attr.uk-tooltip]="number.description">
45
              <h6>{{number.name}}</h6>
46
              <div class="uk-h2" *ngIf="numberResults.get(i)">
47
                {{numberResults.get(i)|number}}
48
              </div>
49
              <div *ngIf="!numberResults.get(i)" class="uk-animation-fade uk-width-1-1" role="alert">
50
                <span class="loading-gif uk-align-center"></span>
51
              </div>
52
            </div>
53
          </div>
54
        </ng-template>
55
      </div>
56
      <div class="uk-grid-medium uk-margin-bottom" uk-grid uk-height-match="target: div > h5">
57
        <ng-template ngFor [ngForOf]="activeSubCategory.charts" let-chart let-i="index">
58
          <div *ngIf="chart.isActive && chart.isPublic"
59
             [class.uk-width-1-3@m]="chart.width === 'small'"
60
             [class.uk-width-1-2@m]="chart.width === 'medium'"
61
             [class.uk-width-1-1@m]="chart.width === 'large'">
62
          <div>
63
            <h5 class="uk-margin-bottom uk-margin-top">{{chart.name}}</h5>
64
            <div class="uk-card uk-card-default uk-box-shadow-large uk-padding-small" [attr.uk-tooltip]="chart.description">
65
              <div *ngIf="chart.indicatorPaths.length > 1" class="uk-button-group">
66
                <button *ngFor="let indicatorPath of chart.indicatorPaths;"
67
                        class="uk-button"
68
                        (click)="setActiveChart(i, indicatorPath.type)"
69
                        [class.uk-button-secondary]="chartsActiveType.get(i).url === indicatorPath.url">
70
                  {{indicatorPath.type}}
71
                </button>
72
              </div>
73
              <iframe *ngIf="chartsActiveType.get(i).source !== 'fake'"
74
                      [src]="getUrlByStakeHolder(chartsActiveType.get(i))"
75
                      class="uk-width-1-1 uk-height-medium"></iframe>
76
              <img *ngIf="chartsActiveType.get(i).source === 'fake'"
77
                   [src]="getUrlByStakeHolder(chartsActiveType.get(i))"
78
                   class="uk-width-1-1 uk-height-medium">
79
            </div>
80
          </div>
81
        </div>
82
        </ng-template>
83
      </div>
84
    </div>
85
  </div>
86
</div>
(2-2/4)