From 4c61b707dd00d0fe6041681cf183a1b41c32219b Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 12 Dec 2020 18:30:39 +0100 Subject: [PATCH] Make __PUBLISH__ not clickable --- stylesheet.css | 6 ++++++ templates/index.html | 16 ++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/stylesheet.css b/stylesheet.css index b7ab310..8e9b5fd 100644 --- a/stylesheet.css +++ b/stylesheet.css @@ -54,3 +54,9 @@ hr { .magicwords { padding-right: 5px; } +.magicwords-publish { + padding-right: 5px; + display: inline; + color: gray; + opacity: 0.8; +} diff --git a/templates/index.html b/templates/index.html index b67db29..29f6550 100644 --- a/templates/index.html +++ b/templates/index.html @@ -54,12 +54,16 @@ - {% for magicword in pad.magicwords %} - {{ magicword }} - {% if magicword %} -
{{ allmagicwords.append(magicword) }}
- {% endif %} - {% endfor %} + {% for magicword in pad.magicwords %} + {% if magicword == "__PUBLISH__" %} +

{{magicword}}

+ {% else %} + {{ magicword }} + {% endif %} + {% if magicword %} +
{{ allmagicwords.append(magicword) }}
+ {% endif %} + {% endfor %}