From 2f682b5e3cfc3fc5f961b60129be7bc90e0d6a03 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 28 Dec 2016 22:38:21 +0300 Subject: juick-www: now on spring-webmvc --- .../src/main/webapp/WEB-INF/layouts/content.html | 27 +++++++++++++++ juick-www/src/main/webapp/WEB-INF/layouts/rss.xml | 38 ++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 juick-www/src/main/webapp/WEB-INF/layouts/content.html create mode 100644 juick-www/src/main/webapp/WEB-INF/layouts/rss.xml (limited to 'juick-www/src/main/webapp/WEB-INF/layouts') diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/content.html b/juick-www/src/main/webapp/WEB-INF/layouts/content.html new file mode 100644 index 00000000..6a564034 --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/layouts/content.html @@ -0,0 +1,27 @@ + + + + + + + + {% block headers %} + {{ headers | raw }} + {% endblock %} + {{ title }} + + + + + {% include "views/partial/navigation" %} +
+ {% block content %} + {% endblock %} +
+ + {% include "views/partial/footer" %} + + \ No newline at end of file diff --git a/juick-www/src/main/webapp/WEB-INF/layouts/rss.xml b/juick-www/src/main/webapp/WEB-INF/layouts/rss.xml new file mode 100644 index 00000000..23866c8a --- /dev/null +++ b/juick-www/src/main/webapp/WEB-INF/layouts/rss.xml @@ -0,0 +1,38 @@ + + + + + {{ user.getName() }} - Juick + http://juick.com/{{ user.getName() }}/ + The latest messages by @{{ user.getName() }} at Juick + + http://i.juick.com/a/{{ user.getUid() }}.png + {{ user.getName() }} - Juick + http://juick.com/{{ user.getName() }}/ + + {% for msg in msgs %} + + http://juick.com/{{ msg.getUser().getName() }}/{{ msg.getMid() }} + http://juick.com/{{ msg.getUser().getName() }}/{{ msg.getMid() }} + <![CDATA[@{{ msg.getUser().getName() }}: {% for tag in msg.getTags() %} *{{ tag }}{% endfor %}]]> + + {{ sdfRSS.format(msg.getDate()) }} + http://juick.com/{{ msg.getUser().getName() }}/{{ msg.getMid() }} + {% for tag in msg.getTags() %} + {{ tag }} + {% endfor %} + {% if msg.getAttachmentType() is not empty %} + {% if msg.getAttachmentType() == "jpg" %} + + + {% elseif msg.getAttachmentType() == "png" %} + + + {% endif %} + {% endif %} + + + {% endfor %} + + -- cgit v1.2.3