Filter webapp/* so we don't have to hard-code the version number. Display version...
authorMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 29 Jun 2011 23:43:23 +0000 (16:43 -0700)
committerMichael Jumper <zhangmaike@users.sourceforge.net>
Wed, 29 Jun 2011 23:43:23 +0000 (16:43 -0700)
pom.xml
src/main/webapp/index.html
src/main/webapp/styles/guacamole.css

diff --git a/pom.xml b/pom.xml
index d30a0bd..b4bf0f0 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-war-plugin</artifactId>
                 <configuration>
+                    
+                    <!-- Filter webapp dir --> 
+                    <webResources>
+                        <resource>
+                            <directory>src/main/webapp</directory>
+                            <filtering>true</filtering>
+                        </resource>
+                    </webResources>
+                    
+                    <!-- Add guacamole-common-js -->
                     <overlays>
                         <overlay>
                             <groupId>net.sourceforge.guacamole</groupId>
@@ -36,6 +46,7 @@
                             <type>zip</type>
                         </overlay>
                     </overlays>
+                    
                 </configuration>
             </plugin>
 
index cd0cf2b..6bd09bd 100644 (file)
                         <div id="buttons">
                             <input type="submit" name="login" id="login" value="Login"/>
                         </div>
+
                     </form>
                 </div>
 
+                <div id="version-dialog">Guacamole ${project.version}</div>
+
             </div>
         </div>
 
@@ -83,7 +86,7 @@
                 <button id="CtrlAltDelete">Ctrl-Alt-Delete</button>
 
                 <!-- Logo and status -->
-                <img id="logo" src="images/guacamole-logo.png" alt="Guacamole" title="Guacamole 0.4.0"/>
+                <img id="logo" src="images/guacamole-logo.png" alt="Guacamole" title="Guacamole ${project.version}"/>
                 <span id="state"></span>
 
                 <a href="agpl-3.0-standalone.html"><img id="license" src="images/agpl-logo.png" alt="AGPLv3"/></a>
index 6f2b9a3..9f9c612 100644 (file)
@@ -92,6 +92,17 @@ div#login-dialog #login-fields {
     padding-bottom: 0.5em;
 }
 
+div#login-ui #version-dialog {
+    position: fixed;
+    right: 0;
+    bottom: 0;
+    text-align: right;
+    font-style: italic;
+    font-size: 0.75em;
+    color: black;
+    padding: 0.25em;
+}
+
 div.errorDialogOuter {
     display: table;
     height: 100%;
@@ -185,7 +196,6 @@ img {
 }
 
 img#license {
-    border: none;
     float: right;
     margin: 2px;
 }