Project

General

Profile

1
<div id="page_content">
2
  <div id="page_content_inner">
3
    <h2 class="heading_b uk-margin-bottom">Metrics for {{repo.officialName}}</h2>
4

    
5
    <!-- TOP HELP CONTENT -->
6
    <help-content #topHelperContent [position]="'top'"
7
                  [ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
8
    </help-content>
9

    
10
    <div class="uk-grid">
11

    
12
      <!-- LEFT HELP CONTENT -->
13
      <aside-help-content #leftHelperContent [position]="'left'"
14
                          [ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
15
      </aside-help-content>
16

    
17
      <!-- MIDDLE -->
18
      <div class=" uk-width-expand@m">
19

    
20
        <div>
21
          <div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
22
          <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
23
          <div *ngIf="loadingMessage" class="loading-big">
24
            <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
25
              {{ loadingMessage }}
26
            </div>
27
            <div class="transparentFilm"></div>
28
          </div>
29
          <div *ngIf="repo && !loadingMessage">
30

    
31
            <div class="md-card">
32
              <div class="md-card-content large-padding">
33
                <div class="uk-article">
34

    
35
                  <p class="uk-article-lead uk-margin-bottom">You don't have metrics enabled for this repository yet. Would you like to enable them?</p>
36

    
37
                  <div class="uk-grid uk-margin-medium-top uk-margin-medium-bottom">
38
                    <figure class="uk-width-1-3 uk-first-column">
39
                      <img src="../../../assets/imgs/metricsWorkflow-new.svg" alt="" data-dense-cap="2" class="dense-image dense-ready">
40
                      <figcaption class="uk-thumbnail-caption">Usage stats enable workflow</figcaption>
41
                    </figure>
42

    
43
                    <div class="info uk-width-2-3">
44
                      <p>Once you select to enable metrics for your repository, the following steps need to be performed:</p>
45
                      <p><i>On your side</i><br>
46
                        1. Download the tracking code for your repository platform<br>
47
                        2. Configure the tracking code according to the instructions<br>
48
                        3. Deploy the tracking code in your repository platform
49
                      </p>
50
                      <p><i>On the OpenAIRE's side</i><br>
51
                        4. Validate the installation of the tracking code and inform the repository manager accordingly<br>
52
                      </p>
53
                    </div>
54
                  </div>
55

    
56
                  <blockquote>
57
                    For more details about the workflows and tools please consult the
58
                    <a target="_blank" href="https://openaire.github.io/usage-statistics-guidelines/">
59
                      “Guidelines for Collecting Usage Events and Provision of Usage Statistics”
60
                    </a>
61
                    .
62
                  </blockquote>
63

    
64
                  <button class="uk-button uk-button-primary uk-margin-top" (click)="confirmEnabling()">Enable Metrics</button>
65

    
66
                </div>
67
              </div>
68
            </div>
69

    
70
          </div>
71
        </div>
72

    
73
      </div>
74

    
75
      <!-- RIGHT HELP CONTENT -->
76
      <aside-help-content #rightHelperContent [position]="'right'"
77
                          [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
78
      </aside-help-content>
79

    
80
    </div>
81

    
82
    <!-- BOTTOM HELP CONTENT -->
83
    <help-content #bottomHelperContent [position]="'bottom'"
84
                  [ngClass]="bottomHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
85
    </help-content>
86

    
87
  </div>
88
</div>
89

    
90
<confirmation-dialog #confirmEnablingModal [title]="modalTitle" [isModalShown]="isModalShown"
91
                     [confirmActionButton]="modalButton" (emitObject)="confirmedEnabling($event)">
92
  Are you sure you want to enable metrics for this repository?
93
</confirmation-dialog>
(1-1/17)