From 583881927b4f465cf1310967214bb60af2a7eea0 Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Wed, 17 Feb 2021 20:50:41 -0800 Subject: [PATCH] Add edit tab --- redstring/templates/base.jinja | 3 +++ redstring/templates/doc.jinja | 1 + redstring/templates/edit.jinja | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/redstring/templates/base.jinja b/redstring/templates/base.jinja index 0293aa2..3517b05 100644 --- a/redstring/templates/base.jinja +++ b/redstring/templates/base.jinja @@ -58,6 +58,9 @@ div.tab-right { margin-left: auto; } + div.tab-right ~ div.tab-right { + margin: 0 4px; + } div.tab-page { width: 100%; border-top: 2px solid #bbb; diff --git a/redstring/templates/doc.jinja b/redstring/templates/doc.jinja index 025f0a6..ccf787f 100644 --- a/redstring/templates/doc.jinja +++ b/redstring/templates/doc.jinja @@ -75,6 +75,7 @@ window.onload = function () { {%- endif -%} {%- endfor -%} {%- if not index -%} +
edit
index
{%- endif -%} diff --git a/redstring/templates/edit.jinja b/redstring/templates/edit.jinja index ebe3771..65f3f27 100644 --- a/redstring/templates/edit.jinja +++ b/redstring/templates/edit.jinja @@ -156,7 +156,7 @@ window.onload = function () { {% for tag in tab.tags %}
{{ tag.name }}
-
{{ tag.value }}
+
{{ tag.value|e }}
{%- if tag.name != 'id' -%}