diff --git a/BUGS.md b/BUGS.md index d6abc09..284ed21 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,6 +1,7 @@ # BUGS +- safari as vezes envia dois gets no inicio do topico. nesses casos, a segunda pergunta não é actualizada no browser... o topico tem de ser gerado qd se escolhe o topico em main_topics. O get nao deve alterar o estado. - click numa opcao checkbox fora da checkbox+label não está a funcionar. - shift-enter não está a funcionar - mathjax, formulas $$f(x)$$ nas opções de escolha multipla, não ficam centradas em toda a coluna mas apenas na largura do parágrafo. diff --git a/serve.py b/serve.py index 2bd144f..8c7d52c 100755 --- a/serve.py +++ b/serve.py @@ -215,7 +215,7 @@ class QuestionHandler(BaseHandler): 'textarea': 'question-textarea.html', # -- information panels -- 'information': 'question-information.html', - 'success': 'question-success.html', + 'success': 'question-information.html', 'warning': 'question-information.html', 'alert': 'question-information.html', } diff --git a/templates/question-information.html b/templates/question-information.html index 5561b6d..861bcb2 100644 --- a/templates/question-information.html +++ b/templates/question-information.html @@ -1,7 +1,18 @@ {% autoescape %} +{% if q['type'] == 'information' %}
+{% elif q['type'] == 'success' %} +
+
+{% elif q['type'] == 'warning' %} +
+
+{% elif q['type'] == 'alert' %} +
+
+{% end %}

{{ question['title'] }}

{{ md(question['text']) }} diff --git a/templates/question-success.html b/templates/question-success.html deleted file mode 100644 index 41c2be6..0000000 --- a/templates/question-success.html +++ /dev/null @@ -1,12 +0,0 @@ -{% autoescape %} - -

-
-

{{ question['title'] }}

-

- {{ md(question['text']) }} -

-
-
- - -- libgit2 0.21.2