diff options
author | 2013-12-14 00:16:21 +0700 | |
---|---|---|
committer | 2013-12-14 00:16:21 +0700 | |
commit | 174f7d40d76ad138dbe2ffa81dd0e2d7cdaccd24 (patch) | |
tree | 564ab0a7edb140d4055af8a25b692e6fbc0a76fe /src/java | |
parent | 522dc220a02c36e208935e9f6789c547616269e4 (diff) |
Link to advertising page
Diffstat (limited to 'src/java')
-rw-r--r-- | src/java/Global.properties | 1 | ||||
-rw-r--r-- | src/java/Global_ru.properties | 1 | ||||
-rw-r--r-- | src/java/com/juick/http/www/PageTemplates.java | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/src/java/Global.properties b/src/java/Global.properties index 27c74eaa..4514ba6e 100644 --- a/src/java/Global.properties +++ b/src/java/Global.properties @@ -15,6 +15,7 @@ Logout=Logout Login=Login Contacts=Contacts Help=Help +Advertising=Advertising Older=Older Newer=Newer (replies)\ by=by diff --git a/src/java/Global_ru.properties b/src/java/Global_ru.properties index 2bf0909b..4b2e1e04 100644 --- a/src/java/Global_ru.properties +++ b/src/java/Global_ru.properties @@ -15,6 +15,7 @@ Logout=\u0412\u044b\u0439\u0442\u0438 Login=\u0412\u043e\u0439\u0442\u0438 Contacts=\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u044b Help=\u0421\u043f\u0440\u0430\u0432\u043a\u0430 +Advertising=\u0420\u0435\u043a\u043b\u0430\u043c\u0430 Older=\u0421\u0442\u0430\u0440\u044b\u0435 Newer=\u041d\u043e\u0432\u044b\u0435 (replies)\ by=\u043e\u0442 diff --git a/src/java/com/juick/http/www/PageTemplates.java b/src/java/com/juick/http/www/PageTemplates.java index 768406d9..3718bc9e 100644 --- a/src/java/com/juick/http/www/PageTemplates.java +++ b/src/java/com/juick/http/www/PageTemplates.java @@ -186,7 +186,7 @@ public class PageTemplates { public static void pageFooter(HttpServletRequest request, PrintWriter out, Locale loc, com.juick.User visitor, boolean sapeon) { ResourceBundle rb = ResourceBundle.getBundle("Global", loc); out.println("<div id=\"fwrapper\"><div id=\"footer\">"); - out.println(" <div id=\"footer-right\"><a href=\"/help/ru/contacts\" rel=\"nofollow\">" + rb.getString("Contacts") + "</a> · <a href=\"/help/\" rel=\"nofollow\">" + rb.getString("Help") + "</a></div>"); + out.println(" <div id=\"footer-right\"><a href=\"/help/ru/contacts\" rel=\"nofollow\">" + rb.getString("Contacts") + "</a> · <a href=\"/help/\" rel=\"nofollow\">" + rb.getString("Help") + "</a> · <a href=\"/help/ru/adv\" rel=\"nofollow\">" + rb.getString("Advertising") + "</a></div>"); out.print(" <div id=\"footer-left\">juick.com © 2008-2013"); if (sapeon && sape != null && (visitor == null || visitor.UID == 1) && request.getQueryString() == null) { String links = sape.getPageLinks(request.getRequestURI(), request.getCookies()).render(); @@ -450,7 +450,7 @@ public class PageTemplates { out.println(" <div class=\"msg-header\"><a href=\"/" + msg.User.UName + "/\">@" + msg.User.UName + "</a>:" + tags + "</div>"); out.print(" <div class=\"msg-ts\"><a href=\"/" + msg.User.UName + "/" + msg.MID + "\" title=\"" + msg.TimestampString + " GMT\">" + formatDate(msg.TimeAgo, msg.TimestampString, locale) + "</a>"); if (msg.MID == ad_mid) { - out.print(" · " + rb.getString("Sponsored")); + out.print(" · <a href=\"/help/ru/adv\">" + rb.getString("Sponsored") + "</a>"); } out.println("</div>"); |