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
Léo-Paul Géneau
gitlab-ce
Commits
f9372f70
Commit
f9372f70
authored
Aug 04, 2017
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove and fix permalinks.
parent
074b24c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
25 deletions
+1
-25
app/assets/javascripts/repo/components/repo_file_buttons.vue
app/assets/javascripts/repo/components/repo_file_buttons.vue
+1
-13
app/assets/javascripts/repo/helpers/repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+0
-8
app/assets/stylesheets/pages/repo.scss
app/assets/stylesheets/pages/repo.scss
+0
-4
No files found.
app/assets/javascripts/repo/components/repo_file_buttons.vue
View file @
f9372f70
...
@@ -21,18 +21,6 @@ const RepoFileButtons = {
...
@@ -21,18 +21,6 @@ const RepoFileButtons = {
canPreview
()
{
canPreview
()
{
return
Helper
.
isKindaBinary
();
return
Helper
.
isKindaBinary
();
},
},
rawFileURL
()
{
return
Helper
.
getRawURLFromBlobURL
(
this
.
activeFile
.
url
);
},
blameFileURL
()
{
return
Helper
.
getBlameURLFromBlobURL
(
this
.
activeFile
.
url
);
},
historyFileURL
()
{
return
Helper
.
getHistoryURLFromBlobURL
(
this
.
activeFile
.
url
);
},
},
},
methods
:
{
methods
:
{
...
@@ -50,7 +38,7 @@ export default RepoFileButtons;
...
@@ -50,7 +38,7 @@ export default RepoFileButtons;
<div
class=
"btn-group"
role=
"group"
aria-label=
"File actions"
>
<div
class=
"btn-group"
role=
"group"
aria-label=
"File actions"
>
<a
:href=
"activeFile.blame_path"
class=
"btn btn-default blame"
>
Blame
</a>
<a
:href=
"activeFile.blame_path"
class=
"btn btn-default blame"
>
Blame
</a>
<a
:href=
"activeFile.commits_path"
class=
"btn btn-default history"
>
History
</a>
<a
:href=
"activeFile.commits_path"
class=
"btn btn-default history"
>
History
</a>
<a
href=
"activeFile.permalink"
class=
"btn btn-default permalink"
>
Permalink
</a>
<a
:
href=
"activeFile.permalink"
class=
"btn btn-default permalink"
>
Permalink
</a>
</div>
</div>
<a
href=
"#"
v-if=
"canPreview"
@
click.prevent=
"rawPreviewToggle"
class=
"btn btn-default preview"
>
{{
activeFileLabel
}}
</a>
<a
href=
"#"
v-if=
"canPreview"
@
click.prevent=
"rawPreviewToggle"
class=
"btn btn-default preview"
>
{{
activeFileLabel
}}
</a>
...
...
app/assets/javascripts/repo/helpers/repo_helper.js
View file @
f9372f70
...
@@ -67,14 +67,6 @@ const RepoHelper = {
...
@@ -67,14 +67,6 @@ const RepoHelper = {
return
okExts
.
indexOf
(
Store
.
activeFile
.
extension
)
>
-
1
;
return
okExts
.
indexOf
(
Store
.
activeFile
.
extension
)
>
-
1
;
},
},
getBlameURLFromBlobURL
(
url
)
{
return
url
.
replace
(
'
blob
'
,
'
blame
'
);
},
getHistoryURLFromBlobURL
(
url
)
{
return
url
.
replace
(
'
blob
'
,
'
commits
'
);
},
setBinaryDataAsBase64
(
file
)
{
setBinaryDataAsBase64
(
file
)
{
Service
.
getBase64Content
(
file
.
raw_path
)
Service
.
getBase64Content
(
file
.
raw_path
)
.
then
((
response
)
=>
{
.
then
((
response
)
=>
{
...
...
app/assets/stylesheets/pages/repo.scss
View file @
f9372f70
...
@@ -7,10 +7,6 @@
...
@@ -7,10 +7,6 @@
transition
:
opacity
.5s
;
transition
:
opacity
.5s
;
}
}
.blob-viewer
{
padding
:
20px
;
}
.monaco-loader
{
.monaco-loader
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
...
...
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