diff options
author | Ugnich Anton | 2014-02-23 12:11:58 +0700 |
---|---|---|
committer | Ugnich Anton | 2014-02-23 12:11:58 +0700 |
commit | e67f01bb08125eae47c42965367dc96624e5f146 (patch) | |
tree | 416e60dc467ce78ec8584eda222c99204c4958a1 /src/java/com/juick/http/www/UserThread.java | |
parent | 4c5feeaf06e2f160bd75bf1919cb9920835efc87 (diff) |
isMobileRequest
Diffstat (limited to 'src/java/com/juick/http/www/UserThread.java')
-rw-r--r-- | src/java/com/juick/http/www/UserThread.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/java/com/juick/http/www/UserThread.java b/src/java/com/juick/http/www/UserThread.java index 095612d7..cf1ae76a 100644 --- a/src/java/com/juick/http/www/UserThread.java +++ b/src/java/com/juick/http/www/UserThread.java @@ -64,15 +64,21 @@ public class UserThread { PrintWriter out = response.getWriter(); try { PageTemplates.pageHead(out, title, "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"@" + msg.User.UName + "\" href=\"//rss.juick.com/" + msg.User.UName + "/blog\"/>"); - PageTemplates.pageNavigation(out, visitor, null); + + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageNavigation(out, visitor, null); + } out.println("<section id=\"content\" style=\"margin-left: 0; width: 100%\">"); printMessage(out, sql, msg, visitor); printReplies(out, sql, msg, visitor, listview); out.println("</section>"); + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageFooter(request, out, visitor, false); + } + PageTemplates.pageDialogTemplate(out); - PageTemplates.pageFooter(request, out, visitor, false); PageTemplates.pageEnd(out); } finally { out.close(); |