Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Commit

Permalink
Only show HTML notice if HTML is allowed
Browse files Browse the repository at this point in the history
  • Loading branch information
phihag committed Feb 7, 2013
1 parent 44a787a commit d300241
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion adhocracy/templates/instance/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ <h3>${_("Create new instance")}</h3>
<legend>${_("Description")}</legend>
<p class="info">
${_("Describe what the goals of this instance are and who constitutes "
"its community. (Both Markdown and HTML are allowed here.)")}
"its community.")}
${_("(Both Markdown and HTML are allowed here.)") if h.text.getconf_allow_user_html() else ""}
</p>
<textarea tabindex="3" class="description" name="description"></textarea>
${components.formatting()}
Expand Down
2 changes: 1 addition & 1 deletion adhocracy/templates/instance/settings_general.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h2>${c.settings_menu.current['label']}</h2>
${forms.input(_("Name"), 'label', 1)}

<%forms:textarea label="${_('Description')}" name="description" value="" tabindex="5"
help="${_('Describe what the goals of this instance are and who constitutes its community. (Both Markdown and HTML are allowed here.)')}">
help="${_('Describe what the goals of this instance are and who constitutes its community.')} ${_('(Both Markdown and HTML are allowed here.)') if h.text.getconf_allow_user_html(true) else ''}">
${components.formatting()}
</%forms:textarea>

Expand Down

0 comments on commit d300241

Please sign in to comment.