aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-12 14:58:52 +0300
committerGravatar Vitaly Takmazov2016-12-12 14:58:52 +0300
commit8a6e92fb858ea030dd8d4a1ac5da3c0ca9587b81 (patch)
treeab531d92989b5c48e3772a208d0f00c8ba078ac3
parent2ab55ec4cc52f45b5296fd888359d48804045f44 (diff)
juick-spring-www: fix tags and password templates
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/tags.html6
-rw-r--r--juick-spring-www/src/main/webapp/WEB-INF/templates/views/settings_password.html20
2 files changed, 14 insertions, 12 deletions
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/tags.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/tags.html
index 4d05b7fb..28ccadea 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/tags.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/partial/tags.html
@@ -1,3 +1,3 @@
-{% for tag in tags %}
- <a href="/tag/{{ tag | urlencode }}" title="{{ tag }}">{{ tag }}</a>
-{% endfor %} \ No newline at end of file
+<th:block th:each="tag:${tags}">
+ <a th:href="|/tag/${tag}|" th:title="${tag}" th:text="${tag}">Tag</a>
+</th:block> \ No newline at end of file
diff --git a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/settings_password.html b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/settings_password.html
index d1e7e075..c76363e5 100644
--- a/juick-spring-www/src/main/webapp/WEB-INF/templates/views/settings_password.html
+++ b/juick-spring-www/src/main/webapp/WEB-INF/templates/views/settings_password.html
@@ -8,15 +8,17 @@
<body>
<section id="content">
- <fieldset>
- <legend>Changing your password</legend>
- <form action="/settings" method="post">
- <input type="hidden" name="page" value="password"/>
- <p>Change password: <input type="password" name="password" size="8"/> <input type="submit"
- value=" Update "/><br/>
- <i>(max. length - 16 symbols)</i></p>
- </form>
- </fieldset>
+ <article layout:fragment="content">
+ <fieldset>
+ <legend>Changing your password</legend>
+ <form action="/settings" method="post">
+ <input type="hidden" name="page" value="password"/>
+ <p>Change password: <input type="password" name="password" size="8"/> <input type="submit"
+ value=" Update "/><br/>
+ <i>(max. length - 16 symbols)</i></p>
+ </form>
+ </fieldset>
+ </article>
</section>
<aside id="column">
<p layout:fragment="column" th:replace="views/partial/settings_tabs">Settings navigation</p>