ページのソースを見れるように

This commit is contained in:
syuilo 2019-05-01 20:48:56 +09:00
parent 76c538ad25
commit 79c49bc926
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
7 changed files with 113 additions and 27 deletions

View file

@ -11,6 +11,7 @@
<footer>
<small>@{{ page.user.username }}</small>
<router-link v-if="$store.getters.isSignedIn && $store.state.i.id === page.userId" :to="`/i/pages/edit/${page.id}`">{{ $t('edit-this-page') }}</router-link>
<router-link :to="`./${page.name}/view-source`">{{ $t('view-source') }}</router-link>
</footer>
</div>
</template>
@ -154,4 +155,10 @@ export default Vue.extend({
display block
opacity 0.5
> a
font-size 14px
> a + a
margin-left 8px
</style>