diff --git a/src/util/BaseHttpServlet.java b/src/util/BaseHttpServlet.java index 816facb..719192b 100644 --- a/src/util/BaseHttpServlet.java +++ b/src/util/BaseHttpServlet.java @@ -33,6 +33,7 @@ import com.google.appengine.api.datastore.Entity; import com.google.appengine.api.datastore.Text; +import com.google.appengine.api.utils.SystemProperty; import contestTabulation.Level; @@ -68,6 +69,8 @@ public Pair init(VelocityContext context, HttpServletRequest } } + context.put("applicationVersion", SystemProperty.applicationVersion.get().split("\\.")[0].replace('-', '.')); + return new Pair(contestInfo, userCookie); } diff --git a/war/WEB-INF/app.yaml b/war/WEB-INF/app.yaml index 9a4a4f3..66de22a 100644 --- a/war/WEB-INF/app.yaml +++ b/war/WEB-INF/app.yaml @@ -15,7 +15,7 @@ # along with this program. If not, see [http://www.gnu.org/licenses/]. application: villagetmsca -version: 7-0-0 +version: 7-6-0 runtime: java threadsafe: false sessions_enabled: true diff --git a/war/WEB-INF/appengine-web.xml b/war/WEB-INF/appengine-web.xml index 983627c..2527ec2 100644 --- a/war/WEB-INF/appengine-web.xml +++ b/war/WEB-INF/appengine-web.xml @@ -1,7 +1,7 @@ villagetmsca - 7-0-0 + 7-6-0 diff --git a/war/html/snippets/head.html b/war/html/snippets/head.html index 6bba243..f9c2dbc 100644 --- a/war/html/snippets/head.html +++ b/war/html/snippets/head.html @@ -98,5 +98,7 @@ if (window.top !== window.self) window.top.location.replace(window.self.location.href); + + $('#applicationVersion[data-toggle="tooltip"]').tooltip() }); diff --git a/war/html/snippets/navbar.html b/war/html/snippets/navbar.html index f4c2dc6..fcbe5ab 100644 --- a/war/html/snippets/navbar.html +++ b/war/html/snippets/navbar.html @@ -47,6 +47,12 @@ #end #end +