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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
bf2210c1
Commit
bf2210c1
authored
Jul 20, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct button names
parent
78c4a275
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/javascripts/repo/repo_file_buttons.js
app/assets/javascripts/repo/repo_file_buttons.js
+1
-1
app/assets/javascripts/repo/repo_store.js
app/assets/javascripts/repo/repo_store.js
+2
-2
app/assets/javascripts/repo/repo_tab.js
app/assets/javascripts/repo/repo_tab.js
+2
-1
No files found.
app/assets/javascripts/repo/repo_file_buttons.js
View file @
bf2210c1
...
...
@@ -15,7 +15,7 @@ export default class RepoFileButtons {
mixins
:
[
RepoMiniMixin
],
template
:
`
<div id='repo-file-buttons' v-if='isMini' :style='{"border-bottom": editableBorder}'>
<a :href='rawFileURL' target='_blank' class='btn btn-default'>
Download file
</a>
<a :href='rawFileURL' target='_blank' class='btn btn-default'>
Raw
</a>
<div class="btn-group" role="group" aria-label="File actions">
<a :href='blameFileUrl' class='btn btn-default'>Blame</a>
<a :href='historyFileUrl' class='btn btn-default'>History</a>
...
...
app/assets/javascripts/repo/repo_store.js
View file @
bf2210c1
...
...
@@ -55,7 +55,7 @@ const RepoStore = {
toggleRawPreview
()
{
this
.
activeFile
.
raw
=
!
this
.
activeFile
.
raw
;
this
.
activeFileLabel
=
this
.
activeFile
.
raw
?
'
Preview
'
:
'
Raw
'
;
this
.
activeFileLabel
=
this
.
activeFile
.
raw
?
'
Display rendered file
'
:
'
Display source
'
;
},
setActiveFiles
(
file
)
{
...
...
@@ -92,7 +92,7 @@ const RepoStore = {
setActiveToRaw
()
{
this
.
activeFile
.
raw
=
false
;
// can't get vue to listen to raw for some reason so this for now.
this
.
activeFileLabel
=
'
Raw
'
;
this
.
activeFileLabel
=
'
Display source
'
;
},
/* eslint-disable no-param-reassign */
...
...
app/assets/javascripts/repo/repo_tab.js
View file @
bf2210c1
import
RepoHelper
from
'
./repo_helper
'
;
import
RepoStore
from
'
./repo_store
'
;
const
RepoTab
=
{
...
...
@@ -27,7 +28,7 @@ const RepoTab = {
},
methods
:
{
tabClicked
:
RepoStore
.
setActiveFiles
,
tabClicked
:
RepoStore
.
setActiveFiles
.
bind
(
RepoStore
)
,
xClicked
(
file
)
{
if
(
file
.
changed
)
return
;
...
...
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