Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d75c6135
Commit
d75c6135
authored
Sep 08, 2017
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RepoEditor: Fix empty state for image blob view.
parent
f06d370b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+7
-0
app/views/projects/blob/viewers/_download.html.haml
app/views/projects/blob/viewers/_download.html.haml
+1
-1
No files found.
app/assets/stylesheets/pages/repo.scss
View file @
d75c6135
...
...
@@ -84,6 +84,13 @@
}
}
.blob-no-preview
{
.vertical-center
{
justify-content
:
center
;
width
:
100%
;
}
}
&
.edit-mode
{
.blob-viewer-container
{
overflow
:
hidden
;
...
...
app/views/projects/blob/viewers/_download.html.haml
View file @
d75c6135
.file-content.blob_file.blob-no-preview
.center
.center
.render-error.vertical-center
=
link_to
blob_raw_path
do
%h1
.light
=
icon
(
'download'
)
...
...
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