aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/User.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-04-26 17:32:09 +0700
committerGravatar Ugnich Anton2014-04-26 17:32:09 +0700
commit1c553475725f6e1145c0bf4acdcf647a979b3765 (patch)
tree7c57c78f1b424476f5e72be4c6db07ef61f86cf7 /src/java/com/juick/http/www/User.java
parent0b3c15851c0fbad3ee63cf0df298186a26d2a462 (diff)
Link to all message with tag
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r--src/java/com/juick/http/www/User.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java
index abe96759..7ce89895 100644
--- a/src/java/com/juick/http/www/User.java
+++ b/src/java/com/juick/http/www/User.java
@@ -127,6 +127,11 @@ public class User {
if (mids.size() > 0) {
out.println("<section id=\"content\">");
+
+ if (paramTag != null) {
+ out.println("<p class=\"page\"><a href=\"/tag/" + URLEncoder.encode(paramTag.Name, "UTF-8") + "\">← Все записи с тегом <b>" + Utils.encodeHTML(paramTag.Name) + "</b></a></p>");
+ }
+
PageTemplates.printMessages(out, sql, user, mids, visitor, visitor == null ? 4 : 5, 0);
if (mids.size() >= 20) {