Skip to content

Commit

Permalink
Add label indicating Markdown is allowed in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smithellis committed Aug 30, 2024
1 parent ae5445d commit 8a75795
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moderator/moderate/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def clean(self):
msg = "Only members of the NDA group can create NDA events."
raise forms.ValidationError(msg)
# Don't allow non-superusers to modify moderation status or moderators
if not cdata['moderators']:
if not cdata["moderators"]:
msg = "An event should have at least one moderator."
raise forms.ValidationError(msg)

Expand All @@ -127,7 +127,7 @@ class Meta:
"moderators",
"archived",
"users_can_vote",
"event_date"
"event_date",
]
widgets = (
{
Expand Down
4 changes: 4 additions & 0 deletions moderator/moderate/templates/questions.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@
{% if q_form.question.errors %}
has-error
{% endif %}" id="question-input">
<label for="{{ q_form.question.id_for_label }}">
Ask your question below.
<a href="https://guides.github.com/features/mastering-markdown/" target="_blank">Markdown supported.</a>
</label>
{{ q_form.question }}
{{ q_form.question.errors }}
</div>
Expand Down

0 comments on commit 8a75795

Please sign in to comment.