Commit f9372f70 authored by Jacob Schatz's avatar Jacob Schatz

Remove and fix permalinks.

parent 074b24c6
...@@ -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>
......
...@@ -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) => {
......
...@@ -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;
......
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