mirror of
https://github.com/documize/community.git
synced 2025-07-25 08:09:43 +02:00
activity tab metrics
This commit is contained in:
parent
fefcfde4ed
commit
5c09407d2f
2 changed files with 41 additions and 0 deletions
|
@ -1,4 +1,31 @@
|
|||
.document-activity {
|
||||
> .metrics {
|
||||
list-style-type: none;
|
||||
margin: 0 0 30px;
|
||||
padding: 0;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
|
||||
> .metric {
|
||||
padding: 0 30px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
|
||||
.label {
|
||||
padding: 0 0 10px;
|
||||
font-family: $font-regular;
|
||||
font-size: 0.9rem;
|
||||
color: $color-gray;
|
||||
}
|
||||
|
||||
.number {
|
||||
font-family: $font-light;
|
||||
font-size: 2rem;
|
||||
color: $color-off-black;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
> .items {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
|
|
|
@ -1,4 +1,18 @@
|
|||
<div class="document-activity">
|
||||
<ul class="metrics">
|
||||
<li class="metric">
|
||||
<div class="label">created</div>
|
||||
<div class="number">{{time-ago document.created}}</div>
|
||||
</li>
|
||||
<li class="metric">
|
||||
<div class="label">viewers</div>
|
||||
<div class="number">{{activity.viewers.length}}</div>
|
||||
</li>
|
||||
<li class="metric">
|
||||
<div class="label">actions</div>
|
||||
<div class="number">{{activity.editors.length}}</div>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="items">
|
||||
{{#each sortedItems as |e|}}
|
||||
<li class="item">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue