Commit f9372f70 authored by Jacob Schatz's avatar Jacob Schatz

Remove and fix permalinks.

parent 074b24c6
......@@ -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>
......
......@@ -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) => {
......
......@@ -7,10 +7,6 @@
transition: opacity .5s;
}
.blob-viewer {
padding: 20px;
}
.monaco-loader {
position: absolute;
top: 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment