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
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
25 deletions
+1
-25
repo_file_buttons.vue
app/assets/javascripts/repo/components/repo_file_buttons.vue
+1
-13
repo_helper.js
app/assets/javascripts/repo/helpers/repo_helper.js
+0
-8
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 = {
canPreview
()
{
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
:
{
...
...
@@ -50,7 +38,7 @@ export default RepoFileButtons;
<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.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>
<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 = {
return
okExts
.
indexOf
(
Store
.
activeFile
.
extension
)
>
-
1
;
},
getBlameURLFromBlobURL
(
url
)
{
return
url
.
replace
(
'blob'
,
'blame'
);
},
getHistoryURLFromBlobURL
(
url
)
{
return
url
.
replace
(
'blob'
,
'commits'
);
},
setBinaryDataAsBase64
(
file
)
{
Service
.
getBase64Content
(
file
.
raw_path
)
.
then
((
response
)
=>
{
...
...
app/assets/stylesheets/pages/repo.scss
View file @
f9372f70
...
...
@@ -7,10 +7,6 @@
transition
:
opacity
.5s
;
}
.blob-viewer
{
padding
:
20px
;
}
.monaco-loader
{
position
:
absolute
;
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