Project

General

Profile

« Previous | Next » 

Revision 51440

all api methods work!

View differences:

modules/uoa-repository-dashboard-gui/trunk/app/pages/home/home.component.html
1
<div *ngIf="!getIsUserLoggedIn()">
2
  <div class="image-front-topbar  uk-section-default"
3
       uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}" tm-header-transparent="light">
4
    <div style="background-image: url('../../../assets/imgs/provide_2.jpg'); background-color: rgb(255, 255, 255); box-sizing: border-box; min-height: calc(-101.35px + 100vh);" class="uk-background-norepeat uk-background-cover uk-background-top-center uk-background-fixed uk-section uk-padding-remove-bottom uk-flex uk-flex-middle" uk-height-viewport="offset-top: true;offset-bottom: 20">
5
      <div class="uk-width-1-1">
6
        <div class="uk-margin-medium uk-grid uk-grid-stack" uk-grid="">
7
          <div class="uk-width-1-1@m">
8
          </div>
9
        </div>
10
        <div class="uk-container uk-margin-large">
11
          <div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;"></div>
12
          <div class="search_box_bg uk-grid-large uk-flex-middle uk-grid uk-grid-stack" uk-grid="">
13
            <div class="uk-width-1-1@m uk-first-column">
14
              <h1 id="page#6" class="uk-text-center uk-h1 uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
15
                OpenAIRE Content Provider Dashboard    </h1>
16
              <h4 id="page#7" class="uk-text-center uk-h4 uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
17
                A one-stop-shop for sharing, finding and enriching your content    </h4>
18
              <div class="uk-margin-large uk-text-center uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
19
                <a class="el-content uk-button uk-button-primary" (click)="login()">
20
                  Start here
21
                </a>
22
              </div>
23
            </div>
24
          </div>
25
        </div>
26
      </div>
27
    </div>
28
  </div>
29

  
30
  <div class="uk-section-secondary uk-section uk-section-small" uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-slide-top-medium&quot;,&quot;delay&quot;:false}" uk-height-viewport="expand: true" style="box-sizing: border-box;">
31
    <div class="uk-container">
32
      <div class="uk-margin-small uk-grid uk-grid-stack" uk-grid="">
33
        <div class="uk-width-1-1@m uk-first-column">
34
          <h6 class="uk-margin-large uk-margin-remove-bottom uk-text-center uk-h4 uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" style="">
35
            Learn what you gain when you join OpenAIRE     </h6>
36
          <hr class="uk-width-small uk-margin-auto uk-divider-small uk-text-center uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" style="">
37
        </div>
38
      </div>
39
      <div class="uk-container uk-container-large uk-margin-large">
40
        <div uk-grid="" class="uk-grid uk-grid-stack">
41
          <div class="uk-width-1-1@m uk-first-column">
42
            <div class="uk-margin uk-grid-match uk-child-width-1-1 uk-child-width-1-2@s uk-child-width-1-4@m uk-child-width-1-4@l uk-child-width-1-4@xl uk-grid-parallax uk-grid uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" uk-grid-parallax="translate: " uk-lightbox="toggle: a[data-type]" style="margin-bottom: 20px;">
43
              <div class="uk-first-column">
44
                <div uk-scrollspy-class="" class="el-item uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" style="">
45
                  <a data-type="iframe" href="/www.cnn.com" class="el-link uk-position-cover uk-position-z-index uk-margin-remove-adjacent" data-caption="<h4 class='uk-margin-remove'>Validate</h4><div>&nbsp;Use our validation service and see how you can apply the <a href=&quot;guidelines.openaire.eu&quot; target=&quot;_blank&quot;>OpenAIRE Guidelines</a>&nbsp;to expose your content using global standards.</div>"></a>
46
                  <div class="uk-card-media-top"><img src="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/register_bw_3-34cc7a83.jpg" srcset="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/register_bw_3-b8268aa2.jpg 640w,https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/register_bw_3-34cc7a83.jpg 800w" sizes="(min-width: 800px) 800px, 100vw" class="el-image" alt="" width="800"></div>
47
                  <div class="uk-card-body">
48
                    <h3 class="el-title uk-margin uk-h2 uk-margin-remove-adjacent uk-margin-remove-bottom">
49
                      Validate    </h3>
50
                    <div class="el-meta uk-margin uk-text-meta">Interoperable metadata is key for effective content sharing.</div>
51
                    <div class="el-content uk-margin"><div>&nbsp;Use our validation service and see how you can apply the <a href="/guidelines.openaire.eu" target="_blank">OpenAIRE Guidelines</a>&nbsp;to expose your content using global standards.</div></div>
52
                  </div>
53
                </div>
54
              </div>
55
              <div>
56
                <div uk-scrollspy-class="" class="el-item uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" style="">
57
                  <a data-type="iframe" href="/www.cnn.com" class="el-link uk-position-cover uk-position-z-index uk-margin-remove-adjacent" data-caption="<h4 class='uk-margin-remove'>Register</h4><div>Register your literature or data repository, OA Journal, CRIS in OpenAIRE and be part of a global interlinked network.&nbsp;</div>"></a>
58
                  <div class="uk-card-media-top"><img src="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/register_bw_5-fb15ad7f.jpg" srcset="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/register_bw_5-f80c4720.jpg 579w,https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/register_bw_5-fb15ad7f.jpg 724w" sizes="(min-width: 724px) 724px, 100vw" class="el-image" alt="" width="724"></div>
59
                  <div class="uk-card-body">
60
                    <h3 class="el-title uk-margin uk-h2 uk-margin-remove-adjacent uk-margin-remove-bottom">
61
                      Register    </h3>
62
                    <div class="el-meta uk-margin uk-text-meta">Reach a wider audience around the world</div>
63
                    <div class="el-content uk-margin"><div>Register your literature or data repository, OA Journal, CRIS in OpenAIRE and be part of a global interlinked network.&nbsp;</div></div>
64
                  </div>
65
                </div>
66
              </div>
67
              <div>
68
                <div uk-scrollspy-class="" class="el-item uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" style="">
69
                  <a data-type="iframe" href="/www.cnn.com" class="el-link uk-position-cover uk-position-z-index uk-margin-remove-adjacent" data-caption="<h4 class='uk-margin-remove'>Enrich</h4>Our newly released OA Broker service offers a wealth of information on scholarly communication data.&nbsp;Find out what interests you and subscribe to enrich your records."></a>
70
                  <div class="uk-card-media-top"><img src="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/enrich_bw_3-1b487ba1.jpg" srcset="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/enrich_bw_3-32af51c0.jpg 640w,https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/enrich_bw_3-1b487ba1.jpg 800w" sizes="(min-width: 800px) 800px, 100vw" class="el-image" alt="" width="800"></div>
71
                  <div class="uk-card-body">
72
                    <h3 class="el-title uk-margin uk-h2 uk-margin-remove-adjacent uk-margin-remove-bottom">
73
                      Enrich    </h3>
74
                    <div class="el-meta uk-margin uk-text-meta">Improve your metadata.  Get more connections</div>
75
                    <div class="el-content uk-margin">Our newly released OA Broker service offers a wealth of information on scholarly communication data.&nbsp;Find out what interests you and subscribe to enrich your records.</div>
76
                  </div>
77
                </div>
78
              </div>
79
              <div>
80
                <div uk-scrollspy-class="" class="el-item uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" style="">
81
                  <a data-type="image" href="/images/Services/measure_bw_4.jpg" class="el-link uk-position-cover uk-position-z-index uk-margin-remove-adjacent" data-caption="<h4 class='uk-margin-remove'>Measure</h4>Participate in the Open Metrics service by sharing your usage data. Get the benefit of an aggregated environment to broaden the mechanisms for impact assesment.&nbsp;"></a>
82
                  <div class="uk-card-media-top"><img src="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/measure_bw_4-88ee2637.jpg" srcset="https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/measure_bw_4-0a65f376.jpg 640w,https://dl119.madgik.di.uoa.gr/templates/yootheme/cache/measure_bw_4-88ee2637.jpg 800w" sizes="(min-width: 800px) 800px, 100vw" class="el-image" alt="" width="800"></div>
83
                  <div class="uk-card-body">
84
                    <h3 class="el-title uk-margin uk-h2 uk-margin-remove-adjacent uk-margin-remove-bottom">
85
                      Measure    </h3>
86
                    <div class="el-meta uk-margin uk-text-meta">Open research impact empowers Open Science</div>
87
                    <div class="el-content uk-margin">Participate in the Open Metrics service by sharing your usage data. Get the benefit of an aggregated environment to broaden the mechanisms for impact assesment.&nbsp;</div>
88
                  </div>
