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 {
padding-right: 5px;
}
.magicwords-publish {
padding-right: 5px;
display: inline;
color: gray;
opacity: 0.8;
}

View File

@ -54,12 +54,16 @@
<!-- WOW -->
<td class="magicwords">
{% for magicword in pad.magicwords %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% if magicword %}
<div style="display:none;">{{ allmagicwords.append(magicword) }}</div>
{% endif %}
{% endfor %}
{% for magicword in pad.magicwords %}
{% if magicword == "__PUBLISH__" %}
<p class="magicwords-publish">{{magicword}}</p>
{% else %}
<a class="magicwords" href="#{{ magicword }}">{{ magicword }}</a>
{% endif %}
{% if magicword %}
<div style="display:none;">{{ allmagicwords.append(magicword) }}</div>
{% endif %}
{% endfor %}
</td>
<!--<td class="lastedited">{{ pad.lastedited_iso|datetimeformat }}</td>-->
<!--<td class="revisions">{{ pad.revisions }}</td>-->