From afffbb6487d8dc1806767ed2b2728ab56bf06669 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 30 Nov 2016 13:30:50 +0100 Subject: go live with wiki mimetypes - you can now choose if a wiki will contain markdown or bb-code markup --- view/css/mod_wiki.css | 7 ++++++- view/tpl/wiki.tpl | 41 +++++++++++++++++++++++++++++++++++++---- view/tpl/wikilist.tpl | 3 +-- 3 files changed, 44 insertions(+), 7 deletions(-) (limited to 'view') diff --git a/view/css/mod_wiki.css b/view/css/mod_wiki.css index 1abb0b3b4..b29957090 100644 --- a/view/css/mod_wiki.css +++ b/view/css/mod_wiki.css @@ -1,9 +1,14 @@ -#ace-editor { +#ace-editor { position: relative; width: 100%; height: 500px; } +#editor { + width: 100%; + height: 500px; +} + .fade.in { -webkit-transition: opacity 0.5s 0.5s ease; -moz-transition: opacity 0.5s 0.5s ease; diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl index bdce4f4be..726494883 100644 --- a/view/tpl/wiki.tpl +++ b/view/tpl/wiki.tpl @@ -42,7 +42,11 @@
+ {{if !$mimeType || $mimeType == 'text/markdown'}}
+ {{else}} + + {{/if}} {{if $showCommitMsg}} {{if $showPageControls}}
@@ -50,7 +54,7 @@
- +
@@ -98,7 +102,7 @@ diff --git a/view/tpl/wikilist.tpl b/view/tpl/wikilist.tpl index c7cdfaa43..68aa41e7c 100644 --- a/view/tpl/wikilist.tpl +++ b/view/tpl/wikilist.tpl @@ -9,8 +9,7 @@
{{include file="field_input.tpl" field=$wikiName}} - {{* include file="field_select.tpl" field=$mimeType *}} - + {{include file="field_select.tpl" field=$mimeType}} {{include file="field_checkbox.tpl" field=$notify}}
-- cgit v1.2.3