Commit 8ed8f230 authored by Manuel Tancoigne's avatar Manuel Tancoigne

Remove button to edit on Gitlab

Users needs to be already logged-in to access the page. That may seems complicated.
parent cbcef8ad
......@@ -33,7 +33,6 @@
"renderer": {
"buttons": {
"render": "Render",
"edit_on_gitlab": "Edit on Gitlab",
"source": "Source"
},
"description": "Description:",
......
......@@ -33,7 +33,6 @@
"renderer": {
"buttons": {
"render": "Rendu",
"edit_on_gitlab": "Éditer sur Gitlab",
"source": "Source"
},
"description": "Description:",
......
......@@ -33,37 +33,28 @@
</i-layout-aside>
<i-layout-content>
<i-container>
<i-row class="_margin-bottom-1">
<i-column>
<i-button-group>
<i-button :active="displayTab === 'render'"
:variant="displayTab === 'render' ? 'primary' : ''"
@click.prevent="displayTab = 'render'">
{{ $t('renderer.buttons.render') }}
</i-button>
<i-button :active="displayTab === 'html'"
:variant="displayTab === 'html' ? 'primary' : ''"
@click.prevent="displayTab = 'html'">
HTML
</i-button>
<i-button :active="displayTab === 'md'"
:variant="displayTab === 'md' ? 'primary' : ''"
@click.prevent="displayTab = 'md'">
Markdown
</i-button>
<i-button :active="displayTab === 'source'"
:variant="displayTab === 'source' ? 'primary' : ''"
@click.prevent="displayTab = 'source'">
{{ $t('renderer.buttons.source') }}
</i-button>
</i-button-group>
</i-column>
<i-column class="_text-right">
<i-button v-show="displayTab === 'source'" variant="primary">
{{ $t('renderer.buttons.edit_on_gitlab') }}
</i-button>
</i-column>
</i-row>
<i-button-group class="_margin-bottom-1">
<i-button :active="displayTab === 'render'"
:variant="displayTab === 'render' ? 'primary' : ''"
@click.prevent="displayTab = 'render'">
{{ $t('renderer.buttons.render') }}
</i-button>
<i-button :active="displayTab === 'html'"
:variant="displayTab === 'html' ? 'primary' : ''"
@click.prevent="displayTab = 'html'">
HTML
</i-button>
<i-button :active="displayTab === 'md'"
:variant="displayTab === 'md' ? 'primary' : ''"
@click.prevent="displayTab = 'md'">
Markdown
</i-button>
<i-button :active="displayTab === 'source'"
:variant="displayTab === 'source' ? 'primary' : ''"
@click.prevent="displayTab = 'source'">
{{ $t('renderer.buttons.source') }}
</i-button>
</i-button-group>
<div class="main-content" :class="displayTab === 'render' ? 'render' : 'raw'">
<!-- <pre><strong>variables</strong>{{ variables }}</pre>-->
<!-- <pre><strong>blocks</strong>{{ blocks }}</pre>-->
......
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