[Libreoffice-commits] .: bug/bug bug/bug.xhtml

Loic Dachary loic at kemper.freedesktop.org
Sat Sep 17 04:31:40 PDT 2011


 bug/bug.xhtml   |    7 ++++---
 bug/bug/bug.css |   14 ++++++--------
 bug/bug/bug.js  |    3 ---
 3 files changed, 10 insertions(+), 14 deletions(-)

New commits:
commit b29748e63b2872390010ac8e1f111178d1cf3b8b
Author: Loic Dachary <loic at dachary.org>
Date:   Sat Sep 17 13:31:30 2011 +0200

    all state share the same error, remove useless comment and factorize the css

diff --git a/bug/bug.xhtml b/bug/bug.xhtml
index 077178b..affe3e1 100644
--- a/bug/bug.xhtml
+++ b/bug/bug.xhtml
@@ -30,6 +30,8 @@
         </div>
       </div>
       <div class="right">
+        <div class="username"></div>
+
         <div class="submission">
           Thank you for using LibreOffice, we regret that you seem to have found a problem in our software, so that you decided to report a bug. This assistant will lead you step by step through the bug report process.
         </div>
@@ -42,7 +44,6 @@
 	    User: <input class='user' type="text" name="user"></input>
 	    Password: <input class='password' type="password" name="password"></input>
 	    <div class="go">Sign in</div>
-	    <div class="error"></div>
 	  </div>
 	  <div>
 	    Or <a href="/enter_bug.cgi" target="_blank">signup</a>.
@@ -98,7 +99,6 @@
 
           <div class="state state_submit">
     	    <div class="go">SUBMIT</div>
-            <div class="error"></div>
             <div class="bug"></div>
 	  </div>
 
@@ -128,10 +128,11 @@
 	     <input type="file" name="data"></input>
 	     <input type="submit" value="Upload"></input>
 	  </form>
-	  <div class="error"></div>
 	  <img title="SCREENSHOT" />
 	</div>
 
+	<div class="error"></div>
+            
         <div class="copyright">
           Bug Submission Assistant is copyright (C) 2011 Loic Dachary published under <a href="http://www.gnu.org/licenses/gpl.txt">GNU GPLv3+</a> : download the <a href="bug.js">sources</a>.
         </div>
diff --git a/bug/bug/bug.css b/bug/bug/bug.css
index 1302565..e311113 100644
--- a/bug/bug/bug.css
+++ b/bug/bug/bug.css
@@ -40,6 +40,12 @@ body {
     border: 3px solid #18A303;
 }
 
+/* error */
+
+.error {
+    background-color: #ff5555;
+}
+
 /* signin */
 .signin {
     margin: 5px;
@@ -47,10 +53,6 @@ body {
     display: none;
 }
 
-.signin .error {
-    background-color: #ff5555;
-}
-
 .signin .go {
     background-color: #BADA55;
 }
@@ -97,10 +99,6 @@ body {
     display: none;
 }
 
-.state_submit .error {
-    background-color: #ff5555;
-}
-
 .state_submit .go {
     background-color: #BADA55;
 }
diff --git a/bug/bug/bug.js b/bug/bug/bug.js
index 2aeec07..5525e37 100644
--- a/bug/bug/bug.js
+++ b/bug/bug/bug.js
@@ -38,9 +38,6 @@
             }
         },
 
-        // if this string is found in the page returned when 
-        // trying to login, it means the login / password combination
-        // is invalid.
         state_signin_error_regexp: 'class="throw_error">([^<]*)',
         state_signin_success_regexp: 'Log&nbsp;out</a>([^<]*)',
 


More information about the Libreoffice-commits mailing list