Remove and fix permalinks.

This commit is contained in:
Jacob Schatz 2017-08-04 07:27:41 -04:00
parent 074b24c659
commit f9372f70ea
3 changed files with 1 additions and 25 deletions

View file

@ -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>

View file

@ -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) => {

View file

@ -7,10 +7,6 @@
transition: opacity .5s;
}
.blob-viewer {
padding: 20px;
}
.monaco-loader {
position: absolute;
top: 0;