aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-instance/instance-statistics.component.html
blob: 2ca61fd941355045ec2d52c60e481cc455a33a74 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
<p i18n *ngIf="null === serverStats">Loading instance statistics...</p>

<section *ngIf="null !== serverStats">
  <h3 i18n>By users on this instance</h3>

  <div class="row">
    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalUsers | number }}</p>
          <p class="stat-label" i18n>users</p>
        </div>
        <i class="glyphicon glyphicon-user icon-bottom"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalLocalVideos | number }}</p>
          <p class="stat-label" i18n>videos</p>
        </div>
        <i class="glyphicon glyphicon-facetime-video"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalLocalVideoViews | number }}</p>
          <p class="stat-label" i18n>views</p>
        </div>
        <i class="glyphicon glyphicon-eye-open"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalLocalVideoComments | number }}</p>
          <p class="stat-label" i18n>comments</p>
        </div>
        <i class="glyphicon glyphicon-comment"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalLocalVideoFilesSize | bytes:1 }}</p>
          <p class="stat-label" i18n>hosted video</p>
        </div>
        <i class="glyphicon glyphicon-hdd"></i>
      </div>
    </div>
  </div>

  <h3 i18n>In this instance federation</h3>

  <div class="row">
    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalVideos | number }}</p>
          <p class="stat-label" i18n>videos</p>
        </div>
        <i class="glyphicon glyphicon-facetime-video"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalVideoComments | number }}</p>
          <p class="stat-label" i18n>comments</p>
        </div>
        <i class="glyphicon glyphicon-comment"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalInstanceFollowers | number }}</p>
          <p class="stat-label" i18n>followers</p>
        </div>
        <i class="glyphicon glyphicon-retweet"></i>
      </div>
    </div>

    <div class="col-6 col-lg-4 col-xl-3">
      <div class="card stat">
        <div class="card-body">
          <p class="stat-value">{{ serverStats.totalInstanceFollowing | number }}</p>
          <p class="stat-label" i18n>following</p>
        </div>
        <i class="glyphicon glyphicon-retweet"></i>
      </div>
    </div>
  </div>
</section>