Add a div wrapper around wiki page contents
authorMagnus Hagander <magnus@hagander.net>
Fri, 5 Oct 2018 12:42:05 +0000 (14:42 +0200)
committerMagnus Hagander <magnus@hagander.net>
Fri, 5 Oct 2018 12:42:05 +0000 (14:42 +0200)
This makes it possible to do styling that applies to just the wiki
contents and nothing else on the page.

template.jinja/confwiki/wikipage.html
template.jinja/confwiki/wikipage_edit.html

index 467addd580863425f7f77811077285cdddd24897..10eb5046fc24184e5e5eb9531e77e4a122ebe65f 100644 (file)
@@ -11,7 +11,9 @@
 {% endif %}
 
 <h2>{{page.title}}</h2>
+<div class="wikicontents">
 {{page.contents|markdown}}
+</div>
 
 {%if page.history%}
 <p style="font-size: small">
index d0b12f5a7e89bec4d5877e4ed7b4dd977b1b652d..2a17802caba0fe07ee9679463ff8a0b89e8e5e32 100644 (file)
@@ -42,7 +42,9 @@ table.pageform textarea {
 {%if not baseform%}
 <tr>
  <td><fieldset><legend>Preview</legend>
+<div class="wikicontents">
 {{preview|markdown}}
+</div>
 </fieldset></td>
 </tr>
 <tr>