Make __PUBLISH__ not clickable

This commit is contained in:
Luke Murphy 2020-12-12 18:30:39 +01:00
parent 37994f3b4c
commit 4c61b707dd
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 16 additions and 6 deletions

View File

@ -54,3 +54,9 @@ hr {
.magicwords { .magicwords {
padding-right: 5px; padding-right: 5px;
} }
.magicwords-publish {
padding-right: 5px;
display: inline;
color: gray;
opacity: 0.8;
}

View File

@ -55,7 +55,11 @@
<!-- WOW --> <!-- WOW -->
<td class="magicwords"> <td class="magicwords">
{% for magicword in pad.magicwords %} {% for magicword in pad.magicwords %}
{% if magicword == "__PUBLISH__" %}
<p class="magicwords-publish">{{magicword}}</p>
{% else %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a> <a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endif %}
{% if magicword %} {% if magicword %}
<div style="display:none;">{{ allmagicwords.append(magicword) }}</div> <div style="display:none;">{{ allmagicwords.append(magicword) }}</div>
{% endif %} {% endif %}