89
                </div>
90
              </div>
91
            </div>
92

  
93
            <div class="uk-margin-medium uk-text-center uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" style="">
94
              <a class="el-content uk-button uk-button-secondary">
95
                Get Started
96
              </a>
97
            </div>
98
          </div>
99
        </div>
100
      </div>
101
    </div>
102
  </div>
103

  
104
  <div class="uk-section-default uk-section">
105
    <div class="uk-container">
106
      <div class="uk-grid-medium uk-margin-medium uk-grid" uk-grid="">
107
        <div class="uk-width-expand@m uk-first-column">
108
          <div class="uk-margin uk-panel">
109
            <h3 class="el-title uk-margin uk-h3 uk-heading-bullet uk-text-primary">
110
              Our community    </h3>
111
            <div class="el-content uk-margin uk-text-lead">800 literature repositories<br>200 OA Journals<br>50 data repositories<br>4 aggregators</div>
112
          </div>
113
          <hr class="uk-divider-small uk-text-left">
114
          <div class="uk-margin">
115
            <div>22,3 mi publications<br>6,000 datasets<br>1000 software</div>
116
            <div>1,200,000 usage events (2017)<br>330,000 metadata exchange events (2017)&nbsp;&nbsp;</div></div>
117
        </div>
118
        <div class="uk-width-expand@m">
119
          <h3 class="uk-h3 uk-heading-bullet uk-text-primary">
120
            Latest additions    </h3>
121
          <div class="uk-margin-remove-vertical uk-grid-match uk-child-width-1-1 uk-child-width-1-1@m uk-child-width-1-1@l uk-child-width-1-1@xl uk-grid-small uk-grid-divider uk-grid uk-grid-stack" uk-grid="">
122
            <div class="uk-first-column">
123
              <div class="el-item uk-panel">
124
                <h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
125
                  Cambridge Server    </h6>
126
                <div class="el-meta uk-margin uk-text-meta">Cambridge Uviversity</div>
127
                <div class="el-content uk-margin"><span class="uk-label">IR</span>&nbsp;<span class=" uk-label uk-label-warning">Literature</span>&nbsp;<span class="uk-label uk-label-success" style="background-color: orange!important;">OpenAIRE 2.0</span><br> 4567 publications</div>
128
              </div>
129
            </div>
130
            <div class="uk-grid-margin uk-first-column">
131
              <div class="el-item uk-panel">
132
                <h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
133
                  Cambridge Server    </h6>
134
                <div class="el-meta uk-margin uk-text-meta">Cambridge Uviversity</div>
135
                <div class="el-content uk-margin"><span class="uk-label">IR</span>&nbsp;<span class=" uk-label uk-label-warning">Literature</span>&nbsp;<span class="uk-label uk-label-success" style="background-color: orange!important;">OpenAIRE 2.0</span><br> 4567 publications</div>
136
              </div>
137
            </div>
138
          </div>
139
          <div class="uk-margin">
140
            <a class="el-content uk-button uk-button-text">
141
              View all
142
            </a>
143
          </div>
144
        </div>
145
        <div class="uk-width-expand@m">
146
          <h3 class="uk-margin-remove-top uk-h3 uk-heading-bullet">
147
            <span class="uk-text-background">Our data policies</span>
148
          </h3>
149
          <ul class="uk-margin-small uk-list uk-list-large">
150
            <li class="el-item">
151
              <h3 class="el-title uk-h3 uk-margin-remove">Data acquisition</h3>
152
              <div class="el-content">
153
                <a href="/www.cnn.com">How we retrieve data, how often, what processes it goes through (aggregating cleaning, trasnforming, inferring, de-duplicating), what are the quality checks&nbsp;along all&nbsp; data processing stages.</a>
154
              </div>
155
            </li>
156
            <li class="el-item">
157
              <h3 class="el-title uk-h3 uk-margin-remove">Data usage</h3>
158
              <div class="el-content">
159
                <a href="/www.cnn.com">Who is able to retrieve our data, what are the licences, what about specific SLAs.</a>
160
              </div>
161
            </li>
162
          </ul>
163
          <div class="uk-margin uk-margin-remove-bottom uk-text-left">
164
            <a class="el-content uk-link-text" href="/www.cnn.com" target="_blank">
165
              Learn more
166
            </a>
167
          </div>
168
        </div>
169
      </div>
170
    </div>
171
  </div>
172
  <div class="uk-section-default" uk-scrollspy="{&quot;target&quot;:&quot;[uk-scrollspy-class]&quot;,&quot;cls&quot;:&quot;uk-animation-fade&quot;,&quot;delay&quot;:false}">
173
    <div style="background-image: url('../../../assets/imgs/provide_2.jpg');" class="uk-background-norepeat uk-background-cover uk-background-center-center uk-background-fixed uk-section uk-section-small">
174
      <div class="uk-container">
175
        <div class="uk-grid-margin uk-grid uk-grid-stack" uk-grid="">
176
          <div class="uk-width-1-1@m">
177
          </div>
178
        </div>
179
        <div class="uk-grid-divider uk-margin-medium uk-grid" uk-grid="">
180
          <div class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match uk-first-column">
181
            <div id="page#37" class="uk-margin uk-text-center uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
182
              <h4 class="el-title uk-margin uk-h4">
183
                A Researcher?    </h4>
184
              <div class="el-content uk-margin uk-text-lead">Explore all OA research results. Link all your research. Build your profile</div>
185
              <p><a href="/www.cnn.com" class="el-link uk-button uk-button-default uk-button-small">OpenAIRE.EXPLORE</a></p>
186
            </div>
187
          </div>
188
          <div class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match">
189
            <div id="page#39" class="uk-margin uk-text-center uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
190
              <h4 class="el-title uk-margin uk-h4">
191
                A Research Administrator?    </h4>
192
              <div class="el-content uk-margin uk-text-lead">Use our monitoring services and easily track all relevant research results.</div>
193
              <p><a href="/www.cnn.com" class="el-link uk-button uk-button-default uk-button-small">OpenAIRE.MONITOR</a></p>
194
            </div>
195
          </div>
196
          <div class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match">
197
            <div id="page#41" class="uk-margin uk-text-center uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
198
              <h4 class="el-title uk-margin uk-h4">
199
                A Research community?    </h4>
200
              <div class="el-content uk-margin uk-text-lead">Use a trusted partner to share, link, disseminate and monitor your research.</div>
201
              <p><a href="/www.cnn.com" class="el-link uk-button uk-button-default uk-button-small">OpenAIRE.CONNECT</a></p>
202
            </div>
203
          </div>
204

  
205
          <div class="uk-width-expand@m uk-width-1-2@s uk-dark uk-grid-item-match">
206
            <div id="page#43" class="uk-margin uk-text-center uk-panel uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
207
              <h4 class="el-title uk-margin uk-h4">
208
                A Developer?    </h4>
209
              <div class="el-content uk-margin uk-text-lead">Get access to OpenAIRE data and capitalize on on Europe's open linked research</div>
210
              <p><a href="/www.cnn.com" class="el-link uk-button uk-button-default uk-button-small">OpenAIRE.DEVELOP</a></p>
211
            </div>
212
          </div>
213
        </div>
214
      </div>
215
    </div>
216
  </div>
217

  
218
</div>
219

  
220
<div *ngIf="getIsUserLoggedIn()" id="contentWrapper" class="tm-main uk-section uk-section-default" uk-height-viewport="expand: true" style="box-sizing: border-box;" >
221

  
222
  <div>
223
    <div class="uk-container">
224
      <div class="uk-grid uk-grid-stack">
225
        <div class="uk-width-expand@m">
226
          <div>
227
            <div class="gwt-HTML">
228
              <!-- MARGIN-TOP  -->
229
              <div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" aria-hidden="aria-hidden"></div>
230
              <div class="uk-width-1-1@m uk-first-column">
231
                <div class="uk-margin uk-grid-match uk-child-width-1-1 uk-child-width-1-2@m uk-grid-small uk-grid uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" uk-grid="" style="">
232
                  <div class="uk-first-column">
233
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
234
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent"  [routerLink]="['/sources','register']" uk-scroll=""></a>
235
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
236
                        <div class="uk-width-1-2@m uk-first-column">
237
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-153949408.jpg" >
238
                        </div>
239
                        <div>
240
                          <div>
241
                            <h3 class="el-title uk-margin uk-card-title">Register</h3>
242
                            <div class="el-content uk-margin">
243
                              Register data sources in the OpenAIRE infrastructure
244
                            </div>
245
                          </div>
246
                        </div>
247
                      </div>
248
                    </div>
249
                  </div>
250
                  <div>
251
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
252
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent" [routerLink]="['/compatibility','validate']" uk-scroll=""></a>
253
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
254
                        <div class="uk-width-1-2@m uk-first-column">
255
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-516286898.jpg" >
256
                        </div>
257
                        <div>
258
                          <div>
259
                            <h3 class="el-title uk-margin uk-card-title">Validate</h3>
260
                            <div class="el-content uk-margin">
261
                              Validate data sources against OpenAIRE guidelines
262
                            </div>
263
                          </div>
264
                        </div>
265
                      </div>
266
                    </div>
267
                  </div>
268
                  <div class="uk-grid-margin uk-first-column">
269
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
270
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent" [routerLink]="['/content','notifications']" uk-scroll=""></a>
271
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
272
                        <div class="uk-width-1-2@m uk-first-column">
273
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-466267165.jpg" >
274
                        </div>
275
                        <div>
276
                          <div>
277
                            <h3 class="el-title uk-margin uk-card-title">Notifications</h3>
278
                            <div class="el-content uk-margin">
279
                              View notifications to enrich the metadata and the content
280
                            </div>
281
                          </div>
282
                        </div>
283
                      </div>
284
                    </div>
285
                  </div>
286
                  <div class="uk-grid-margin">
287
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
288
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent" uk-scroll="" [routerLink]="['/getImpact']"></a>
289
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
290
                        <div class="uk-width-1-2@m uk-first-column">
291
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-659630328.jpg" >
292
                        </div>
293
                        <div>
294
                          <div>
295
                            <h3 class="el-title uk-margin uk-card-title">Metrics</h3>
296
                            <div class="el-content uk-margin">
297
                              View aggregated, cleaned usage statistics for repository access
298
                            </div>
299
                          </div>
300
                        </div>
301
                      </div>
302
                    </div>
303
                  </div>
304
                </div>
305
              </div>
306
            </div>
307
          </div>
308
        </div>
309
      </div>
310
    </div>
311
  </div>
312
</div>
modules/uoa-repository-dashboard-gui/trunk/app/pages/home/home.component.ts
1
import { Component, OnInit } from '@angular/core';
2
import { AuthenticationService } from '../../services/authentication.service';
3

  
4

  
5
@Component ({
6
  selector: 'app-home',
7
  templateUrl: 'home.component.html'
8
})
9

  
10
export class HomeComponent implements OnInit {
11

  
12
  constructor(private authService: AuthenticationService) { }
13

  
14
  ngOnInit() {}
15

  
16
  login() {
17
    this.authService.loginWithState();
18
  }
19

  
20
  getIsUserLoggedIn() {
21
    return this.authService.getIsUserLoggedIn();
22
  }
23
}
modules/uoa-repository-dashboard-gui/trunk/app/shared/reusablecomponents/forms/my-choice.interface.ts
1
/**
2
 * Created by stefanos on 15/5/2017.
3
 */
4
import { FormGroup } from "@angular/forms";
5
import { Component, ComponentFactoryResolver, Injector, Input, Type, ViewChild, ViewContainerRef } from "@angular/core";
6
import { MyFormDirective } from "./my-form.directive";
7
import { MyGroup } from "./my-group.interface";
8
import { MyWrapper } from "./my-wrapper.interface";
9
import { Subject } from "rxjs/Subject";
10
import { Description } from '../../../domain/oa-description';
11

  
12

  
13
@Component({
14
  selector : 'form-choice',
15
  template : `
16
<form-inline [description]="{label : 'Choose'}" [params]="null">
17
    <div class="uk-margin uk-grid-small uk-child-width-auto">
18
        <label *ngFor="let radio of radioButton">
19
            <input type="radio" name="{{uniqueId}}" class="uk-radio" [checked]="radio === radioButtonSelected"
20
            (click)="changeType(radio)">
21
            {{radio}}
22
        </label>
23
    </div>
24
</form-inline>
25
<div [formGroup]="parentGroup">
26
    <ng-template my-form></ng-template>
27
</div>
28
`,
29
  styleUrls : ['']
30

  
31
})
32
export class MyChoice extends MyGroup {
33

  
34
  @Input() public components : MyChoiceComponents[];
35

  
36
  wrapper : Type<MyWrapper> = MyChoiceWrapper;
37

  
38
  @ViewChild(MyFormDirective) protected formComponents: MyFormDirective;
39

  
40
  protected _cfr : ComponentFactoryResolver;
41

  
42
  protected viewContainerRef : ViewContainerRef;
43

  
44
  arrayData_ : Subject<any>[] = [];
45
  wrapperViews : {[key : string] : MyChoiceWrapper} = {};
46

  
47
  radioButton : string[] = [];
48

  
49
  radioButtonSelected : string;
50

  
51
  registerGroup_ : FormGroup;
52

  
53
  uniqueId : string = Math.random().toString(36).substring(2);
54

  
55
  constructor(injector : Injector) {
56
    super(injector);
57
    this._cfr = injector.get(ComponentFactoryResolver);
58
  }
59

  
60
  protected createView(component : MyChoiceComponents,index : number) : void {
61
    console.log(component);
62
    let componentFactory = this._cfr.resolveComponentFactory(component.component);
63
    let wrapperFactory = this._cfr.resolveComponentFactory(this.wrapper);
64
    let wrapperView = wrapperFactory.create(this.viewContainerRef.injector);
65
    let componentView = componentFactory.create(this.viewContainerRef.injector);
66

  
67
    (<MyGroup>componentView.instance).index = this.viewContainerRef.length;
68
    (<MyGroup>componentView.instance).required = this.required;
69
    (<MyGroup>componentView.instance).data = this.data;
70
    this.arrayData_.push((<MyGroup>componentView.instance).patchData);
71
    (<MyGroup>componentView.instance).description = component.description;
72
    let arrayGroup = (<MyGroup>componentView.instance).generate();
73

  
74
    (<MyGroup>componentView.instance).parentGroup = arrayGroup as FormGroup;
75
    (<MyChoiceWrapper>wrapperView.instance).component = componentView.hostView;
76
    (<MyChoiceWrapper>wrapperView.instance).viewRef = wrapperView.hostView;
77
    (<MyChoiceWrapper>wrapperView.instance).description = this.description;
78
    (<MyChoiceWrapper>wrapperView.instance).hidden = (index != 0);
79
    (<MyChoiceWrapper>wrapperView.instance).first = this.viewContainerRef.length == 0;
80

  
81
    let registerGroup : FormGroup = this.parentGroup as FormGroup;
82
    if(this.name) {
83
      registerGroup = this.parentGroup.get(this.name as string) as FormGroup;
84
    }
85

  
86
    this.registerGroup_.registerControl(component.name, arrayGroup);
87
    if(index != 0) {
88
      setTimeout(() => {
89
        console.log(component);
90
        registerGroup.get(component.name).disable();
91
      },500)
92
    }
93
    // (<FormArray>this.parentGroup.controls[this.name]).push(arrayGroup);
94
    this.wrapperViews[component.name] = wrapperView.instance as MyChoiceWrapper;
95
    this.viewContainerRef.insert(wrapperView.hostView);
96
  }
97

  
98
  ngOnInit(): void {
99
    // super.ngOnInit();
100
    this.components.forEach(c => this.radioButton.push(c.description.label));
101
    this.radioButtonSelected = this.radioButton[0];
102
    this.viewContainerRef = this.formComponents.viewContainerRef;
103
    //if there is no name, register with the children's control
104
    if(this.name) {
105
      (<FormGroup>this.parentGroup).addControl(this.name as string, this._fb.group({}));
106
      this.registerGroup_ = this.parentGroup.get(this.name as string) as FormGroup;
107
    } else {
108
      this.registerGroup_ = this.parentGroup as FormGroup;
109
    }
110
    this.components.forEach((item,index) => {
111
      this.createView(item,index);
112
    });
113

  
114
    this.registerGroup_.patchValue = this.patchValue();
115

  
116
  }
117

  
118
  changeType(radio : string) {
119
    let newSelected : string  = this.components[this.radioButton.indexOf(radio)].name;
120
    let currentSelected : string  = this.components[this.radioButton.indexOf(this.radioButtonSelected)].name;
121
    (this.registerGroup_.get(currentSelected) as FormGroup).disable();
122
    (this.registerGroup_.get(newSelected) as FormGroup).enable();
123
    this.wrapperViews[currentSelected].hidden = true;
124
    this.wrapperViews[newSelected].hidden = false;
125
    this.radioButtonSelected = radio;
126
  }
127

  
128
  protected patchValue() {
129
    let self = this;
130
    return (value: {[key: string]: any}, {onlySelf, emitEvent}: {onlySelf?: boolean, emitEvent?: boolean} = {}) => {
131
      Object.keys(value).forEach(v => {
132
        if (v != null) {
133
          let component = self.components.find(component => component.name == v);
134
          self.changeType(component.description.label);
135
          self.registerGroup_.get(v).patchValue(value[v]);
136
          console.log(value[v]);
137
        }
138
      });
139
    };
140
  }
141
}
142

  
143
@Component({
144
  selector : 'form-choice-wrapper',
145
  template : `
146
<div class="uk-grid uk-margin" [hidden]="hidden">
147
    <div class="uk-width-5-6">
148
        <ng-template my-form></ng-template>
149
    </div>
150
</div>
151
`,
152
  styleUrls : ['']
153

  
154
})
155
export class MyChoiceWrapper extends MyWrapper {
156
  @Input()
157
  public hidden = false;
158
}
159

  
160
export class MyChoiceComponents {
161
  public component : Type<MyGroup>;
162
  public name : string;
163
  public description : Description;
164

  
165
  constructor(name : string , component : Type<MyGroup>,description : Description) {
166
    this.component = component;
167
    this.name = name;
168
    this.description = description;
169

  
170
  }
171
}
modules/uoa-repository-dashboard-gui/trunk/app/pages/adminPg/adminPg-metrics.component.html
4 4
    <h1 class="uk-h2">Metrics Admin</h1>
5 5

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

  
11 11
    <div class="uk-container uk-margin-medium-top uk-margin-medium-bottom">
12 12
      <div class="uk-grid">
13 13

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

  
19 19
        <!-- MIDDLE -->
20 20
        <div class="uk-width-expand@m">
......
64 64
        </div>
65 65

  
66 66
        <!-- RIGHT HELP CONTENT -->
67
<!--        <aside-help-content #rightHelperContent [position]="'right'"
67
        <aside-help-content #rightHelperContent [position]="'right'"
68 68
                            [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
69
        </aside-help-content>-->
69
        </aside-help-content>
70 70

  
71 71
      </div>
72 72
    </div>
......
86 86
                     [confirmActionButton]="modalButton" (emitObject)="confirmedApproval($event)">
87 87
  Are you sure you want to validate the selected piwik site(s)?
88 88
</confirmation-dialog>
89

  
90
<!--   *** OLD HTML ***
91

  
92
<div class="uk-grid uk-grid-stack">
93
  <div class="uk-width-expand@m uk-first-column">
94
    <div class="uk-margin-medium-bottom">
95
      <h1 class="uk-article-title">Metrics Admin</h1>
96
    </div>
97
    <div class="">
98
      <div class="uk-width-1-1@m uk-first-column uk-margin-medium-bottom">
99
        <div class="uk-overflow-auto uk-scrollspy-inview uk-animation-slide-top-medium">
100
          <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
101
          <div *ngIf="loadingMessage" class="loading-big">
102
            <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
103
              {{ loadingMessage }}
104
            </div>
105
            <div class="whiteFilm"></div>
106
          </div>
107
          <div>
108
            <table class="uk-table uk-table-striped uk-table-middle" style="font-size: 12px">
109
              <thead>
110
                <tr>
111
                  <th class="uk-text-nowrap">Repository</th>
112
                  <th class="uk-text-nowrap">Piwik site</th>
113
                  <th class="uk-text-nowrap">Requested on</th>
114
                  <th class="uk-text-nowrap">Requestor</th>
115
                  <th class="uk-text-nowrap">Validated</th>
116
                  <th class="uk-text-nowrap">Actions</th>
117
                </tr>
118
              </thead>
119
              <tbody>
120
                <tr class="el-item" *ngFor="let piwik of piwiks">
121
                  <td class="uk-table-shrink">{{ piwik.repositoryName }}<br>(ID: {{ piwik.repositoryId }})</td>
122
                  <td class="uk-table-shrink">ID: {{ piwik.siteId }}<br>Authentication Token: {{ piwik.authenticationToken }}</td>
123
                  <td class="uk-text-nowrap uk-table-shrink">{{ piwik.creationDate | date : "yyyy-mm-dd" }}</td>
124
                  <td class="uk-text-nowrap uk-table-shrink">{{ piwik.requestorName }}<br>{{ piwik.requestorEmail }}</td>
125
                  <td class="uk-text-nowrap uk-table-shrink">
126
                    <span *ngIf="piwik.validated">YES<br>on {{ piwik.validationDate | date : "yyyy-mm-dd" }}</span>
127
                    <span *ngIf="!piwik.validated">NO</span>
128
                  </td>
129
                  <td class="uk-text-nowrap uk-table-shrink">
130
                    <button id="{{ piwik.repositoryId }}" *ngIf="!piwik.validated" class="uk-button uk-button-primary validate" (click)="confirmApproval(piwik.repositoryId)">Validate</button>
131
                  </td>
132
                </tr>
133
              </tbody>
134
            </table>
135
          </div>
136
        </div>
137
      </div>
138
    </div>
139
  </div>
140
</div>
141
-->
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-register/sr-journal.component.html
4 4
    <h1 class="uk-h2">Register your datasource</h1>
5 5

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

  
11 11
    <div class="uk-container uk-margin-medium-top uk-margin-medium-bottom">
12 12
      <div class="uk-grid">
13 13

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

  
19 19
        <!-- MIDDLE -->
20 20
        <div class=" uk-width-expand@m">
......
113 113

  
114 114
  </div>
115 115
</div>
116

  
117
<!--  *** OLD HTML ***
118

  
119
<div class="uk-grid uk-grid-stack">
120
  <div class="uk-width-expand@m uk-first-column">
121
    <div class="uk-margin-medium-bottom">
122
      <h1 class="uk-article-title">Register your datasource</h1>
123
    </div>
124
    <div class="wizard">
125
      <div class="wizardBreadcrumbs">
126
        <div class="steps clearfix">
127
          <div class="step active">
128
            <div>
129
              Enter Information
130
              <span></span>
131
            </div>
132
          </div>
133
          <div class="step {{step2}}">
134
            <div>
135
              Add Interfaces
136
              <span></span>
137
            </div>
138
          </div>
139
          <div class="step {{step3}}">
140
            <div>
141
              Finish
142
              <span></span>
143
            </div>
144
          </div>
145
        </div>
146
      </div>
147
      <div class="content">
148
        <div>
149
          <div class="animated fadeInRight stepContent">
150
            <div>
151
              <datasource-create-form *ngIf="showForm"
152
                                 #registerJournal
153
                                 (emittedInfo)="getCurrentRepo($event)"></datasource-create-form>
154

  
155
              <div *ngIf="showInterfaces">
156
                <form *ngIf="repo" [formGroup]="group">
157
                  <form-repeat [component]="addDatasourceInterfaces"
158
                               [parentGroup]="group"
159
                               [description]="interfaceFormDesc"
160
                               [name]="'repository-interfaces'"
161
                               [otherData]="repo">
162
                  </form-repeat>
163
                </form>
164
              </div>
165
              <div *ngIf="showFinish" class="row openAIRECompliantLogoDownload">
166
                <div class="col-lg-12">
167
                  <div class="col-md-12">
168
                    <div class="gwt-HTML">
169
                      <div class="openAIRECompliantLogo">
170
                        <h2 class="openAIRECompliantLogoMessage">
171
                          Congratulations! Your repository was successfully registered in OpenAIRE. You can download this logo to use in your site.
172
                        </h2>
173
                        <img src="assets/imgs/3_0ValidatedLogo.png" alt="OpenAireCompliant">
174
                      </div>
175
                    </div>
176
                    <a>
177
                      Download
178
                      <i class="fa fa-download" style=""></i>
179
                    </a>
180
                  </div>
181
                </div>
182
              </div>
183
            </div>
184
          </div>
185
        </div>
186
      </div>
187
      <div class="wizardActions">
188
        <button *ngIf="!showForm" class="uk-button uk-button-grey-light" type="button" (click)="moveBackAStep()">
189
          <i class="fa fa-angle-double-left"></i>
190
          Back
191
        </button>
192
        <button *ngIf="!showFinish" class="uk-button uk-button-grey-light" type="button" (click)="moveAStep()">
193
          Next
194
          <i class="fa fa-angle-double-right"></i>
195
        </button>
196
      </div>
197
    </div>
198
  </div>
199
  <div class="tm-sidebar uk-width-1-4@m">
200
    <div>
201
      <div class="uk-card uk-card-body uk-card-default sidemenu">
202
        <h3 class="el-title uk-h3 uk-heading-bullet">Info</h3>
203
        <p class="small">
204
          Use the form on the right to add your repository or journal in OpenAIRE. If you want to find more information about this process
205
          &lt;!&ndash; TARGET FILE MISSING! jsps/manuals/user-manual.pdf &ndash;&gt;
206
          <a target="_blank" href="#">click here</a>
207
          .
208
        </p>
209
        <div class="uk-alert uk-alert-default small">
210
          The official repository/journal administrator (his/her email address being retrieved from the OAI-PMH verb
211
          <b>Identify</b>
212
          ) will be contacted and informed about registration request. So please make sure that you are either this person or have access to the email address, or that you have notified them.
213
        </div>
214
        <p class="small">
215
          For any problems or questions please contact the
216
          <a class="external" target="_blank" href="https://www.openaire.eu/support/helpdesk" >
217
            OpenAIRE helpdesk
218
          </a>
219
          .
220
        </p>
221
      </div>
222
    </div>
223
  </div>
224

  
225
</div>
226
-->
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-register/register-datasource-shareable.component.html
23 23
                </div>
24 24
                <div class="form-group">
25 25
                  <label class="control-label">Start typing in the name of your repository to narrow down the view</label>
26
                  <input [(ngModel)]="searchBox" id="search" class="form-control" type="text" [disabled]="(!hasSelectedCountry)" />
26
                  <input id="search" class="form-control" type="text" [disabled]="(!hasSelectedCountry)" />
27 27
                </div>
28 28
              </div>
29 29
              <div *ngIf="selectedCountry">
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-register/sr-aggregator.component.html
83 83
              </div>
84 84
            </div>
85 85
            <div class="wizardActions">
86
              <button *ngIf="!showRepositories" class="uk-button uk-button-grey-light" type="button" (click)="moveBackAStep()">
86
              <button *ngIf="!showForm" class="uk-button uk-button-grey-light" type="button" (click)="moveBackAStep()">
87 87
                <i class="fa fa-angle-double-left"></i>
88 88
                Back
89 89
              </button>
......
113 113

  
114 114
  </div>
115 115
</div>
116

  
117
<!--   *** OLD HTML ***
118

  
119
<div class="uk-grid uk-grid-stack">
120
  <div class="uk-width-expand@m uk-first-column">
121
    <div class="uk-margin-medium-bottom">
122
      <h1 class="uk-article-title">Register your datasource</h1>
123
    </div>
124
    <div class="wizard">
125
      <div class="wizardBreadcrumbs">
126
        <div class="steps clearfix">
127
          <div class="step active">
128
            <div>
129
              Enter Information
130
              <span></span>
131
            </div>
132
          </div>
133
          <div class="step {{ step2 }}">
134
            <div>
135
              Add Interfaces
136
              <span></span>
137
            </div>
138
          </div>
139
          <div class="step {{ step3 }}">
140
            <div>
141
              Finish
142
              <span></span>
143
            </div>
144
          </div>
145
        </div>
146
      </div>
147
      <div class="content">
148
        <div>
149
          <div class="animated fadeInRight stepContent">
150
            <div>
151
              <datasource-create-form *ngIf="showForm"
152
                                    #registerAggregator
153
                                    (emittedInfo)="getCurrentRepo($event)"></datasource-create-form>
154

  
155
              <div *ngIf="showInterfaces && repo">
156
                <form [formGroup]="group">
157
                  <form-repeat [component]="addDatasourceInterfaces"
158
                               [parentGroup]="group"
159
                               [description]="interfaceFormDesc"
160
                               [name]="'repository-interfaces'"
161
                               [otherData]="repo">
162
                  </form-repeat>
163
                </form>
164
              </div>
165
              <div *ngIf="showFinish" class="row openAIRECompliantLogoDownload">
166
                <div class="col-lg-12">
167
                  <div class="col-md-12">
168
                    <div class="gwt-HTML">
169
                      <div class="openAIRECompliantLogo">
170
                        <h2 class="openAIRECompliantLogoMessage">
171
                          Congratulations! Your repository was successfully registered in OpenAIRE. You can download this logo to use in your site.
172
                        </h2>
173
                        <img src="assets/imgs/3_0ValidatedLogo.png" alt="OpenAireCompliant">
174
                      </div>
175
                    </div>
176
                    <a>
177
                      Download
178
                      <i class="fa fa-download" style=""></i>
179
                    </a>
180
                  </div>
181
                </div>
182
              </div>
183
            </div>
184
          </div>
185
        </div>
186
      </div>
187
      <div class="wizardActions">
188
        <button *ngIf="!showRepositories" class="uk-button uk-button-grey-light" type="button" (click)="moveBackAStep()">
189
          <i class="fa fa-angle-double-left"></i>
190
          Back
191
        </button>
192
        <button *ngIf="!showFinish" class="uk-button uk-button-grey-light" type="button" (click)="moveAStep()">
193
          Next
194
          <i class="fa fa-angle-double-right"></i>
195
        </button>
196
      </div>
197
    </div>
198
  </div>
199
  <div class="tm-sidebar uk-width-1-4@m">
200
    <div>
201
      <div class="uk-card uk-card-body uk-card-default sidemenu">
202
        <h3 class="el-title uk-h3 uk-heading-bullet">Info</h3>
203
        <p class="small">
204
          Use the form on the right to add your repository or journal in OpenAIRE. If you want to find more information about this process
205
          &lt;!&ndash; TARGET FILE MISSING! jsps/manuals/user-manual.pdf &ndash;&gt;
206
          <a target="_blank" href="#">click here</a>
207
          .
208
        </p>
209
        <div class="uk-alert uk-alert-default small">
210
          The official repository/journal administrator (his/her email address being retrieved from the OAI-PMH verb
211
          <b>Identify</b>
212
          ) will be contacted and informed about registration request. So please make sure that you are either this person or have access to the email address, or that you have notified them.
213
        </div>
214
        <p class="small">
215
          For any problems or questions please contact the
216
          <a class="external" target="_blank" href="https://www.openaire.eu/support/helpdesk" >
217
            OpenAIRE helpdesk
218
          </a>
219
          .
220
        </p>
221
      </div>
222
    </div>
223
  </div>
224
</div>
225
-->
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-forms/datasource-create-form.component.html
101 101
           (focus)="group.get('adminEmail').markAsUntouched()"
102 102
           (blur)="group.get('adminEmail').updateValueAndValidity()">
103 103
  </form-inline>
104
  <div *ngIf="showButton" class="form-group">
105
    <button class="uk-button uk-button-primary updateRepoInfoButton" type="button" (click)="registerDatasource()">Update Information</button>
106
  </div>
107 104
</form>
modules/uoa-repository-dashboard-gui/trunk/app/app.component.ts
15 15
  constructor(private router: Router,private authService: AuthenticationService) {
16 16

  
17 17
    // URL of the SPA to redirect the user to after login
18
    this.authService.redirectUrl = "/home";
18
    this.authService.redirectUrl = "/dashboard";
19 19

  
20 20
    this.authService.tryLogin();
21 21
  }
modules/uoa-repository-dashboard-gui/trunk/app/pages/sources/sources-forms/datasource-update-form.component.ts
48 48
  datasourceClasses: Map<string,string> = new Map<string,string>();
49 49
  classCodes: string[] = [];
50 50

  
51
  isModalShown: boolean;
51 52
  @ViewChild('updateLogoUrlModal')
52 53
  public updateLogoUrlModal: ConfirmationDialogComponent;
53 54

  
......
332 333
    this.updateLogoUrlModal.showModal();
333 334
  }
