From fe4e0d7058a77ec8715f1a15f9374ec86b6fb9a5 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Mon, 10 Mar 2014 22:50:16 +0700 Subject: admin setPopular --- src/java/com/juick/http/www/PageTemplates.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/java/com') diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 535ec26f..bb89ea4d 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -54,7 +54,7 @@ public class PageTemplates { out.print("
"); out.print(""); out.print(""); - out.print(""); + out.print(""); if (headers != null) { out.print(headers); } @@ -136,7 +136,9 @@ public class PageTemplates { out.println(""); } @@ -514,6 +516,11 @@ public class PageTemplates { out.print("Комментировать "); } out.print("Рекомендовать"); + if (visitor != null && visitor.UID == 1) { + out.print(" +"); + out.print(" -"); + out.print(" x"); + } out.println(""); out.print("