diff mbox

[Branch,~linaro-validation/lava-server/trunk] Rev 223: Provide a more useful footer

Message ID 20110819042114.16581.66070.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Zygmunt Krynicki Aug. 19, 2011, 4:21 a.m. UTC
------------------------------------------------------------
revno: 223
committer: Zygmunt Krynicki <zygmunt.krynicki@linaro.org>
branch nick: pristine
timestamp: Sat 2011-08-13 02:26:55 +0200
message:
  Provide a more useful footer
  
  This new footer has five sections:
   * report a bug
   * documentation
   * source code
   * web standards
   * licensing and copyright.
  
  Each section acts like an accordion would but with a nicer UI.
modified:
  lava_server/htdocs/css/default.css
  lava_server/templates/layouts/content.html


--
lp:lava-server
https://code.launchpad.net/~linaro-validation/lava-server/trunk

You are subscribed to branch lp:lava-server.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-server/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_server/htdocs/css/default.css'
--- lava_server/htdocs/css/default.css	2011-07-25 23:18:01 +0000
+++ lava_server/htdocs/css/default.css	2011-08-13 00:26:55 +0000
@@ -158,38 +158,41 @@ 
 /* Footer */
 
 #lava-server-footer {
-}
-
-/* Copyright */
-#lava-server-copyright-trigger,
-#lava-server-copyright {
+  clear: both;
   margin: 1ex;
-  font-family: Ubuntu Condensed, Helvetica Neue, Verdana, sans-serif;
-  text-align: center;
-}
-
-#lava-server-copyright-trigger span {
   color: #999;
-  border-radius: 6pt;
+}
+
+#lava-server-topics {
+  text-align: justify;
+  font-family: Ubuntu Condensed, Helvetica Neue, Verdana, sans-serif;
+  font-size: 11pt;
+  border-left: 1px solid #08C;
+}
+
+#lava-server-topics a {
+  color: inherit !important;
+}
+
+#lava-server-topics dt {
+  border-radius: 0 6pt 6pt 0;
+  cursor: pointer;
   padding: 2pt 5pt;
-  cursor: pointer;
+  margin: 1ex 0 0 0;
 }
 
-#lava-server-copyright-trigger span:hover {
+#lava-server-topics dt:hover {
   color: white;
   background-color: #08C;
 }
 
-#lava-server-copyright {
-  clear: both;
-  color: #666;
-  margin: auto;
-  text-align: justify;
-  width: 800px;
-}
-
-#lava-server-copyright a {
-  color: inherit !important;
+#lava-server-topics dd {
+  padding: 0;
+  margin: 1em auto;
+  font-family: Ubuntu, Helvetica Neue, Verdana, sans-serif;
+  position: relative;
+  width: 50%;
+  color: #333;
 }
 
 /* Text listings */

=== modified file 'lava_server/templates/layouts/content.html'
--- lava_server/templates/layouts/content.html	2011-07-25 23:18:01 +0000
+++ lava_server/templates/layouts/content.html	2011-08-13 00:26:55 +0000
@@ -81,32 +81,49 @@ 
   <!-- footer -->
   <div id="lava-server-footer">
     {% block footer %}
+    <!-- topics -->
+    <dl id="lava-server-topics">
+      <dt>{% trans "Report a bug" %}</dt>
+      <dd>If you think the content of this page is incorrect, have encountered
+      a server error or otherwise feel like it you may want to <a
+        href="https://bugs.launchpad.net/lava/+filebug" >report a bug</a>. If
+      you are unsure which LAVA sub-project to select feel free to report a bug
+      on any of them and we'll re-assign it to the appropriate place.</dd>
+      <dt>{% trans "Documentation" %}</dt>
+      <dd>LAVA Documentation is maintained on a per-component basis. You can
+      find pointers to each component on the <a
+        href="https://wiki.linaro.org/Platform/Validation/LAVA/Documentation"
+        >LAVA Documentation wiki</a></dd>
+      <dt>{% trans "Source code" %}</dt>
+      <dd>The canonical source of LAVA is a collection of Bazaar branches
+      hosted on Launchpad. LAVA itself is spread across multiple sub-projects,
+      each with a separate source repository. You can find them on the <a
+        href="http://launchpad.net/lava/">LAVA project group</a> page</dd>
+      <dt>{% trans "Web standards" %}</dt>
+      <dd>This website should contain only valid XHTML markup, you can 
+      <a href="http://validator.w3.org/check?uri=referer">validate it</a> if
+      you wish.</dd>
+      <dt>{% trans "Licensing and copyright" %}</dt>
+      <dd>LAVA Server is free software developed by <a
+        href="http://linaro.org">Linaro</a>. It is distributed under the terms
+      of the <a href="http://www.gnu.org/licenses/agpl-3.0.html"
+        >GNU Affero General Public License version 3</a>.
+      <strong>You have the right to obtain source code of any server side
+        installations of this software that you interact with.</strong>.</dd>
+    </dl>
+    <script type="text/javascript">
+      $(function() {
+        $("#lava-server-topics dd").hide();
+        $("#lava-server-topics dt").click(function (event) {
+          $(":parent dd").slideUp("slow");
+          $(this).next().slideDown("slow");
+        });
+      });
+    </script>
+    <!-- !topics -->
     {% endblock footer %}
   </div>
   <!-- !footer -->
 </div>
 <!-- !lava-container -->
-
-<!-- lava-server-copyright -->
-<div id="lava-server-copyright-trigger"><span>{% trans "licensing and copyright" %}</span></div>
-<div id="lava-server-copyright">
-  LAVA Server is free software developed by <a
-    href="http://linaro.org">Linaro</a>. It is distributed under the terms of
-  the <a href="http://www.gnu.org/licenses/agpl-3.0.html"
-    >GNU Affero General Public License version 3</a>. You have the right to
-  obtain source code of any server side installations of this software that you
-  interact with. This website should contain only valid XHTML markup, you can <a
-    href="http://validator.w3.org/check?uri=referer">validate it</a> if you
-  wish
-</div>
-<script type="text/javascript">
-  $(function() {
-    $("#lava-server-copyright").hide()
-    $("#lava-server-copyright-trigger").click(function (event) {
-      $(this).hide();
-      $("#lava-server-copyright").show();
-    });
-  });
-</script>
-<!-- !lava-server-copyright -->
 {% endblock body %}