Project

General

Profile

« Previous | Next » 

Revision 61002

[Library|Trunk]
- Remove inline argument for parsed contexts, projects, remove unused code with <mark> tag

View differences:

relatedTo.component.ts
6 6
  template: `
7 7
    <div class="uk-text-muted">Communities</div>
8 8
    <div class="uk-margin-small-left" *ngFor="let item of contexts.slice(0, showNum); let i=index">
9
        <span *ngIf="!item['inline']">
9
        <span>
10 10
          <span>{{item['labelContext']}}</span>
11 11
          <span *ngIf="item['labelCategory']"><span
12 12
              uk-icon="icon: arrow-right"></span>{{item['labelCategory']}}</span>
13 13
          <span *ngIf="item['labelConcept']">: {{item['labelConcept']}}</span>
14
        </span>
15
      <mark *ngIf="item['inline']">
16
        <span>{{item['labelContext']}}</span>
17
        <span *ngIf="item['labelCategory']"><span
18
            uk-icon="icon: arrow-right"></span>{{item['labelCategory']}}</span>
19
        <span *ngIf="item['labelConcept']">: {{item['labelConcept']}}</span>
20
      </mark>
14
        </span>       
21 15
    </div>
22 16
    <div *ngIf="showNum > threshold" class="uk-text-right">
23 17
      <a (click)="showNum = threshold; scroll()">
......
33 27
})
34 28

  
35 29
export class RelatedToComponent {
36
  @Input() contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string, "inline": boolean }[];
30
  @Input() contexts: { "labelContext": string, "labelCategory": string, "labelConcept": string }[];
37 31
  
38 32
  public threshold: number = 5;
39 33
  public showNum: number = 5;

Also available in: Unified diff