From f2ae09482bb4a9e31998fe165e5c742c2205c519 Mon Sep 17 00:00:00 2001 From: Christos KK Loverdos Date: Thu, 23 May 2013 17:47:58 +0300 Subject: [PATCH] Change footer according to the rest of the site Refs #3785 --- src/gr/grnet/pithos/web/client/StatusPanel.java | 30 +++++++++-------------- src/gr/grnet/pithos/web/public/pithos.css | 10 ++++++++ 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/gr/grnet/pithos/web/client/StatusPanel.java b/src/gr/grnet/pithos/web/client/StatusPanel.java index 97cee7b..f1a7f44 100644 --- a/src/gr/grnet/pithos/web/client/StatusPanel.java +++ b/src/gr/grnet/pithos/web/client/StatusPanel.java @@ -34,14 +34,8 @@ */ package gr.grnet.pithos.web.client; -import com.google.gwt.core.client.GWT; import com.google.gwt.i18n.client.Dictionary; -import com.google.gwt.user.client.ui.Anchor; -import com.google.gwt.user.client.ui.Composite; -import com.google.gwt.user.client.ui.HTML; -import com.google.gwt.user.client.ui.HasHorizontalAlignment; -import com.google.gwt.user.client.ui.HorizontalPanel; -import com.google.gwt.user.client.ui.VerticalPanel; +import com.google.gwt.user.client.ui.*; /** * The panel that displays a status bar with quota information. @@ -53,6 +47,12 @@ public class StatusPanel extends Composite { */ public StatusPanel() { Dictionary otherProperties = Dictionary.getDictionary("otherProperties"); + final String SERVICE_NAME = otherProperties.get("SERVICE_NAME"); + final String SERVICE_URL = otherProperties.get("SERVICE_URL"); + final String COMPANY_NAME = otherProperties.get("COMPANY_NAME"); + final String COMPANY_URL = otherProperties.get("COMPANY_URL"); + final String COPYRIGHT_MESSAGE = otherProperties.get("COPYRIGHT_MESSAGE"); + final String SYNNEFO_JS_LIB_VERSION = otherProperties.get("SYNNEFO_JS_LIB_VERSION"); HorizontalPanel outer = new HorizontalPanel(); outer.setWidth("100%"); @@ -62,20 +62,14 @@ public class StatusPanel extends Composite { inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); HorizontalPanel firstLine = new HorizontalPanel(); firstLine.setSpacing(8); - firstLine.add(new Anchor("About")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Help")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Contact")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Terms")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Privacy")); + firstLine.add(new HTML("" + COPYRIGHT_MESSAGE + "")); inner.add(firstLine); HorizontalPanel secondLine = new HorizontalPanel(); - secondLine.add(new HTML("Pithos Web Client v" + otherProperties.get("version") + " Copyright (C) 2011-2013 Greek Research and Technology Network")); - secondLine.addStyleName("grnet-sign"); + secondLine.add(new HTML( + "
Powered by Synnefo v " + SYNNEFO_JS_LIB_VERSION + "
")); + secondLine.addStyleName("software"); inner.add(secondLine); outer.add(inner); outer.addStyleName("pithos-statusbar"); diff --git a/src/gr/grnet/pithos/web/public/pithos.css b/src/gr/grnet/pithos/web/public/pithos.css index cef60f6..aaba424 100644 --- a/src/gr/grnet/pithos/web/public/pithos.css +++ b/src/gr/grnet/pithos/web/public/pithos.css @@ -417,6 +417,16 @@ table.pithos-permList.props-labels { color: #72ADC8; } +.software { + font-size: 0.6em; + margin-top: 7px; + color: #fff; +} + +.version { + font-weight: bold; +} + .pithos-logo { position: absolute; top: 65px; -- 1.7.10.4