mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-20 06:56:18 -05:00
Linking videos to Video Statistics.
This commit is contained in:
parent
92abd6b627
commit
a5856309ed
1 changed files with 7 additions and 5 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import React, {useContext} from 'react';
|
||||
import {Divider, SegmentGroup, StatisticLabel, StatisticValue} from "semantic-ui-react";
|
||||
import {Route, Routes} from "react-router-dom";
|
||||
import {Link, Route, Routes} from "react-router-dom";
|
||||
import "../static/wrolpi.css";
|
||||
import {decryptOTP, encryptOTP} from "../api";
|
||||
import {mimetypeColor, PageContainer, toLocaleString, useTitle} from "./Common";
|
||||
|
|
@ -181,10 +181,12 @@ function FileStatistics() {
|
|||
</Segment>
|
||||
<Segment>
|
||||
<StatisticGroup size='small'>
|
||||
<Statistic color={mimetypeColor('video/')}>
|
||||
<StatisticValue>{toLocaleString(video_count)}</StatisticValue>
|
||||
<StatisticLabel>Videos</StatisticLabel>
|
||||
</Statistic>
|
||||
<Link to={'/videos/statistics'}>
|
||||
<Statistic color={mimetypeColor('video/')}>
|
||||
<StatisticValue>{toLocaleString(video_count)}</StatisticValue>
|
||||
<StatisticLabel>Videos</StatisticLabel>
|
||||
</Statistic>
|
||||
</Link>
|
||||
<Statistic color={mimetypeColor('application/pdf')}>
|
||||
<StatisticValue>{toLocaleString(pdf_count)}</StatisticValue>
|
||||
<StatisticLabel>PDFs</StatisticLabel>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue