From 3606d68de63064f8c44b124f089a909820f97058 Mon Sep 17 00:00:00 2001 From: zPlus <-> Date: Mon, 27 Mar 2017 17:10:05 +0200 Subject: [PATCH] Fix #46 Validation problems for users that have a space in their username --- template/comment.twig | 2 +- template/edit_comment.twig | 2 +- template/edit_post.twig | 2 +- template/index.twig | 2 +- template/post.twig | 2 +- template/reply.twig | 2 +- template/search.twig | 2 +- template/user_replies.twig | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/template/comment.twig b/template/comment.twig index 580f0bb3..4914c26e 100644 --- a/template/comment.twig +++ b/template/comment.twig @@ -8,7 +8,7 @@
{# Username #} - {{ comment.username }} + {{ comment.username }} {% diff --git a/template/edit_comment.twig b/template/edit_comment.twig index ba61dfbc..51edb459 100644 --- a/template/edit_comment.twig +++ b/template/edit_comment.twig @@ -6,7 +6,7 @@
- by {{ item.data.username }} + by {{ item.data.username }} {{ item.data.created|ago }}
diff --git a/template/edit_post.twig b/template/edit_post.twig index 279d5daf..8ff85a20 100644 --- a/template/edit_post.twig +++ b/template/edit_post.twig @@ -9,7 +9,7 @@
- by {{ item.data.username }} + by {{ item.data.username }} {{ item.data.created|ago }}
diff --git a/template/index.twig b/template/index.twig index 4c6694d3..8bcdb59f 100644 --- a/template/index.twig +++ b/template/index.twig @@ -54,7 +54,7 @@ _\(/_ .:.*_\/_* : /\ : %} {{ post.created|ago }} - by {{ post.username }} + by {{ post.username }}{{ post.commentsCount ? post.commentsCount }} comments diff --git a/template/post.twig b/template/post.twig index 6376ca25..cad9509c 100644 --- a/template/post.twig +++ b/template/post.twig @@ -23,7 +23,7 @@ } only %} - by {{ post.username }} {{ post.created|ago }} + by {{ post.username }} {{ post.created|ago }} — {{ post.vote }} votes, {{ post.commentsCount }} comments {% if user and post.userId == user.id %} diff --git a/template/reply.twig b/template/reply.twig index 7ff0e0e0..5cd3bcfe 100644 --- a/template/reply.twig +++ b/template/reply.twig @@ -1,7 +1,7 @@ {% include 'header.twig' %}
-

Reply to {{ comment.username }}

+

Reply to {{ comment.username }}

posted {{ comment.created|ago }} diff --git a/template/search.twig b/template/search.twig index 38184cd4..99ac99cf 100644 --- a/template/search.twig +++ b/template/search.twig @@ -19,7 +19,7 @@ diff --git a/template/user_replies.twig b/template/user_replies.twig index 43269ee1..71a252a5 100644 --- a/template/user_replies.twig +++ b/template/user_replies.twig @@ -12,7 +12,7 @@ read reply — - by {{ comment.username }} {{ comment.created|ago }} on {{ comment.postTitle }} + by {{ comment.username }} {{ comment.created|ago }} on {{ comment.postTitle }}