mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-05 06:09:57 -05:00
Moving data from models to FileGroup.
* Ebook.creator -> FileGroup.author * Video.viewed -> FileGroup.viewed * Video.duration -> FileGroup.length * Video.url -> FileGroup.url * Archive.url -> FileGroup.url
This commit is contained in:
parent
ae9d188391
commit
15687e534a
32 changed files with 418 additions and 209 deletions
|
|
@ -73,7 +73,7 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
|
|||
const navigate = useNavigate();
|
||||
const videoRef = React.useRef();
|
||||
|
||||
useTitle(videoFile === null || videoFile === undefined ? null : videoFile.video.title);
|
||||
useTitle(videoFile ? videoFile.title ? videoFile.title : videoFile.name : null);
|
||||
let video;
|
||||
if (videoFile) {
|
||||
video = videoFile.video;
|
||||
|
|
@ -241,7 +241,7 @@ function VideoPage({videoFile, prevFile, nextFile, fetchVideo, ...props}) {
|
|||
<Segment>
|
||||
|
||||
<Header as='h2'>{title}</Header>
|
||||
{video.upload_date && <h3>{isoDatetimeToString(video.upload_date)}</h3>}
|
||||
{videoFile.published_datetime && <h3>{isoDatetimeToString(videoFile.published_datetime)}</h3>}
|
||||
<h3>
|
||||
{channel && <Link to={`/videos/channel/${channel.id}/video`}>
|
||||
{channel.name}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue