BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1f47b570
Commit
1f47b570
authored
Apr 28, 2017
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dm-video-viewer' into 'master'
Add video blob viewer See merge request !10749
parents
93e83afb
e4cca4d7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
2 deletions
+24
-2
files.scss
app/assets/stylesheets/framework/files.scss
+4
-2
blob.rb
app/models/blob.rb
+2
-0
video.rb
app/models/blob_viewer/video.rb
+12
-0
_video.html.haml
app/views/projects/blob/viewers/_video.html.haml
+2
-0
dm-video-viewer.yml
changelogs/unreleased/dm-video-viewer.yml
+4
-0
No files found.
app/assets/stylesheets/framework/files.scss
View file @
1f47b570
...
...
@@ -61,11 +61,13 @@
.file-content
{
background
:
$white-light
;
&
.image_file
{
&
.image_file
,
&
.video
{
background
:
$file-image-bg
;
text-align
:
center
;
img
{
img
,
video
{
padding
:
20px
;
max-width
:
80%
;
}
...
...
app/models/blob.rb
View file @
1f47b570
...
...
@@ -27,6 +27,8 @@ class Blob < SimpleDelegator
BlobViewer
::
Image
,
BlobViewer
::
Sketch
,
BlobViewer
::
Video
,
BlobViewer
::
PDF
,
BlobViewer
::
BinarySTL
,
...
...
app/models/blob_viewer/video.rb
0 → 100644
View file @
1f47b570
module
BlobViewer
class
Video
<
Base
include
Rich
include
ClientSide
self
.
partial_name
=
'video'
self
.
extensions
=
UploaderHelper
::
VIDEO_EXT
self
.
binary
=
true
self
.
switcher_icon
=
'film'
self
.
switcher_title
=
'video'
end
end
app/views/projects/blob/viewers/_video.html.haml
0 → 100644
View file @
1f47b570
.file-content.video
%video
{
src:
blob_raw_url
,
controls:
true
,
data:
{
setup:
'
{}
'
}
}
changelogs/unreleased/dm-video-viewer.yml
0 → 100644
View file @
1f47b570
---
title
:
Display video blobs in-line like images
merge_request
:
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment