aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/User.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-01-29 23:45:00 +0700
committerGravatar Ugnich Anton2013-01-29 23:45:00 +0700
commitcdbf949013fe140fed0e5ad79ad6111c97ea07ad (patch)
treef6ce3225d78eacca649fe219f0aded18f718d864 /src/java/com/juick/http/www/User.java
parent6a6b574cd010f01b4d26907707a28e70d3e384c6 (diff)
Sape optimization
Diffstat (limited to 'src/java/com/juick/http/www/User.java')
-rw-r--r--src/java/com/juick/http/www/User.java17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/java/com/juick/http/www/User.java b/src/java/com/juick/http/www/User.java
index 8574eaab..2faf695b 100644
--- a/src/java/com/juick/http/www/User.java
+++ b/src/java/com/juick/http/www/User.java
@@ -132,14 +132,20 @@ public class User {
}
out.println("<p class=\"page\"><a href=\"" + nextpage + "\">Older →</a></p>");
}
+ PageTemplates.pageFooter(request, out, locale, visitor, true);
out.println("</div>");
pageUserColumn(out, sql, user, visitor, locale);
out.println("</div>");
+
+ out.println("<div id=\"rcol\" class=\"abs\">");
+ PageTemplates.pageYandexAd(out, visitor == null ? 4 : 5); // разный ID для залогиненых и нет
+ out.println("</div>");
+
out.println("</div>"); // topwrapper
PageTemplates.pageDialogTemplate(out, locale);
- PageTemplates.pageFooter(request, out, locale, visitor, true);
+ PageTemplates.pageEnd(out);
} finally {
out.close();
}
@@ -164,13 +170,14 @@ public class User {
out.println("<div id=\"wrapper\">");
out.println("<div id=\"content\">");
out.println("<p>" + pageUserTags(sql, user, visitor, 0) + "</p>");
+ PageTemplates.pageFooter(request, out, locale, visitor, false);
out.println("</div>");
pageUserColumn(out, sql, user, visitor, locale);
out.println("</div>");
out.println("</div>");
PageTemplates.pageDialogTemplate(out, locale);
- PageTemplates.pageFooter(request, out, locale, visitor, false);
+ PageTemplates.pageEnd(out);
} finally {
out.close();
}
@@ -215,13 +222,14 @@ public class User {
}
out.println("</tr></table>");
+ PageTemplates.pageFooter(request, out, locale, visitor, false);
out.println("</div>");
pageUserColumn(out, sql, user, visitor, locale);
out.println("</div>");
out.println("</div>");
PageTemplates.pageDialogTemplate(out, locale);
- PageTemplates.pageFooter(request, out, locale, visitor, false);
+ PageTemplates.pageEnd(out);
} finally {
out.close();
}
@@ -266,13 +274,14 @@ public class User {
}
out.println("</tr></table>");
+ PageTemplates.pageFooter(request, out, locale, visitor, false);
out.println("</div>");
pageUserColumn(out, sql, user, visitor, locale);
out.println("</div>");
out.println("</div>");
PageTemplates.pageDialogTemplate(out, locale);
- PageTemplates.pageFooter(request, out, locale, visitor, false);
+ PageTemplates.pageEnd(out);
} finally {
out.close();
}