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
6f88402f
Commit
6f88402f
authored
Jul 29, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changes raw to download for binary files.
parent
04304d5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
app/assets/javascripts/repo/repo_file_buttons.vue
app/assets/javascripts/repo/repo_file_buttons.vue
+6
-1
No files found.
app/assets/javascripts/repo/repo_file_buttons.vue
View file @
6f88402f
...
...
@@ -9,6 +9,11 @@ const RepoFileButtons = {
mixins
:
[
RepoMixin
],
computed
:
{
rawDownloadButtonLabel
()
{
return
this
.
binary
?
'
Download
'
:
'
Raw
'
;
},
editableBorder
()
{
return
this
.
editMode
?
'
1px solid rgb(31, 120, 209)
'
:
'
1px solid rgb(240,240,240)
'
;
},
...
...
@@ -40,7 +45,7 @@ export default RepoFileButtons;
<
template
>
<div
id=
"repo-file-buttons"
v-if=
"isMini"
:style=
"
{'border-bottom': editableBorder}">
<a
:href=
"rawFileURL"
target=
"_blank"
class=
"btn btn-default raw"
>
Raw
</a>
<a
:href=
"rawFileURL"
target=
"_blank"
class=
"btn btn-default raw"
>
{{
rawDownloadButtonLabel
}}
</a>
<div
class=
"btn-group"
role=
"group"
aria-label=
"File actions"
>
<a
:href=
"blameFileURL"
class=
"btn btn-default blame"
>
Blame
</a>
...
...
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