Skip to content

Commit

Permalink
Merge pull request #1840 from RogerHaase/1816-csp
Browse files Browse the repository at this point in the history
fix CSP warning, remove inline style on moin-options-for-javascript #…
  • Loading branch information
RogerHaase authored Feb 23, 2025
2 parents 191f9df + 2100f97 commit 76c451f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/moin/static/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ div.no-borders,
#moin-creditlogos a { display: grid; }
#moin-credits-container { display: flex; width: 100%; justify-content: space-between;
align-items: end; margin-bottom: 10pt; }
#moin-options-for-javascript {display: none; }

/* ordered lists */
ol,
Expand Down
2 changes: 1 addition & 1 deletion src/moin/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
<h1>Extend this block only if you want to change layout. If you want to put content, extend layout.html and use placeholders item and content.</h1>
{%- endblock %}

<div id="moin-options-for-javascript" style="display: none">
<div id="moin-options-for-javascript">
<input id="moin-wiki-root" value="{{ theme_supp.wiki_root }}" >
{% block options_for_javascript %}
{#- implement this block to pass server side options to client side javascript. -#}
Expand Down

0 comments on commit 76c451f

Please sign in to comment.