Fix up a couple of small styling issues and things
parent
d9b9b20bf7
commit
fd4b11fe38
|
@ -16,10 +16,10 @@
|
||||||
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand d-flex" href="/">Wiki</a>
|
<a class="navbar-brand d-flex" href="/">Wiki</a>
|
||||||
<form class="d-flex">
|
<!-- form class="d-flex">
|
||||||
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
|
<input class="form-control me-2" type="search" placeholder="Search" aria-label="Search">
|
||||||
<button class="btn btn-outline-light" type="submit">Search</button>
|
<button class="btn btn-outline-light" type="submit">Search</button>
|
||||||
</form>
|
</form -->
|
||||||
<ul class="navbar-nav">
|
<ul class="navbar-nav">
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<div><div><div id="editor"><div></div></div>
|
<div><div><div id="editor"><div></div></div>
|
||||||
<div id="page-body-help" class="form-text">The content of the page, in reStructuredText</div>
|
<div id="page-body-help" class="form-text">The content of the page, in reStructuredText</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="mb-3">
|
<div class="mt-3">
|
||||||
<button type="submit" class="btn btn-primary">Save</button>
|
<button type="submit" class="btn btn-primary">Save</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
@ -28,7 +28,13 @@
|
||||||
</style>
|
</style>
|
||||||
<script src="/static/js/ace/ace.js"></script>
|
<script src="/static/js/ace/ace.js"></script>
|
||||||
<script>
|
<script>
|
||||||
var editor = ace.edit("editor", {mode: "ace/mode/rst", showPrintMargin: false, useSoftTabs: true});
|
var editor = ace.edit("editor", {
|
||||||
|
fontSize: "10pt",
|
||||||
|
fontFamily: "monospace",
|
||||||
|
mode: "ace/mode/rst",
|
||||||
|
showPrintMargin: false,
|
||||||
|
useSoftTabs: true
|
||||||
|
});
|
||||||
editor.setValue(document.getElementById("page-body").value, -1);
|
editor.setValue(document.getElementById("page-body").value, -1);
|
||||||
editor.on('change', function() {
|
editor.on('change', function() {
|
||||||
document.getElementById("page-body").value = editor.getSession().getValue();
|
document.getElementById("page-body").value = editor.getSession().getValue();
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends 'admin/master.html' %}
|
{% extends 'admin/my_master.html' %}
|
||||||
{% from "security/_macros.html" import render_field, render_field_with_errors, render_checkbox_field %}
|
{% from "security/_macros.html" import render_field, render_field_with_errors, render_checkbox_field %}
|
||||||
{% include "security/_messages.html" %}
|
{% include "security/_messages.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
|
|
Loading…
Reference in New Issue