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/User.java | |
parent | 4c5feeaf06e2f160bd75bf1919cb9920835efc87 (diff) |
isMobileRequest
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r-- | src/java/com/juick/http/www/User.java | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java index 1e469a1d..c673edbd 100644 --- a/src/java/com/juick/http/www/User.java +++ b/src/java/com/juick/http/www/User.java @@ -109,7 +109,10 @@ public class User { PrintWriter out = response.getWriter(); try { PageTemplates.pageHead(out, title, "<link rel=\"alternate\" type=\"application/rss+xml\" title=\"@" + user.UName + "\" href=\"//rss.juick.com/" + user.UName + "/blog\"/>"); - PageTemplates.pageNavigation(out, visitor, null); + + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageNavigation(out, visitor, null); + } pageUserColumn(out, sql, user, visitor); @@ -134,7 +137,10 @@ public class User { out.println("</section>"); } - PageTemplates.pageFooter(request, out, visitor, true); + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageFooter(request, out, visitor, true); + } + PageTemplates.pageDialogTemplate(out); PageTemplates.pageEnd(out); } finally { @@ -149,7 +155,10 @@ public class User { PrintWriter out = response.getWriter(); try { PageTemplates.pageHead(out, "Теги " + user.UName, null); - PageTemplates.pageNavigation(out, visitor, null); + + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageNavigation(out, visitor, null); + } pageUserColumn(out, sql, user, visitor); @@ -157,7 +166,10 @@ public class User { out.println("<p>" + pageUserTags(sql, user, visitor, 0) + "</p>"); out.println("</section>"); - PageTemplates.pageFooter(request, out, visitor, false); + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageFooter(request, out, visitor, false); + } + PageTemplates.pageDialogTemplate(out); PageTemplates.pageEnd(out); } finally { @@ -172,7 +184,10 @@ public class User { PrintWriter out = response.getWriter(); try { PageTemplates.pageHead(out, "Подписки " + user.UName, null); - PageTemplates.pageNavigation(out, visitor, null); + + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageNavigation(out, visitor, null); + } pageUserColumn(out, sql, user, visitor); @@ -203,7 +218,10 @@ public class User { out.println("</tr></table>"); out.println("</section>"); - PageTemplates.pageFooter(request, out, visitor, false); + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageFooter(request, out, visitor, false); + } + PageTemplates.pageDialogTemplate(out); PageTemplates.pageEnd(out); } finally { @@ -218,7 +236,10 @@ public class User { PrintWriter out = response.getWriter(); try { PageTemplates.pageHead(out, "Читатели " + user.UName, null); - PageTemplates.pageNavigation(out, visitor, null); + + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageNavigation(out, visitor, null); + } pageUserColumn(out, sql, user, visitor); @@ -249,7 +270,10 @@ public class User { out.println("</tr></table>"); out.println("</section>"); - PageTemplates.pageFooter(request, out, visitor, false); + if (!Utils.isMobileRequest(request)) { + PageTemplates.pageFooter(request, out, visitor, false); + } + PageTemplates.pageDialogTemplate(out); PageTemplates.pageEnd(out); } finally { |