From ec712cc4c0e12329f51d10d9bd626d1859a011b8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 15 Apr 2018 21:13:20 +0200 Subject: refactor(templates/render): Add generic post editing template Adds a generic template that can be used for submitting, responding to and editing posts. --- templates/new-thread.html | 56 ------------------------- templates/post.html | 103 ++++++++++++++++++++++++++++++++++++++++++++++ templates/thread.html | 2 +- 3 files changed, 104 insertions(+), 57 deletions(-) delete mode 100644 templates/new-thread.html create mode 100644 templates/post.html (limited to 'templates') diff --git a/templates/new-thread.html b/templates/new-thread.html deleted file mode 100644 index 855626b8e423..000000000000 --- a/templates/new-thread.html +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - Converse Index - - -
- -
-
-
- {% for alert in alerts %} -
{{ alert }}
- {% endfor %} -

Make your own thread on these here forums!

-

Remember that you can use Markdown when - writing your posts.

-
-
-
-
- Title: -
- -
-
-
-
-
- Body: -
- -
-
-
-
- -
-
-
-
-
- - diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 000000000000..74cf03abf307 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,103 @@ + + + + + + + + + + + Converse Index + + +
+ +
+
+
+ {%- for alert in alerts %} +
{{ alert }}
+ {% endfor -%} + + {%- if mode == "NewThread" %} +
Create a new thread
+ {% elif mode == "PostReply" %} +
Respond to thread '{{ title }}'
+ {% elif mode == "EditPost" %} +
Edit your post
+ {% endif -%} +
+
+ {% if mode == "NewThread" %} +
+ {% elif mode == "PostReply" %} + + {% elif mode == "EditPost" %} + + {% endif %} + {% if mode == "PostReply" %} + + {% elif mode == "EditPost" %} + + {% endif %} + + {% if mode == "NewThread" %} +
+
+ Title: +
+ +
+ {% endif %} + +
+
+
+ Post: +
+ +
+
+

+ Remember that you can use Markdown when + writing your posts: +

+

*italic text*

+

**bold text**

+

~strikethrough text~

+

[link text](https://some.link.com/)

+

![image text](https://foo.com/thing.jpg)

+

Use * or - to enumerate lists.

+

See Markdown documentation for more information!

+
+
+ +
+
+
+ + diff --git a/templates/thread.html b/templates/thread.html index f11b96b4d7af..6a89135cd223 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -55,7 +55,7 @@
- +
-- cgit 1.4.1