[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openejb-cvs
Subject:    svn commit: r1195149 - in /openejb/trunk/sandbox/tools/src/main:
From:       rmannibucau () apache ! org
Date:       2011-10-30 11:36:42
Message-ID: 20111030113642.F222223889FA () eris ! apache ! org
[Download RAW message or body]

Author: rmannibucau
Date: Sun Oct 30 11:36:42 2011
New Revision: 1195149

URL: http://svn.apache.org/viewvc?rev=1195149&view=rev
Log:
updating the openejb example (generated version) theme

Removed:
    openejb/trunk/sandbox/tools/src/main/resources/generate-index/css/prettify.css
    openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/common.js
  openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/jquery-latest.js
  openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/prettify.js
  openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/prettyprint.js
 Modified:
    openejb/trunk/sandbox/tools/src/main/java/org/apache/openejb/tools/examples/GenerateIndex.java
  openejb/trunk/sandbox/tools/src/main/resources/generate-index/css/openejb-examples.css
  openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/index.js
    openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/footer.vm
    openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/header.vm
    openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/index.vm

Modified: openejb/trunk/sandbox/tools/src/main/java/org/apache/openejb/tools/examples/GenerateIndex.java
                
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/tools/src/main/java/org/apache \
/openejb/tools/examples/GenerateIndex.java?rev=1195149&r1=1195148&r2=1195149&view=diff
 ==============================================================================
--- openejb/trunk/sandbox/tools/src/main/java/org/apache/openejb/tools/examples/GenerateIndex.java \
                (original)
+++ openejb/trunk/sandbox/tools/src/main/java/org/apache/openejb/tools/examples/GenerateIndex.java \
Sun Oct 30 11:36:42 2011 @@ -37,7 +37,6 @@ import static org.apache.openejb.tools.e
 import static org.apache.openejb.tools.examples.FileHelper.mkdirp;
 import static org.apache.openejb.tools.examples.ListBuilder.newList;
 import static org.apache.openejb.tools.examples.MapBuilder.newMap;
-import static org.apache.openejb.tools.examples.OpenEJBTemplate.USER_JAVASCRIPTS;
 import static org.apache.openejb.tools.examples.ViewHelper.getAggregateClasses;
 import static org.apache.openejb.tools.examples.ViewHelper.getAndUpdateApis;
 import static org.apache.openejb.tools.examples.ViewHelper.getClassesByApi;
@@ -194,7 +193,6 @@ public class GenerateIndex {
                         newMap(String.class, Object.class)
                                 .add("title", file.getName() + " source")
                                 .add("breadcrumbName", file.getName())
-                                .add(OpenEJBTemplate.USER_JAVASCRIPTS, \
                newList(String.class).add("prettyprint.js").list())
                                 .add("file", source)
                                 .add("code", code)
                                 .add("parentLink", link)
@@ -221,7 +219,6 @@ public class GenerateIndex {
                         newMap(String.class, Object.class)
                                 .add("title", example.getName() + " example")
                                 .add("breadcrumbName", example.getName())
-                                .add(OpenEJBTemplate.USER_JAVASCRIPTS, \
                newList(String.class).add("prettyprint.js").list())
                                 .add("apis", apiCount)
                                 .add("link", zip.getName())
                                 .add("files", javaFileLinks)
@@ -235,7 +232,6 @@ public class GenerateIndex {
                         newMap(String.class, Object.class)
                                 .add("title", example.getName() + " example")
                                 .add("breadcrumbName", example.getName())
-                                .add(OpenEJBTemplate.USER_JAVASCRIPTS, \
                newList(String.class).add("prettyprint.js").list())
                                 .add("content", html)
                                 .map(),
                         index.getPath());
@@ -250,7 +246,7 @@ public class GenerateIndex {
         tpl(properties.getProperty("template.main"),
                 newMap(String.class, Object.class)
                         .add("title", "OpenEJB Examples")
-                        .add(USER_JAVASCRIPTS, \
newList(String.class).add("index.js").list()) +                        \
                .add(OpenEJBTemplate.USER_JAVASCRIPTS, \
                newList(String.class).add("index.js").list())
                         .add("zipLinks", zipLinks)
                         .add("examples", nameByLink)
                         .add("classes", classesByApi)

Modified: openejb/trunk/sandbox/tools/src/main/resources/generate-index/css/openejb-examples.css
                
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/tools/src/main/resources/generate-index/css/openejb-examples.css?rev=1195149&r1=1195148&r2=1195149&view=diff
 ==============================================================================
--- openejb/trunk/sandbox/tools/src/main/resources/generate-index/css/openejb-examples.css \
                (original)
+++ openejb/trunk/sandbox/tools/src/main/resources/generate-index/css/openejb-examples.css \
Sun Oct 30 11:36:42 2011 @@ -1,530 +1,11 @@
-/* by le Studio Atos Worldline */
-/**** Date: october 2011 ****/
-/**** openEJB project *********/
-
-/* RESET ---------------------------------------------------------------------*/
-body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,
-blockquote,th,td,header{ margin:0; padding:0;}
-table{ border-collapse:collapse; border-spacing:0;}
-fieldset,img{ border:0;}
-address,caption,cite,code,dfn,th,var{ font-style:normal; font-weight:normal;}
-ol,ul{ list-style:none;}
-caption,th{ text-align:left;}
-q:before,q:after{ content:'';}
-abbr,acronym{ border:0;}
-.invisible{ display: none;}
-.right {float: right}
-.left {float: left}
-.center {text-align: center}
-.error {color: red}
-.bold {font-weight: bold}
-
-/* Prise en charge de HTML 5 */
-header, section, footer, aside, nav, article, figure {display: block;}
-
-/* Generique */
-/*************/
-body {
-	font: 101%/1.2 Arial, Verdana, Helvetica, sans-serif;
-	background: #F6F6F5;
-	margin: 0;
-	padding: 0;
-	color: #525252;
-	
-}
-
-//h1 {float: right; width: 148px; height: 42px; margin: 16px 8px 5px 10px;}
-h1 a img {border: none;}
-
-h3 {font-size: 18px; margin-bottom: 10px;}
-
-
-a {text-decoration: none;}
-a:visited {text-decoration: none;}
-a:hover, a:active, a:focus { text-decoration: underline;}
-
-/* Structure */
-body > * {
-	width: 585px;
-	margin: 0 auto;
-}
-
-/* HEADER --------------------------------------------------------------------*/
-body > header {
-	height: 62px;
-	width: 100%;
-	background: #E8E8E8;
-  position: relative;
-}
-
-body > header > h1 {
-	display: block;
-	background: transparent \
                url(http://openejb.staging.apache.org/resources/image/logo_apache.png) \
                no-repeat;
-    height: 42px;
-    float: right; width: 148px; height: 42px; margin: 16px 8px 5px 10px;
-}
-body > header form {
-  float: right;
-  margin: 20px 155px 0 0;
-}
-
-/* NAVIGATION ----------------------------------------------------------------*/
-nav {
-position: absolute;
-  width: 193px;
-  margin-left: 20px;
-  background: url(http://openejb.staging.apache.org/resources/image/bg_nav.png) \
                repeat-y 5px 0;
-  }
-header nav h2 {
-	display: block;
-	background: transparent \
                url(http://openejb.staging.apache.org/resources/image/logo_openEJB.png) \
                no-repeat;
-    height: 130px;
-    width: 193px;
-}
-  nav h3{
-  font-size: 16px;
-  padding-left: 20px;
-  margin: 0;
-  }
-nav ul {
-  list-style: none;
-  padding-left: 5px;
- }
-nav ul li {font-size: 12px;}
-nav ul a, nav ul a:visited {
-	padding: 1px 5px;
-	margin: 0 10px;
-	display: inline-block;
-	text-decoration: none;
-	color: #5D5D5D;
-}
-nav ul a:hover,
-nav ul a:active,
-nav ul a:focus {text-decoration:underline}
-nav ul a.active {
-  width: 163px;
-  color: #d33603;
-  background: url(http://openejb.staging.apache.org/resources/image/bg_active_link.png) \
                repeat-x 0 12px;
-  padding: 1px 0;
-  font-style: normal;
-}
-nav ul a.active em {
-  background: #eeede9;
-  padding: 1px 10px 1px 5px;
-}
-
-/* MAIN ----------------------------------------------------------------------*/
-section.main {
-	overflow: hidden;
-	width: 100%;
-}
-
-section.main h2 {
-  color: #01b8a9;
-  font-size: 20px;
-  text-align: center;
-  width: 585px;
-}
-section.main h2.cool {
-  text-align: left;
-  padding-bottom: 10px;
-}
-/*  ----------------------------------------------------------------*/
-
-section.main > section, section.main > article {
-	width: 585px;
-	margin: 10px auto;
-	padding: 10px;
-}
-
-section.main > section, section.main > article.aside {
-	width: 80%;
-	margin: 10px 0 10px 225px;
-	padding: 10px;
-}
-
-
-/* SIDE BLOCK ----------------------------------------------------------------*/
-aside {
-	float: right;
-	width: 265px;
-	margin: 0 10px;
-}
-.self {/*margin-top: 140px;*/}
-aside section {
-  margin: 0 0 10px 0;
-	padding: 10px;
-	background: #f1f0f0;
-	-moz-box-shadow:  0 4px 4px #b7aea5;
-	-webkit-box-shadow:  0 4px 4px #b7aea5;
-	box-shadow:  0 4px 4px #b7aea5;
-}
-
-aside nav ul {padding-bottom: 10px;}
-
-aside section p {padding: 3px 0;}
-aside nav ul li {
-	display: block;
-	margin: 3px 0 3px 5px;
-	font-size: 13px;
-	color: #655c53;
-	background: transparent;
-}
-aside nav ul li a, aside nav ul li a:visited {
-	color: #655c53;
-	font-size: 13px;
-	padding: 3px 5px;
-	display: block;
-}
-aside nav ul li a:hover, aside nav ul li a:active, aside nav ul li a:focus {
-  text-decoration: underline;
-}
-
-aside h3 {
-    border-bottom: 1px solid #d33603;
-    font-size: 14px;
-}
-
-aside h4 {
-	font-size: 14px;
-	font-weight: bold;
-	color: #575757;
-	background: #f1f0f0;
-	margin: 0 0 10px 0;
-	padding: 5px 10px;
-}
-
-
-
-
-/* ACTIONS BLOCK -------------------------------------------------------------*/
-
-section.main > article > section.actions {
-  margin: 10px 0 10px 0;
-  padding: 10px 0 10px 0;
-  width: 100%;
-  background: none;
-  border: none;
-}
-section.actions nav ul {}
-section.actions nav ul li {
-
-}
-section.actions nav ul li span {
-  display: inline-block;
-  color: #655c53;
-	font-size: 12px;
-	background: #fff;
-	-moz-border-radius: 5px;
-	-webkit-border-radius: 5px;
-	border-radius: 5px;
-	padding: 2px 10px;
-	margin: 0 5px;
-}
-section.actions nav ul li a,section.actions nav ul li a:visited {
-  display: inline-block;
-  color: #655c53;
-	font-size: 12px;
-	background: #e5dfd7;
-	-moz-border-radius: 5px;
-	-webkit-border-radius: 5px;
-	border-radius: 5px;
-	padding: 2px 10px;
-	margin: 0 5px;
-	cursor:pointer;
-	text-decoration: none;
-}
-section.actions nav ul li a:hover, section.actions nav ul li a:active, \
                section.actions nav ul li a:focus {text-decoration: underline;}
-
-
-/**********************************************************/
-
-/* section STEPS *********************************************************/
-section.main > section.steps {
-  margin: 0 auto;
-  padding: 0 10px 0 10px;
-  width: auto;
-}
-
-section.steps ul { padding: 10px 0 20px 0; text-align: center;}
-section.steps ul li {
-  display: inline; 
-  padding: 6px 0 6px 35px; 
-  margin: 0 45px 0 0;
-  color: #a49582;
-  font-size: 16px;
-  }
-section.steps ul li.one {
-  background: url(http://openejb.staging.apache.org/resources/image/picto_step_1.png) \
                no-repeat top left;
-  color: #01988c;
-}
-section.steps ul li.two {
-  background: url(http://openejb.staging.apache.org/resources/image/picto_step_2.png) \
                no-repeat top left;
-}
-
-section.steps ul li.three {
-  background: url(http://openejb.staging.apache.org/resources/image/picto_step_3.png) \
                no-repeat top left;
-}
-section.steps ul li.four {
-  background: url(http://openejb.staging.apache.org/resources/image/picto_step_4.png) \
no-repeat top left; +li.api {
+    list-style-type: none;
 }
 
-/* section alerte */
-section.main > article > section.alerte {
-  width: 585px;
-	margin: 0 0 10px 0;
-	padding: 10px;
-	background: url(http://openejb.staging.apache.org/resources/image/bg_alerte.png) \
                repeat 0 0;
-	font-size: 12px;
-	color: #f86402;
-	border: none;
-	-moz-border-radius: 0;
-	-webkit-border-radius: 0;
-	border-radius: 0;
-	
+input[type=button].api {
+    width: 100%;
+    margin: 0px;
+    padding: 0px;
+    font-size: 0.8em;
+    border: 1px solid #666;
 }
-section.alerte p {
-  color: #f86402;
-  padding: 2px 0;
-  
-}
-/******************** all sections ******************************/
-
-section.main > article > section {
-  width: 585px;
-	margin: 0 0 10px 0;
-	padding: 10px;
-	background: #f6f5f4;
-	border: 1px solid #e0d8ce;
-	-moz-border-radius: 3px;
-	-webkit-border-radius: 3px;
-	border-radius: 3px;
-}
-section.main > article > div > section {
-  width: 760px;
-	margin: 0 0 10px 0;
-	padding: 10px;
-}
-
-section h3 span {
-	padding: 3px 10px;
-	color: #5D5D5D;
-	
-}
-section p {
-  font-size: 12px;
-  color: #655c53;
-  padding: 7px 0;
-  vertical-align: middle;
-}
-
-section p em {
-  color: #01b8a9;
-  font-weight: bold;
-  font-size: 14px;
-  font-style: normal;
-}
-section label {
-  display: inline-block;
-  width: 175px;
-  padding: 0 25px 0 0;
-  text-align: right;
-}
-section label.lRadio {
-  width: auto;
-}
-section label em {
-  color: #e84b1d;
-  padding-right: 3px;
-}
-section input[type=text] {
-  width: 290px;
-  padding: 3px 5px;
-  border: 1px solid #e8e6e6;
-  color: #655c53;
-}
-
-
-/* section coordonnees */
-
-
-section.coord label.lRadio {
-  width: auto;
-}
-
-section.coord input[type=text] {
-  width: 290px;
-  padding: 3px 5px;
-  border: 1px solid #e8e6e6;
-  color: #655c53;
-}
-section.coord input.codepost[type=text] {
-  width: 100px;
-}
-
-/* section autres informations */
-
-
-section.inform p.no {
-  font-size: 12px;
-  color: #e84b1d;
-  padding: 7px 0 0 200px;
-  margin-bottom: -9px;
-}
-
-section.inform label.lSelect {
-  width: auto;
-  padding: 0 5px 0 15px;
-}
-section.inform label.first {
-  padding: 0 5px 0 0;
-}
-
-
-section.inform input.no[type=text] {
-  width: 290px;
-  padding: 3px 5px;
-  border: 1px solid #e84b1d;
-  color: #e84b1d;
-}
-section.inform input.codepost[type=text] {
-  width: 100px;
-}
-
-/* section achats **/
-section.achats p {
-  padding: 2px 0;
-}
-section.achats p span {
-  display: inline-block;
-  float: right;
-}
-Section.achats ul li {
-  border-bottom: 1px solid #d6cabb;
-  padding-bottom: 5px;
-}
-Section.achats ul li.last {
-  border-bottom: none;
-  padding-top: 5px;
-}
-/**************************/
-/*  input TYPE: checbox, radio, select, goes with class="styled" and \
                custom-form-elements.js */
-/*************************/
-.checkbox, .radio {
-	width: 19px;
-	height: 17px;
-	padding: 0 5px 0 0;
-	background: url(http://openejb.staging.apache.org/resources/image/checkbox.png) \
                no-repeat;
-	display: inline-block;
-}
-.radio {
-	background: url(http://openejb.staging.apache.org/resources/image/radio.png) \
                no-repeat;
-}
-.select {
-	position: absolute;
-	width: auto; 
-	height: 21px;
-	padding: 0 24px 0 8px;
-	margin: 0 10px 0 0;
-	color: #000;
-	font: 12px/21px arial,sans-serif;
-	background: url(http://openejb.staging.apache.org/resources/image/select.png) \
                no-repeat top right;
-	border: 1px solid #eeedec;
-	overflow: hidden;
-}
-
-/*****  action buttons ********/
-section.main > article > section.buttons {
-  width: 585px;
-  background: transparent;
-  border: none;
-}
-section.main > article > div > section.buttons {
-  width: 585px;
-  background: transparent;
-  border: none;
-}
-section.buttons p {
-  text-align: center;
-}
-section.tout p {
-  text-align: right;
-  padding: 0;
-}
-section.buttons p input[type=submit] {
-  color: #FFF;
-	font-weight: bold;
-	font-size: 12px;
-	border: 1px solid #c3c921;
-	-moz-box-shadow:  inset 0 2px 4px #FFF, inset 0 -2px 4px #aab30d;
-	-webkit-box-shadow:  inset 0 2px 4px #FFF, inset 0 -2px 4px #aab30d;
-	box-shadow:  inset 0 2px 4px #FFF, inset 0 -2px 4px #aab30d;
-	background: #c9cf26;
-	-moz-border-radius: 5px;
-	-webkit-border-radius: 5px;
-	border-radius: 5px;
-	padding: 15px 15px;
-	margin: 0 5px;
-	cursor:pointer;
-}
-section.buttons p input.all[type=submit] {
-  background: transparent;
-  color: #01988c;
-  border: none;
-  -moz-box-shadow:  none;
-	-webkit-box-shadow:  none;
-	box-shadow:  0 4px 4px #E2E2E2;
-  font-weight: bold;
-  font-size: 12px;
-  text-decoration: underline;
-	padding: 5px;
-	margin: 0 5px;
-	cursor:pointer;
-}
-
-section.buttons p input[type=reset] {
-  background: transparent;
-  color: #01988c;
-  border: none;
-  font-weight: bold;
-  font-size: 12px;
-  text-decoration: underline;
-	padding: 15px 15px;
-	margin: 0 5px;
-	cursor:pointer;
-}
-
-section p.charge {
-float: right;
-margin-top: -60px;
-}
-section p.charge input[type=submit] {
-  color: #FFF;
-	font-weight: bold;
-	font-size: 12px;
-	border: 1px solid #c3c921;
-	-moz-box-shadow:  inset 0 2px 4px #FFF, inset 0 -2px 4px #aab30d;
-	-webkit-box-shadow:  inset 0 2px 4px #FFF, inset 0 -2px 4px #aab30d;
-	box-shadow:  inset 0 2px 4px #FFF, inset 0 -2px 4px #aab30d;
-	background: #c9cf26;
-	-moz-border-radius: 5px;
-	-webkit-border-radius: 5px;
-	border-radius: 5px;
-	padding: 15px 15px;
-	margin: 0 5px;
-	cursor:pointer;
-}
-/* CONTENT BLOCK -------------------------------------------------------------*/
-
-/* FOOTER --------------------------------------------------------------------*/
-footer {}
-
-
-/* !!!SPECIFIC CONTENTS!!! -------------------------------------------------- */
-/*  ------------------------------------------------------------*/
-
-  
-
-
-
-

Modified: openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/index.js
                
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/index.js?rev=1195149&r1=1195148&r2=1195149&view=diff
 ==============================================================================
--- openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/index.js \
                (original)
+++ openejb/trunk/sandbox/tools/src/main/resources/generate-index/javascript/index.js \
Sun Oct 30 11:36:42 2011 @@ -14,7 +14,7 @@ $(document).ready(function() {
         }
 
         // filtering apis
-        $('div#checkboxes-check > ul > li > \
input[type=button].button').each(function(i, val) { +        $('ul.api > li > \
input[type=button].button').each(function(i, val) {  var toShow = false;
             if (input.length == 0) {
                 toShow = true;
@@ -79,20 +79,20 @@ function filterExamples($button) {
     }
 
     // filtering examples
-    $('div#examples').find('li' + filteringForExamples).show('fast');
+    $('ul#examples > li.example').show('fast');
     if (selectedClasses.length > 0) {
-        $('div#examples').find('li:not(' + filteringForExamples + \
').example').hide(); +        $('ul#examples').find('li:not(' + filteringForExamples \
+ ').example').hide();  }
 
     // filtering buttons (apis)
     if (correspondingExamples.length > 0) {
         var examples = new Array();
-        $('div#examples').find('li' + filteringForExamples).each(function(i, val) {
+        $('ul#examples').find('li' + filteringForExamples).each(function(i, val) {
             examples.push($(val).attr('example'));
         });
         examples = filterArray(examples);
 
-        $('div#checkboxes-check > ul > li > input[type=button].button').hide();
+        $('ul.api > li.api > input[type=button].button').hide();
         for (var i = 0; i < examples.length; i++) {
             $('li[example="' + examples[i].substring(examples[i].lastIndexOf('_') + \
1, examples[i].length) + '"]').each(function(i, val) {  $buttons = \
$(val).attr('class'); @@ -111,7 +111,7 @@ function filterExamples($button) {
         $('#api-info').show();
         $('#api-info').text(examples.length + ' examples are matching');
     } else {
-        $('div#checkboxes-check > ul > li > \
input[type=button].button').show('fast'); +        $('ul.api > li.api > \
input[type=button].button').show('fast');  $('#api-info').hide();
     }
 }

Modified: openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/footer.vm
                
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/footer.vm?rev=1195149&r1=1195148&r2=1195149&view=diff
 ==============================================================================
--- openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/footer.vm \
                (original)
+++ openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/footer.vm \
Sun Oct 30 11:36:42 2011 @@ -1,13 +1,21 @@
-        </SECTION>
-      </ARTICLE>
-    </SECTION>
-    <!-- /MAIN ========================================================= -->
 
-    <!-- FOOTER ======================================================== -->
-    <!--
     <footer>
-    </footer>
-    -->
-    <!-- /FOOTER ======================================================= -->
-    </BODY>
-</HTML>
\ No newline at end of file
+        <p>
+        Copyright &copy; 2011 The Apache Software Foundation, Licensed under the \
Apache License, Version 2.0. +        Apache and the Apache feather logo are \
trademarks of The Apache Software Foundation. +        </p>
+      </footer>
+
+    </div> <!-- /container -->
+
+  <SPAN style="display: none">
+    <SCRIPT src="http://www.google-analytics.com/urchin.js" type="text/javascript">
+    </SCRIPT>
+    <SCRIPT type="text/javascript">
+      _uacct = "UA-2717626-1";
+      urchinTracker();
+    </SCRIPT>
+  </SPAN>
+
+  </body>
+</html>

Modified: openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/header.vm
                
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/header.vm?rev=1195149&r1=1195148&r2=1195149&view=diff
 ==============================================================================
--- openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/header.vm \
                (original)
+++ openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/header.vm \
Sun Oct 30 11:36:42 2011 @@ -1,100 +1,74 @@
-<!DOCTYPE HTML>
-<HTML lang="fr">
-  <HEAD>
-    <TITLE>OpenEJB - Home</TITLE>
-    <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
-    <LINK rel="shortcut icon" type="images/png" \
                href="http://openejb.staging.apache.org/resources/image/favicon.png">
-    <link href="$base/css/openejb-examples.css" type="text/css" rel="stylesheet" />
-    <link href="$base/css/prettify.css" type="text/css" rel="stylesheet" />
-    <SCRIPT src="http://openejb.staging.apache.org/resources/custom-form-elements.js" \
type="text/javascript" charset="utf-8"></SCRIPT> +<!DOCTYPE html>
+<html lang="en">
+  <head>
+
+    <meta charset="utf-8">
+    <title>$title</title>
+    <meta name="description" content="OpenEJB Examples">
+    <meta name="author" content="OpenEJB">
+
+    <!-- Le HTML5 shim, for IE6-8 support of HTML elements -->
+    <!--[if lt IE 9]>
+      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
+    <![endif]-->
+
+    <!-- Le styles -->
+    <link href="http://openejb.staging.apache.org/bootstrap.css" rel="stylesheet">
+    <link href="http://openejb.staging.apache.org/prettify.css" rel="stylesheet">
+    <link href="http://openejb.staging.apache.org/bootstrap-mods.css" \
rel="stylesheet"> +
+    <style type="text/css">
+      body {
+        padding-top: 60px;
+      }
+    </style>
+
+    <link rel="shortcut icon" type="images/png" \
href="http://openejb.staging.apache.org/resources/image/favicon.png"> +
+    <!-- Le fav and touch icons -->
+    <link rel="apple-touch-icon" \
href="http://openejb.staging.apache.org/images/apple-touch-icon.png"> +    <link \
rel="apple-touch-icon" sizes="72x72" \
href="http://openejb.staging.apache.org/images/apple-touch-icon-72x72.png"> +    \
<link rel="apple-touch-icon" sizes="114x114" \
href="http://openejb.staging.apache.org/images/apple-touch-icon-114x114.png"> +
+    <script src="http://openejb.staging.apache.org/javascript/prettify.js" \
type="text/javascript"></script> +    <script \
src="http://openejb.staging.apache.org/javascript/jquery-latest.js"></script> +    \
<script src="http://platform.twitter.com/widgets.js" type="text/javascript"></script> \
+    <script src="http://openejb.staging.apache.org/javascript/common.js"></script> + \
<script src="http://openejb.staging.apache.org/javascript/prettyprint.js"></script>  
-    <SCRIPT language="javascript" \
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js" \
                type="text/javascript"></SCRIPT>
-    <SCRIPT language="javascript" \
src="http://openejb.apache.org/tweet/jquery.tweet.js" \
                type="text/javascript"></SCRIPT>
-    <SCRIPT type="text/javascript">
-      $(document).ready(function(){
-            $(".tweet").tweet({
-            avatar_size: 32,
-            count: 4,
-	    fetch:25,
-            username: "openejb",
-            list: "contributors",
-	    template:"{avatar}{text}",
-	    filter: function(t){ return /openejb/i.test(t["tweet_raw_text"]); },
-            loading_text: "loading list..."
-            });
-        });
-    </SCRIPT>
-      <script src="$base/javascript/prettify.js" type="text/javascript"></script>
-        <script src="$base/javascript/jquery-latest.js"></script>
-		<script src="http://platform.twitter.com/widgets.js" \
                type="text/javascript"></script>
-		<script src="$base/javascript/common.js"></script>
+    <link href="$base/css/openejb-examples.css" type="text/css" rel="stylesheet" />
 #if ($javascripts )
 #foreach( $js in $javascripts )
-        <script src="$base/javascript/$js"></script>
+    <script src="$base/javascript/$js"></script>
 #end
 #end
-  </HEAD>
-  <BODY>
-    <!-- HEADER ======================================================== -->
-    <HEADER>
-			<H1><A href=""><SPAN class="invisible">The Apache software \
                fondation</SPAN></A></H1>
-			
-      <FORM action="http://www.google.com/cse" \
                id="searchbox_010475492895890475512:_t4iqjrgx90">
-        <INPUT type="hidden" value="010475492895890475512:_t4iqjrgx90" name="cx">
-        <INPUT type="hidden" value="FORID:0" name="cof">
-        <INPUT type="text" size="25" name="q" style="border: 1px solid rgb(126, 157, \
185); padding: 2px; background: \
url(&quot;http://www.google.com/cse/intl/en/images/google_custom_search_watermark.gif&quot;) \
                no-repeat scroll left center rgb(255, 255, 255);">
-        <INPUT type="submit" value="Search" name="sa">
-        <INPUT type="hidden" name="siteurl" value="openEJB.html"><INPUT \
                type="hidden" name="siteurl" value="openEJB.html">
-      </FORM>
-                  
-      <NAV>
-        <H2><A href=""><SPAN class="invisible">openEJB</SPAN></A></H2>
-                <H3><A name="Navigation-Overview"></A>Overview</H3>
-
-<UL class="alternate" type="square">
-	<LI><A href="http://openejb.apache.org/" title="Index">Home</A></LI>
-	<LI><A href="http://openejb.apache.org/downloads.html" \
                title="Downloads">Downloads</A></LI>
-	<LI><A href="http://openejb.apache.org/OPENEJBx30/index.html" \
                title="Index">Documentation</A></LI>
-	<LI><A href="$base" title="Examples">Examples</A></LI>
-	<LI><A href="http://openejb.apache.org/mailing-lists.html" title="Mailing \
                Lists">Mailing Lists</A></LI>
-	<LI><A href="http://openejb.apache.org/source-code.html" title="Source Code">Source \
                Code</A></LI>
-	<LI><A href="http://blogs.apache.org/openejb" class="external-link" \
                rel="nofollow">Project Blog</A></LI>
-</UL>
-
-
-<H3><A name="Navigation-Community"></A>Community</H3>
-
-<UL class="alternate" type="square">
-	<LI><A href="http://openejb.apache.org/team.html" title="Team">Team</A></LI>
-	<LI><A href="http://openejb.apache.org/articles.html" \
                title="Articles">Articles</A></LI>
-	<LI><A href="http://webchat.freenode.net/?channels=openejb" class="external-link" \
                rel="nofollow">IRC</A></LI>
-</UL>
-
-
-<H3><A name="Navigation-RelatedProjects"></A>Related Projects</H3>
-
-<UL class="alternate" type="square">
-	<LI><A href="http://openwebbeans.apache.org/" class="external-link" \
                rel="nofollow">WebBeans</A></LI>
-	<LI><A href="http://myfaces.apache.org/" class="external-link" \
                rel="nofollow">MyFaces</A></LI>
-	<LI><A href="http://activemq.apache.org/" class="external-link" \
                rel="nofollow">ActiveMQ</A></LI>
-	<LI><A href="http://openjpa.apache.org/" class="external-link" \
                rel="nofollow">OpenJPA</A></LI>
-	<LI><A href="http://cxf.apache.org/" class="external-link" \
                rel="nofollow">CXF</A></LI>
-</UL>
-
-
-<H3><A name="Navigation-Index"></A>Index</H3>
-<UL class="alternate" type="square">
-	<LI><A href="space-index.html" title="Space Index">Site Index</A></LI>
-	<LI><A href="http://openejb.apache.org/OPENEJBx30/space-index.html" title="Space \
                Index">Doc Index</A></LI>
-</UL>
-        <H3>Feeds</H3>
-        <UL>
-        <LI><A href="http://cwiki.apache.org/confluence/spaces/rss.action?key=OPENEJB&newPages=false">Site</A></LI>
                
-        <LI><A href="http://cwiki.apache.org/confluence/spaces/blogrss.action?key=OPENEJB">News</A></LI>
                
-        </UL>
-      </NAV>          
-    </HEADER>
-    <!-- /HEADER ======================================================= -->
+  </head>
 
-    <!-- MAIN ========================================================== -->
-    <SECTION class="main">
\ No newline at end of file
+  <body>
+    <div class="topbar">
+      <div class="fill">
+        <div class="container">
+          <a class="brand" href="./index.html">Apache TomEE</a>
+          <ul class="nav">
+            <li><a href="http://openejb.staging.apache.org/index.html">Home</a></li>
+            <li><a href="http://openejb.staging.apache.org/downloads.html">Downloads</a></li>
 +            <li><a \
href="http://openejb.staging.apache.org/documentation.html">Documentation</a></li> +  \
<li><a href="http://openejb.staging.apache.org/support.html">Support</a></li> +       \
</ul> +
+            <!-- Google CSE Search Box Begins  -->
+            <FORM class="pull-right" \
id="searchbox_010475492895890475512:_t4iqjrgx90" action="http://www.google.com/cse"> \
+                <INPUT type="hidden" name="cx" \
value="010475492895890475512:_t4iqjrgx90"> +                <INPUT type="hidden" \
name="cof" value="FORID:0"> +                <INPUT name="q" type="text" \
placeholder="Search"> +            </FORM>
+            <!--<SCRIPT type="text/javascript" \
src="http://www.google.com/coop/cse/brand?form=searchbox_010475492895890475512:_t4iqjrgx90"></SCRIPT>-->
 +            <!-- Google CSE Search Box Ends -->
+        </div>
+      </div>
+    </div>
+
+    <div class="container">
+        <div class="page-header">
+            <h1>$title</h1>
+        </div>
\ No newline at end of file

Modified: openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/index.vm
                
URL: http://svn.apache.org/viewvc/openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/index.vm?rev=1195149&r1=1195148&r2=1195149&view=diff
 ==============================================================================
--- openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/index.vm \
                (original)
+++ openejb/trunk/sandbox/tools/src/main/resources/generate-index/velocity/index.vm \
Sun Oct 30 11:36:42 2011 @@ -1,39 +1,32 @@
 #parse("generate-index/velocity/header.vm")
-<ARTICLE class="aside">
-    <DIV>
-        <SECTION>
-            <ASIDE class="self">
-                <div id="checkboxes-check">
-                    <div id="search-box">
-                        <H3><SPAN>API:</SPAN></H3>
-                        <input id="searchbox" type="text"/>
-                    </div>
+    <div class="row">
+        <div class="span-one-third">
+            <ul class="api">
+#foreach( $entry in $classes.entrySet() )
+                <li class="api">
+                    <input class="api $examplesClasses.get($entry.key)" \
type="button" +                           api="$classes.get($entry.key)" \
value="$entry.key" +                           \
onclick="javascript:filterExamples(this)"> +               </li>
+#end
+            </ul>
+        </div>
 
-                    <div id="api-info"></div>
+        <div class="span-one-third">
+            <ul id="examples">
+#foreach( $example in $examples.entrySet() )
+                <li example="$example.value" class="example \
$aggregatedClasses.get($example.value)"> +                    <a \
href="$example.value">$example.key</a> +                    <a class="downloadzip" \
href="$zipLinks.get($example.value)">zip</a> +                </li>
+#end
+            </ul>
+        </div>
 
-                    <ul>
-                        #foreach( $entry in $classes.entrySet() )
-                            <li><input class="$examplesClasses.get($entry.key)" \
                type="button"
-                                       api="$classes.get($entry.key)" \
                value="$entry.key"
-                                       \
                onclick="javascript:filterExamples(this)"></li>
-                        #end
-                    </ul>
-                </div>
-            </ASIDE>
-        </SECTION>
-
-        <SECTION>
-            <div id="examples">
-                <ul>
-                    #foreach( $example in $examples.entrySet() )
-                        <li example="$example.value" \
                class="$aggregatedClasses.get($example.value)"><a
-                                href="$example.value">$example.key</a> <a \
                class="downloadzip"
-                                                                          \
                href="$zipLinks.get($example.value)">zip</a>
-                        </li>
-                    #end
-                </ul>
-            </div>
-        </SECTION>
-    </DIV>
-</ARTICLE>
+        <div class="span-one-third">
+            <h3><span>API:</span></h3>
+            <input id="searchbox" type="text"/>
+            <div id="api-info"></div>
+        </div>
+    </div>
 #parse("generate-index/velocity/footer.vm")


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic