@@ -166,6 +166,103 @@ <h3 class="card-title" id="instance-details">Instance details</h3>
166
166
</ div >
167
167
</ div >
168
168
169
+ <!-- endorsements-->
170
+ < div class ="card " *ngIf ="endorsementsReceived ">
171
+ < div class ="card-header ">
172
+ < h3 class ="card-title " id ="endorsements-received "> Endorsements received ({{endorsementsReceived.length}})</ h3 >
173
+ </ div >
174
+ < div class ="card-body ">
175
+ < ng-container *ngIf ="endorsementsReceived.length ">
176
+ < p > Endorsements were received from the following instances:</ p >
177
+ < table class ="table table-bordered ">
178
+ < thead >
179
+ < tr >
180
+ < th > Instance</ th >
181
+ < th > Reasons</ th >
182
+ </ tr >
183
+ </ thead >
184
+ < tbody >
185
+ < tr *ngFor ="let instance of endorsementsReceived ">
186
+ < td > < a routerLink ="/instances/detail/{{instance.domain}} "> {{instance.domain}}</ a > </ td >
187
+ < td >
188
+ < ul *ngIf ="instance.endorsementReasons.length ">
189
+ < li *ngFor ="let reason of instance.endorsementReasons "> {{reason}}</ li >
190
+ </ ul >
191
+ < code *ngIf ="!instance.endorsementReasons.length "> N/A</ code >
192
+ </ td >
193
+ </ tr >
194
+ </ tbody >
195
+ </ table >
196
+ </ ng-container >
197
+ < p *ngIf ="!endorsementsReceived.length ">
198
+ This instance hasn't been endorsed by any other instance.
199
+ </ p >
200
+ </ div >
201
+ </ div >
202
+ < div class ="card " *ngIf ="endorsementsGiven ">
203
+ < div class ="card-header ">
204
+ < h3 class ="card-title " id ="endorsements-given "> Endorsements given ({{endorsementsGiven.length}})</ h3 >
205
+ </ div >
206
+ < div class ="card-body ">
207
+ < ng-container *ngIf ="endorsementsGiven.length ">
208
+ < p > Endorsements were given to the following instances:</ p >
209
+ < table class ="table table-bordered ">
210
+ < thead >
211
+ < tr >
212
+ < th > Instance</ th >
213
+ < th > Reasons</ th >
214
+ </ tr >
215
+ </ thead >
216
+ < tbody >
217
+ < tr *ngFor ="let instance of endorsementsGiven ">
218
+ < td > < a routerLink ="/instances/detail/{{instance.domain}} "> {{instance.domain}}</ a > </ td >
219
+ < td >
220
+ < ul *ngIf ="instance.endorsementReasons.length ">
221
+ < li *ngFor ="let reason of instance.endorsementReasons "> {{reason}}</ li >
222
+ </ ul >
223
+ < code *ngIf ="!instance.endorsementReasons.length "> N/A</ code >
224
+ </ td >
225
+ </ tr >
226
+ </ tbody >
227
+ </ table >
228
+ </ ng-container >
229
+ < p *ngIf ="!endorsementsGiven.length ">
230
+ This instance hasn't endorsed any other instance.
231
+ </ p >
232
+ </ div >
233
+ </ div >
234
+
235
+ <!-- guarantees -->
236
+ < div class ="card " *ngIf ="guaranteesGiven ">
237
+ < div class ="card-header ">
238
+ < h3 class ="card-title " id ="guarantees "> Guarantees ({{guaranteesGiven.length}})</ h3 >
239
+ </ div >
240
+ < div class ="card-body ">
241
+ < ng-container *ngIf ="guaranteesGiven.length ">
242
+ < p > This instance guarantees for the following instances:</ p >
243
+ < table class ="table table-bordered ">
244
+ < thead >
245
+ < tr >
246
+ < th > Instance</ th >
247
+ </ tr >
248
+ </ thead >
249
+ < tbody >
250
+ < tr *ngFor ="let instance of guaranteesGiven ">
251
+ < td >
252
+ < a routerLink ="/instances/detail/{{instance.domain}} "> {{instance.domain}}</ a >
253
+ < app-flags [instance] ="instance " />
254
+ </ td >
255
+ </ tr >
256
+ </ tbody >
257
+ </ table >
258
+ </ ng-container >
259
+ < p *ngIf ="!guaranteesGiven.length ">
260
+ This instance doesn't guarantee for any instance.
261
+ </ p >
262
+ </ div >
263
+ </ div >
264
+
265
+ <!-- censures -->
169
266
< div class ="card " *ngIf ="censuresReceived ">
170
267
< div class ="card-header ">
171
268
< h3 class ="card-title " id ="censures-received "> Censures received ({{censuresReceived.length}})</ h3 >
@@ -227,7 +324,6 @@ <h3 class="card-title" id="censures-received">Censures received ({{censuresRecei
227
324
</ p >
228
325
</ div >
229
326
</ div >
230
-
231
327
< div class ="card " *ngIf ="censuresGiven ">
232
328
< div class ="card-header ">
233
329
< h3 class ="card-title " id ="censures-given "> Censures given ({{censuresGiven.length}})</ h3 >
@@ -266,72 +362,7 @@ <h3 class="card-title" id="censures-given">Censures given ({{censuresGiven.lengt
266
362
</ div >
267
363
</ div >
268
364
269
- < div class ="card " *ngIf ="endorsementsReceived ">
270
- < div class ="card-header ">
271
- < h3 class ="card-title " id ="endorsements-received "> Endorsements received ({{endorsementsReceived.length}})</ h3 >
272
- </ div >
273
- < div class ="card-body ">
274
- < ng-container *ngIf ="endorsementsReceived.length ">
275
- < p > Endorsements were received from the following instances:</ p >
276
- < table class ="table table-bordered ">
277
- < thead >
278
- < tr >
279
- < th > Instance</ th >
280
- < th > Reasons</ th >
281
- </ tr >
282
- </ thead >
283
- < tbody >
284
- < tr *ngFor ="let instance of endorsementsReceived ">
285
- < td > < a routerLink ="/instances/detail/{{instance.domain}} "> {{instance.domain}}</ a > </ td >
286
- < td >
287
- < ul *ngIf ="instance.endorsementReasons.length ">
288
- < li *ngFor ="let reason of instance.endorsementReasons "> {{reason}}</ li >
289
- </ ul >
290
- < code *ngIf ="!instance.endorsementReasons.length "> N/A</ code >
291
- </ td >
292
- </ tr >
293
- </ tbody >
294
- </ table >
295
- </ ng-container >
296
- < p *ngIf ="!endorsementsReceived.length ">
297
- This instance hasn't been endorsed by any other instance.
298
- </ p >
299
- </ div >
300
- </ div >
301
-
302
- < div class ="card " *ngIf ="endorsementsGiven ">
303
- < div class ="card-header ">
304
- < h3 class ="card-title " id ="endorsements-given "> Endorsements given ({{endorsementsGiven.length}})</ h3 >
305
- </ div >
306
- < div class ="card-body ">
307
- < ng-container *ngIf ="endorsementsGiven.length ">
308
- < p > Endorsements were given to the following instances:</ p >
309
- < table class ="table table-bordered ">
310
- < thead >
311
- < tr >
312
- < th > Instance</ th >
313
- < th > Reasons</ th >
314
- </ tr >
315
- </ thead >
316
- < tbody >
317
- < tr *ngFor ="let instance of endorsementsGiven ">
318
- < td > < a routerLink ="/instances/detail/{{instance.domain}} "> {{instance.domain}}</ a > </ td >
319
- < td >
320
- < ul *ngIf ="instance.endorsementReasons.length ">
321
- < li *ngFor ="let reason of instance.endorsementReasons "> {{reason}}</ li >
322
- </ ul >
323
- < code *ngIf ="!instance.endorsementReasons.length "> N/A</ code >
324
- </ td >
325
- </ tr >
326
- </ tbody >
327
- </ table >
328
- </ ng-container >
329
- < p *ngIf ="!endorsementsGiven.length ">
330
- This instance hasn't endorsed any other instance.
331
- </ p >
332
- </ div >
333
- </ div >
334
-
365
+ <!-- hesitations -->
335
366
< div class ="card " *ngIf ="hesitationsReceived ">
336
367
< div class ="card-header ">
337
368
< h3 class ="card-title " id ="hesitations-received "> Hesitations received ({{hesitationsReceived.length}})</ h3 >
@@ -393,7 +424,6 @@ <h3 class="card-title" id="hesitations-received">Hesitations received ({{hesitat
393
424
</ p >
394
425
</ div >
395
426
</ div >
396
-
397
427
< div class ="card " *ngIf ="hesitationsGiven ">
398
428
< div class ="card-header ">
399
429
< h3 class ="card-title " id ="hesitations-given "> Hesitations given ({{hesitationsGiven.length}})</ h3 >
@@ -431,34 +461,5 @@ <h3 class="card-title" id="hesitations-given">Hesitations given ({{hesitationsGi
431
461
</ p >
432
462
</ div >
433
463
</ div >
434
-
435
- < div class ="card " *ngIf ="guaranteesGiven ">
436
- < div class ="card-header ">
437
- < h3 class ="card-title " id ="guarantees "> Guarantees ({{guaranteesGiven.length}})</ h3 >
438
- </ div >
439
- < div class ="card-body ">
440
- < ng-container *ngIf ="guaranteesGiven.length ">
441
- < p > This instance guarantees for the following instances:</ p >
442
- < table class ="table table-bordered ">
443
- < thead >
444
- < tr >
445
- < th > Instance</ th >
446
- </ tr >
447
- </ thead >
448
- < tbody >
449
- < tr *ngFor ="let instance of guaranteesGiven ">
450
- < td >
451
- < a routerLink ="/instances/detail/{{instance.domain}} "> {{instance.domain}}</ a >
452
- < app-flags [instance] ="instance " />
453
- </ td >
454
- </ tr >
455
- </ tbody >
456
- </ table >
457
- </ ng-container >
458
- < p *ngIf ="!guaranteesGiven.length ">
459
- This instance doesn't guarantee for any instance.
460
- </ p >
461
- </ div >
462
- </ div >
463
464
</ div >
464
465
</ ng-template >
0 commit comments