334 335

  
335
  updatedLogoUrl() {
336
  updatedLogoUrl(event: any) {
336 337
    this.emittedUrl.emit(this.updateGroup.get('logoUrl').value);
337 338
  }
338 339

  
modules/uoa-repository-dashboard-gui/trunk/app/pages/metrics/metrics-enable.component.ts
80 80
    }
81 81
  }
82 82

  
83
  confirmedEnabling() {
83
  confirmedEnabling(event : any) {
84 84
    if (this.repo) {
85 85
      this.loadingMessage = enablingMetrics;
86 86
      let piwik: PiwikInfo = {
modules/uoa-repository-dashboard-gui/trunk/app/pages/metrics/metrics-enable.component.html
10 10
        <h1 class="uk-h2">Metrics</h1>
11 11

  
12 12
        <!-- TOP HELP CONTENT -->
13
<!--        <help-content #topHelperContent [position]="'top'"
13
        <help-content #topHelperContent [position]="'top'"
14 14
                      [ngClass]="topHelperContent.isPresent()?'uk-margin-medium-top uk-margin-medium-bottom':'clear-style'">
15
        </help-content>-->
15
        </help-content>
16 16

  
17 17
        <div class="uk-container uk-margin-medium-top uk-margin-medium-bottom">
18 18
          <div class="uk-grid">
19 19

  
20 20
            <!-- LEFT HELP CONTENT -->
21
<!--            <aside-help-content #leftHelperContent [position]="'left'"
21
            <aside-help-content #leftHelperContent [position]="'left'"
22 22
                                [ngClass]="leftHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
23
            </aside-help-content>-->
23
            </aside-help-content>
24 24

  
25 25
            <!-- MIDDLE -->
26 26
            <div class=" uk-width-expand@m">
......
87 87
                     [confirmActionButton]="modalButton" (emitObject)="confirmedEnabling($event)">
88 88
  Are you sure you want to enable metrics for this repository?
89 89
</confirmation-dialog>
90

  
91
<!--   *** OLD HTML ***
92

  
93
<div id="contentWrapper"
94
     class="tm-main uk-section uk-section-default"
95
     uk-height-viewport="expand: true"
96
     style="box-sizing: border-box;" >
97

  
98
  &lt;!&ndash; MARGIN-TOP  &ndash;&gt;
99
  <div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" aria-hidden="true"></div>
100

  
101
  <div>
102
    <div class="uk-container">
103
      <div class="uk-grid uk-grid-stack">
104
        <div class="uk-width-expand@m uk-first-column">
105
          <div class="gwt-HTML uk-margin-medium-bottom">
106
            <h1 class="uk-article-title">Metrics</h1>
107
          </div>
108
          <div>
109
            <div *ngIf="successMessage" class="uk-alert uk-alert-success">{{ successMessage }}</div>
110
            <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{ errorMessage }}</div>
111
            <div *ngIf="loadingMessage" class="loading-big">
112
              <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">
113
                {{ loadingMessage }}
114
              </div>
115
              <div class="whiteFilm"></div>
116
            </div>
117
            <div *ngIf="repo">
118
              <div class="gwt-HTML">
119
                <h4>You don't have metrics enabled for this repository yet. Would you like to enable them?</h4>
120
                <p><img src="assets/imgs/metricsWorkflow-new.svg"
121
                    style="display:block; margin: 0 auto;"
122
                    width="50%"></p>
123
                <p>Once you select to enable metrics for your repository, the following steps need to be performed:</p>
124
                <p><i>On your side</i><br>
125
                          1. Download the tracking code for your repository platform<br>
126
                          2. Configure the tracking code according to the instructions<br>
127
                          3. Deploy the tracking code in your repository platform
128
                </p>
129
                <p><i>On the OpenAIRE's side</i><br>
130
                      4. Validate the installation of the tracking code and inform the repository manager accordingly<br>
131
                </p>
132
                <div class="uk-alert uk-alert-info">
133
                  For more details about the workflows and tools please consult the
134
                  <a target="_blank" href="http://beta.repomanager.openaire.eu/pdf/OpenAIRE_usage_stats_Guidelinesv1.pdf">
135
                    “Guidelines for Collecting Usage Events and Provision of Usage Statistics”
136
                  </a>
137
                  .
138
                </div>
139
                <button class="uk-button uk-button-primary" (click)="confirmEnabling()">Enable Metrics</button>
140
              </div>
141
            </div>
142
          </div>
143
        </div>
144
        <div class="tm-sidebar uk-width-1-4@m">
145
          <div class="gwt-HTML">
146
            <div class="uk-card uk-card-body uk-card-default sidemenu">
147
              <h3>Info</h3>
148
              <p>
149
                This page provides you with information about views and downloads of items in your datasource.
150
              </p>
151
              <p>
152
                The indicators are:
153
              </p>
154
              <ul>
155
                <li>
156
                  <strong>views</strong>
157
                  of your datasource items
158
                  <strong> in the OpenAIRE portal</strong>
159
                </li>
160
                <li>
161
                  <strong>views of items</strong>
162
                  tracked from your datasource
163
                </li>
164
                <li>
165
                  <strong>number of downloads</strong>
166
                  tracked from your datasource
167
                </li>
168
              </ul>
169
            </div>
170
          </div>
171
        </div>
172
      </div>
173
    </div>
174
  </div>
175
</div>
176
-->
modules/uoa-repository-dashboard-gui/trunk/app/pages/dashboard/dashboard.component.html
1
<div *ngIf="getIsUserLoggedIn()" id="contentWrapper" class="tm-main uk-section uk-section-default" uk-height-viewport="expand: true" style="box-sizing: border-box;" >
2

  
3
  <div>
4
    <div class="uk-container">
5
      <div class="uk-grid uk-grid-stack">
6
        <div class="uk-width-expand@m">
7
          <div>
8
            <div class="gwt-HTML">
9
              <!-- MARGIN-TOP  -->
10
              <div class="uk-sticky-placeholder" style="height: 84px; margin: 0px;" aria-hidden="aria-hidden"></div>
11
              <div class="uk-width-1-1@m uk-first-column">
12
                <div class="uk-margin uk-grid-match uk-child-width-1-1 uk-child-width-1-2@m uk-grid-small uk-grid uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" uk-grid="" style="">
13
                  <div class="uk-first-column">
14
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
15
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent"  [routerLink]="['/sources','register']" uk-scroll=""></a>
16
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
17
                        <div class="uk-width-1-2@m uk-first-column">
18
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-153949408.jpg" >
19
                        </div>
20
                        <div>
21
                          <div>
22
                            <h3 class="el-title uk-margin uk-card-title">Register</h3>
23
                            <div class="el-content uk-margin">
24
                              Register data sources in the OpenAIRE infrastructure
25
                            </div>
26
                          </div>
27
                        </div>
28
                      </div>
29
                    </div>
30
                  </div>
31
                  <div>
32
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
33
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent" [routerLink]="['/compatibility','validate']" uk-scroll=""></a>
34
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
35
                        <div class="uk-width-1-2@m uk-first-column">
36
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-516286898.jpg" >
37
                        </div>
38
                        <div>
39
                          <div>
40
                            <h3 class="el-title uk-margin uk-card-title">Validate</h3>
41
                            <div class="el-content uk-margin">
42
                              Validate data sources against OpenAIRE guidelines
43
                            </div>
44
                          </div>
45
                        </div>
46
                      </div>
47
                    </div>
48
                  </div>
49
                  <div class="uk-grid-margin uk-first-column">
50
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
51
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent" [routerLink]="['/content','notifications']" uk-scroll=""></a>
52
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
53
                        <div class="uk-width-1-2@m uk-first-column">
54
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-466267165.jpg" >
55
                        </div>
56
                        <div>
57
                          <div>
58
                            <h3 class="el-title uk-margin uk-card-title">Notifications</h3>
59
                            <div class="el-content uk-margin">
60
                              View notifications to enrich the metadata and the content
61
                            </div>
62
                          </div>
63
                        </div>
64
                      </div>
65
                    </div>
66
                  </div>
67
                  <div class="uk-grid-margin">
68
                    <div class="el-item uk-card uk-card-hover uk-card-body uk-scrollspy-inview uk-animation-fade" uk-scrollspy-class="" style="">
69
                      <a class="el-link uk-position-cover uk-margin-remove-adjacent" uk-scroll="" [routerLink]="['/getImpact']"></a>
70
                      <div class="uk-child-width-expand uk-flex-middle uk-grid" uk-grid="">
71
                        <div class="uk-width-1-2@m uk-first-column">
72
                          <img  class="el-image uk-border-rounded" src="./assets/imgs/iStock-659630328.jpg" >
73
                        </div>
74
                        <div>
75
                          <div>
76
                            <h3 class="el-title uk-margin uk-card-title">Metrics</h3>
77
                            <div class="el-content uk-margin">
78
                              View aggregated, cleaned usage statistics for repository access
79
                            </div>
80
                          </div>
81
                        </div>
82
                      </div>
83
                    </div>
84
                  </div>
85
                </div>
86
              </div>
87
            </div>
88
          </div>
89
        </div>
90
      </div>
91
    </div>
92
  </div>
93
</div>
modules/uoa-repository-dashboard-gui/trunk/app/pages/dashboard/dashboard.component.ts
1
import {AuthenticationService} from "../../services/authentication.service";
2
import {Component, OnInit} from "@angular/core";
3

  
4
@Component ({
5
  selector: 'dashboard',
6
  templateUrl: 'dashboard.component.html'
7
})
8

  
9
export class DashboardComponent implements OnInit {
10

  
11
  constructor(private authService: AuthenticationService) { }
12

  
13
  ngOnInit() {}
14

  
15
  login() {
16
    this.authService.loginWithState();
17
  }
18

  
19
  getIsUserLoggedIn() {
20
    return this.authService.getIsUserLoggedIn();
21
  }
22
}
modules/uoa-repository-dashboard-gui/trunk/app/pages/compatibility/compatibility-validate.component.html
4 4
    <h1 class="uk-h2">Validate your datasource</h1>
5 5

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

  
11 11
    <div class="uk-container uk-margin-medium-top uk-margin-medium-bottom">
12 12
      <div class="uk-grid">
13 13

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

  
19 19
        <!-- MIDDLE -->
20 20
        <div class=" uk-width-expand@m">
......
82 82

  
83 83
  </div>
84 84
</div>
85

  
86

  
87

  
88
<div class="uk-grid uk-grid-stack">
89
  <div class="uk-width-expand@m uk-first-column">
90
    <div class="uk-margin-medium-bottom">
91
      <h1 class="uk-article-title">Validate your datasource</h1>
92
    </div>
93
    <div>
94
      <div class="uk-margin uk-grid repositoryTypeSelection">
95
        <div class="uk-width-expand@m uk-width-1-3@s uk-grid-item-match uk-first-column">
96
          <div class="uk-text-center uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" data-id="" style="">
97
            <a class="uk-position-cover uk-margin-remove-adjacent" [routerLink]="['literature']"></a>
98
            <div class="uk-card-media-top">
99
              <img src="assets/imgs/Literature_repos_wide.png" alt="" style="width:100%;">
100
            </div>
101
            <div class="uk-card-body">
102
              <h3 class="el-title uk-margin uk-card-title uk-margin-remove-adjacent uk-margin-small-bottom">
103
                Run compatibility test against the OpenAIRE literature guidelines.
104
              </h3>
105
            </div>
106
          </div>
107
        </div>
108
        <div class="uk-width-expand@m uk-width-1-3@s uk-grid-item-match uk-first-column">
109
          <div class="uk-text-center uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" data-id="" style="">
110
            <a class="el-link uk-position-cover uk-margin-remove-adjacent" [routerLink]="['data']"></a>
111
            <div class="uk-card-media-top">
112
              <img class="el-image" src="assets/imgs/Data_repos_wide.png" alt="" style="width:100%;">
113
            </div>
114
            <div class="uk-card-body">
115
              <h3 class="el-title uk-margin uk-card-title uk-margin-remove-adjacent uk-margin-small-bottom">
116
                Run compatibility test against the OpenAIRE Guidelines for Data Archives.
117
              </h3>
118
            </div>
119
          </div>
120
        </div>
121
        <div class="uk-width-expand@m uk-width-1-3@s uk-grid-item-match uk-first-column">
122
          <div class="uk-text-center uk-card uk-card-default uk-card-hover uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="" data-id="" style="">
123
            <a class="el-link uk-position-cover uk-margin-remove-adjacent" [routerLink]="['cris']"></a>
124
            <div class="uk-card-media-top">
125
              <img class="el-image" src="assets/imgs/CRIS_wide.png" alt="" style="width:100%;">
126
            </div>
127
            <div class="uk-card-body">
128
              <h3 class="el-title uk-margin uk-card-title uk-margin-remove-adjacent uk-margin-small-bottom">
129
                Run compatibility test against the OpenAIRE Guidelines for CRIS Managers based on CERIF-XML.
130
              </h3>
131
            </div>
132
          </div>
133
        </div>
134
      </div>
135
    </div>
136
  </div>
137
</div>
modules/uoa-repository-dashboard-gui/trunk/app/pages/content/content-events.component.html
25 25
        </div>
26 26

  
27 27
        <!-- RIGHT HELP CONTENT -->
28
        <aside-help-content #rightHelperContent [position]="'right'"
28
        <!--<aside-help-content #rightHelperContent [position]="'right'"
29 29
                            [ngClass]="rightHelperContent.isPresent()?'tm-sidebar uk-width-1-4@m uk-first-column':'clear-style'">
30
        </aside-help-content>
30
        </aside-help-content>-->
31 31

  
32 32
      </div>
33 33
    </div>
modules/uoa-repository-dashboard-gui/trunk/app/shared/reusablecomponents/repository-tiles.component.html
25 25
      </div>
26 26

  
27 27
      <!--TILES VIEW-->
28
      <div *ngIf="tilesView && reposOfUser.length" class="uk-grid-large uk-grid-margin-large uk-grid repos-grid">
29
        <div *ngFor="let repo of reposOfUser" class="uk-width-expand@m uk-first-column uk-margin-bottom" style="min-width: 300px;">
28
      <div *ngIf="tilesView && reposOfUser.length>0" class="uk-grid-large uk-grid-margin-large uk-grid repos-grid uk-height-1-1">
29
        <div *ngFor="let repo of reposOfUser" class="uk-width-expand@m uk-width-auto\@m uk-first-column uk-margin-bottom" style="min-width: 300px; max-width: 22%;">
30 30
          <div class="uk-margin uk-grid-match uk-child-width-1-1 uk-grid-small uk-grid-divider uk-grid uk-scrollspy-inview uk-animation-slide-top-medium uk-grid-stack">
31 31
            <div class="uk-first-column">
32
              <div>
33
                <a class="el-link" [routerLink]="[getLinkToNext(repo)]">
32
              <div class="">
33
                <a class="el-link uk-vertical-align-middle uk-height-1-1" [routerLink]="[getLinkToNext(repo)]">
34 34
                  <div class="el-item uk-panel uk-scrollspy-inview uk-animation-slide-top-medium" uk-scrollspy-class="">
35 35
                    <div class="uk-child-width-expand uk-grid-medium uk-flex-middle uk-grid uk-grid-stack" uk-grid="">
36
                      <div class="uk-width-1-3@m uk-first-column" style="width: 80px;">
36
                      <div class="uk-width-1-3@m uk-first-column" style="width: 90px;">
37 37
                        <img *ngIf="!repo.logoUrl" class="el-image uk-border-rounded" src="/assets/imgs/yourLogoHere.jpg" alt="">
38 38
                        <img *ngIf="repo.logoUrl" class="el-image uk-border-rounded" src="{{ repo.logoUrl }}" alt="">
39 39
                      </div>
......
55 55
      </div>
56 56

  
57 57
      <!-- LIST VIEW -->
58
      <div *ngIf="!tilesView && reposOfUser.length" class="uk-grid-large uk-grid-margin-large uk-grid repos-list">
58
      <div *ngIf="!tilesView && reposOfUser.length>0" class="uk-grid-large uk-grid-margin-large uk-grid repos-list">
59 59
        <div class="uk-width-1-1@m uk-first-column">
60 60
          <div class="uk-overflow-auto uk-scrollspy-inview uk-animation-slide-top-medium">
61 61
            <div>
modules/uoa-repository-dashboard-gui/trunk/app/domain/tempAPI.ts
5 5
export const loginUrl = 'http://194.177.192.121:8380/repomanager-service-dev/openid_connect_login';
6 6
/*export const loginUrl = 'http://195.134.66.230:8380/repomanager-service-dev/openid_connect_login';*/
7 7

  
8
export const appBaseUrl = 'http://194.177.192.121:3000';
8
export const helpServiceUrl = 'http://194.177.192.121:5555';
9

  
10
export const appBaseUrl = 'http://194.177.192.121:1234';
modules/uoa-repository-dashboard-gui/trunk/app/app.routing.ts
1 1

  
2 2
import {NgModule} from "@angular/core";
3 3
import {RouterModule, Routes} from "@angular/router";
4
import {HomeComponent} from './pages/home/home.component';
4
import {LandingComponent} from "./pages/landing/landing.component";
5
import {DashboardComponent} from "./pages/dashboard/dashboard.component";
6
import {AuthGuardService} from "./services/auth-guard.service";
5 7

  
6 8
const appRoutes: Routes = [
7 9
  {
8 10
    path: '',
9
    redirectTo: '/home',
11
    redirectTo: '/landing',
10 12
    pathMatch: 'full'
11 13
  },
12 14
  {
13
    path: 'home',
14
    component: HomeComponent
15
    path: 'landing',
16
    component: LandingComponent
17
  },
18
  {
19
    path: 'dashboard',
20
    component: DashboardComponent,
21
    canActivate: [AuthGuardService]
15 22
  }
16 23
];
17 24

  
modules/uoa-repository-dashboard-gui/trunk/webpack.config.js
97 97
      new webpack.DefinePlugin({
98 98
        "process.env": {
99 99
          PRODUCTION: JSON.stringify(false),
100
          API_ENDPOINT: JSON.stringify(process.env.API_ENDPOINT || "http://194.177.192.121:8380/uoa-repository-manager-service"),
101
          FAQ_ENDPOINT: JSON.stringify(process.env.FAQ_ENDPOINT || "http://83.212.101.85:5555/api/"),
102
          CONNECTOR_API_ENDPOINT: JSON.stringify(process.env.CONNECTOR_API_ENDPOINT || "http://localhost:8888/content-connector-service"),
103
          WORKFLOW_API_ENDPOINT: JSON.stringify(process.env.WORKFLOW_API_ENDPOINT || "https://dev.openminted.eu:8881"),
104
          OIDC_ENDPOINT: JSON.stringify(process.env.OIDC_ENDPOINT || "http://localhost:8080/omtd-registry/openid_connect_login"),
105
          AAI_ENDPOINT: JSON.stringify(process.env.AAI_ENDPOINT || "https://aai.openminted.eu/oidc")
100
          API_ENDPOINT: JSON.stringify(process.env.API_ENDPOINT || "http://aleka.athenarc.gr:8380/repomanager-service-dev"),
101
          FAQ_ENDPOINT: JSON.stringify(process.env.FAQ_ENDPOINT || "http://aleka.athenarc.gr:5555"),
102
          WORKFLOW_API_ENDPOINT: JSON.stringify(process.env.WORKFLOW_API_ENDPOINT || "https://aleka.athenarc.gr"),
103
          AAI_ENDPOINT: JSON.stringify(process.env.AAI_ENDPOINT || "http://aleka.athenarc.gr:8380/repomanager-service-dev/openid_connect_login")
106 104
        }
107 105
      })
108 106
    );
......
127 125
      new webpack.DefinePlugin({
128 126
        "process.env": {
129 127
          PRODUCTION: JSON.stringify(true),
130
          API_ENDPOINT: JSON.stringify("/api"),
131
          FAQ_ENDPOINT: JSON.stringify("/faq"),
132
          CONNECTOR_API_ENDPOINT: JSON.stringify("/connector"),
133
          WORKFLOW_API_ENDPOINT: JSON.stringify("/workflow"),
134
          OIDC_ENDPOINT: JSON.stringify("/api/openid_connect_login"),
135
          AAI_ENDPOINT: JSON.stringify("https://aai.openminted.eu/oidc")
128
          API_ENDPOINT: JSON.stringify("http://aleka.athenarc.gr:8380/repomanager-service-dev"),
129
          FAQ_ENDPOINT: JSON.stringify("http://aleka.athenarc.gr:5555"),
130
          WORKFLOW_API_ENDPOINT: JSON.stringify("https://aleka.athenarc.gr"),
131
          AAI_ENDPOINT: JSON.stringify("http://aleka.athenarc.gr:8380/repomanager-service-dev/openid_connect_login")
136 132
        }
137 133
      })
138 134
    );
modules/uoa-repository-dashboard-gui/trunk/app/pages/content/content-events-of-repo-eventslist.component.html
28 28
              <div class="whiteFilm"></div>
29 29
            </div>
30 30
            <div *ngIf="noEvents" class="uk-alert">{{ noEvents }}</div>
31
            <div *ngIf="!noEvents && !loadingMessage && !errorMessage && eventsPage && eventsPage.totalPages" class="events-results">
31
            <div *ngIf="!noEvents && !loadingMessage && !errorMessage && eventsPage && eventsPage.totalPages>0" class="events-results">
32 32
              <div class="numberOfEventsLabel">
33 33

  
34 34
                <!-- RESTORE WHEN ADVANCED SHOW EVENTS IS FIXED AND SENDS CORRECT VALUE FOR CURRENT PAGE -->
......
189 189
              <div class="uk-form-horizontal">
190 190
                <div class="form-group">
191 191
                  <label class="control-label" style="display: block;">Title</label>
192
                  <div formArrayName="eventTitles" *ngFor="let title of group.controls.eventTitles.controls; let title_index = index">
192
                  <div formArrayName="eventTitles" *ngFor="let title of group.get['eventTitles'].controls; let title_index = index">
193 193
                    <div [formGroupName]="title_index">
194 194
                      <input class="form-control inlineBlock" style="width:88%;" type="text" formControlName="eventTitle">
195 195
                      <a class="inlineBlock deleteIcon" (click)="removeControl('eventTitles',title_index)"><i class="fa fa-remove"></i></a>
......
201 201
              <div class="uk-form-horizontal">
202 202
                <div class="form-group">
203 203
                  <label class="control-label" style="display: block;">Author</label>
204
                  <div formArrayName="eventAuthors" *ngFor="let author of group.controls.eventAuthors.controls; let author_index = index">
204
                  <div formArrayName="eventAuthors" *ngFor="let author of group.get['eventAuthors'].controls; let author_index = index">
205 205
                    <div [formGroupName]="author_index">
206 206
                      <input class="form-control inlineBlock" style="width:88%;" type="text" formControlName="eventAuthor">
207 207
                      <a class="inlineBlock deleteIcon" (click)="removeControl('eventAuthors',author_index)"><i class="fa fa-remove"></i></a>
......
213 213
              <div class="uk-form-horizontal">
214 214
                <div class="form-group">
215 215
                  <label class="control-label" style="display: block;">Subject</label>
216
                  <div formArrayName="eventSubjects" *ngFor="let subject of group.controls.eventSubjects.controls; let subject_index = index">
216
                  <div formArrayName="eventSubjects" *ngFor="let subject of group.get['eventSubjects'].controls; let subject_index = index">
217 217
                    <div [formGroupName]="subject_index">
218 218
                      <input class="form-control inlineBlock" style="width:88%;" type="text" formControlName="eventSubject">
219 219
                      <a class="inlineBlock deleteIcon" (click)="removeControl('eventSubjects', subject_index)"><i class="fa fa-remove"></i></a>
......
226 226
                <div class="uk-form-horizontal">
227 227
                  <div class="form-group">
228 228
                    <label class="control-label" style="display: block;">Date</label>
229
                    <div formArrayName="eventDateRanges" *ngFor="let date of group.controls.eventDateRanges.controls; let date_index = index">
229
                    <div formArrayName="eventDateRanges" *ngFor="let date of group.get['eventDateRanges'].controls; let date_index = index">
230 230
                      <div class="uk-form" style="position: relative;" [formGroupName]=date_index>
231 231
                        <input class="form-control inlineBlock dateFrom" style="width:88%;"
232 232
                               placeholder="From"
......
270 270
  </div>
271 271
</div>
272 272

  
273
<!--   *** OLD HTML ***
274 273

  
275
<div class="uk-grid uk-grid-stack">
276
  <div class="uk-width-expand@m uk-first-column">
277
    <div class="uk-margin-medium-bottom">
278
      <h1 class="uk-article-title">{{ repoName }}</h1>
279
      <div class="uk-text uk-text-small uk-text-secondary">{{ topic }}</div>
280
    </div>
281
    <div>
282
      <div *ngIf="errorMessage" class="uk-alert uk-alert-danger">{{errorMessage}}</div>
283
      <div *ngIf="successMessage" class="uk-alert uk-alert-success">{{successMessage}}</div>
284
      <div *ngIf="loadingMessage" class="loading-big">
285
        <div class="loader-big" style="text-align: center; padding-top: 170px; color: rgb(47, 64, 80); font-weight: bold;">{{ loadingMessage }}</div>
286
        <div class="whiteFilm"></div>
287
      </div>
288
      <div *ngIf="noEvents" class="uk-alert">{{ noEvents }}</div>
289
      <div *ngIf="eventsPage && eventsPage.totalPages" class="events-results">
290
        <div class="numberOfEventsLabel">
291
          <span>Showing {{(eventsPage.currPage*10)+1 }}-{{ ( (eventsPage.total < 10) || (eventsPage.total < (eventsPage.currPage+1)*10) ) ? (eventsPage.total) : (eventsPage.currPage+1)*10 }} of {{ eventsPage.total }} results</span>
292
          <span class="uk-float-right">
293
            <button id="subscribe" type="button" class="uk-button uk-button-primary uk-button-small" (click)="showSubscriptionModal()">Subscribe to these events</button>
294
          </span>
295
        </div>
296
        <div>
297
          <ul class="uk-pagination">
298
            <li>
299
              <a class="uk-link uk-link-muted" (click)="goToPreviousPage()">
300
                <span class="uk-margin-small-right uk-pagination-previous uk-icon" uk-pagination-previous="">
301
                  <svg width="7" height="12" viewBox="0 0 7 12" xmlns="http://www.w3.org/2000/svg" icon="pagination-previous" ratio="1"></svg>
302
                </span>
303
                Previous
304
              </a>
305
            </li>
306
            <li class="uk-margin-auto-left">
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff