diff --git a/conference.go b/conference.go index 528d812..e556cf0 100644 --- a/conference.go +++ b/conference.go @@ -95,7 +95,7 @@ func Conferences(ctxt ui.AmContext) (string, any, error) { return "framed_template", "conflist.jet", err } -/* Topics displayes the list of topics in a conference. +/* Topics displays the list of topics in a conference. * Parameters: * ctxt - The AmContext for the request. * Returns: @@ -167,6 +167,14 @@ func Topics(ctxt ui.AmContext) (string, any, error) { return "framed_template", "topiclist.jet", nil } +/* NewTopicForm displays the form for creating a new topic. + * Parameters: + * ctxt - The AmContext for the request. + * Returns: + * Command string dictating what to be rendered. + * Data as a parameter for the command string. + * Standard Go error status. + */ func NewTopicForm(ctxt ui.AmContext) (string, any, error) { cmd, arg, err := singleConferencePrequel(ctxt) if cmd != "" { diff --git a/ui/views/new_topic.jet b/ui/views/new_topic.jet index 85d0743..3aab8cc 100644 --- a/ui/views/new_topic.jet +++ b/ui/views/new_topic.jet @@ -8,11 +8,46 @@ *}
+ Your post did not contain any spelling errors. +
++ {{ if nError == 1 }} + There was 1 spelling error in your post. + {{ else }} + There were {{ nError }} spelling errors in your post. + {{ end }} +
+{{ previewPb }}
+