diff --git a/extensions/treemenu.py b/extensions/treemenu.py index 7ce8f1ef..8e48a6a3 100644 --- a/extensions/treemenu.py +++ b/extensions/treemenu.py @@ -1,30 +1,15 @@ -# -*- coding: iso-8859-15 -*- -## level is tuple composed by the level number and dictionnary that remember -## for all level if the last element of this level is reached - -def upLevel(level): - return (level[0]+1, level[1]) - -def isLast(level, b): - if level[1].has_key(b): - return level[1][b] +def getClass(object): + if object.getThingName() == 'rubrics.Rubric': + return 'menu-close' else: - return 0 - -def updateLevel(level, bool): - """ - put the bool value in dictionnary for the given level. - """ - level[1][level[0]] = bool - return level + return 'menu-leaf' def haveChild(currentObject, sub, objectPath): try: - result = currentObject and sub and sub.getThingName() == 'Rubric' and ( + result = currentObject and sub and sub.getThingName() == 'rubrics.Rubric' and ( currentObject.id == sub.id or ( objectPath and sub.id in [o.id for o in objectPath \ if hasattr(o, 'id')])) except: result = 0 return result - diff --git a/templates/codelutin.org/StandardLookAndFeel.html b/templates/codelutin.org/StandardLookAndFeel.html index 3bc3af22..6a4d71d1 100644 --- a/templates/codelutin.org/StandardLookAndFeel.html +++ b/templates/codelutin.org/StandardLookAndFeel.html @@ -1,5 +1,4 @@ - + Code Lutin + - - - + + - +
- - - - - - -
- - CodeLutin.org - -
-
- - - - - -
- - - - - - - -
- -
- - -
-
- - - - - - - - - - -
-
- - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- server -
- -
- -
- -
- -
- -
- -
- - - -
- - - -
- - - -
- - - -
- - - - -
- -
-
- C'est ici que viendra le contenu du tag ayant l'attribu + + CodeLutin.org +
-
-
-
+ + + + + +
+ C'est ici que viendra le contenu du tag ayant l'attribu +
+
-
- -
-
+
+
 

@@ -181,11 +102,7 @@ Tél.: +33 (0)2 40 50 29 28
e-mail: info@codelutin.com
-
- -
+

diff --git a/templates/codelutin.org/macro.tal b/templates/codelutin.org/macro.tal index d17b92de..2572890f 100644 --- a/templates/codelutin.org/macro.tal +++ b/templates/codelutin.org/macro.tal @@ -1,57 +1,31 @@ -

+
- - -
- - - - - - - - - - - - - - - - -
- - - - - SubRubric - - - -
-
-
+ tal:define="objectPath getPathToObject(currentObject); menuclass treemenu.getClass(sub);cond treemenu.haveChild(currentObject, sub, objectPath)"> +
  • + SubRubric +
  • +
  • + +
      +
      +
    +
  • - - - - - - server - - + \ No newline at end of file diff --git a/templates/codelutin.org/web/css/codelutin.org.css b/templates/codelutin.org/web/css/codelutin.org.css index 01d508a2..4965a252 100644 --- a/templates/codelutin.org/web/css/codelutin.org.css +++ b/templates/codelutin.org/web/css/codelutin.org.css @@ -1,13 +1,12 @@ - +@import "menu.css"; body { - font-family: Verdana, Arial, Georgia, Geneva, sans-serif; + font-family: Verdana, Arial, Georgia, Geneva ; background-image: url(/images/lutin-background.png); background-repeat: no-repeat; - background-color : white; - color: black; - margin: 0; - padding:0; + background-color : #FFFFFF; + margin: 0px; + padding:0px; } a:link, a:visited { @@ -81,3 +80,135 @@ th { content: "*"; color: red; } + +#zonetitle { + float: left; + width: 100%; +} + +#zonemenu { + float: left; + width: 20%; +} + +#zonecontent { + float: right; + width: 80%; +} + +#zonefooter { + float: left; + width: 100%; +} + +/* +.treemenu { + white-space: nowrap; +} + +.treemenu * { + vertical-align: middle; + margin: 0px 0px 0px 0px; + padding: 0px 0px 0px 0px; +} + +.menu-label { + display: table-cell; + white-space: normal; +} + +.treepicture { + display: table-cell; + height: 100%; +} + +.treepicture span { + height: 100%; +} + +.treepicture-I, .treepicture-L , .treepicture-T{ + width: 11px; + height: 100%; +} +*/ +/* +span.treepicture-p1{ + white-space: pre; +} +*/ + +/*** Nav bar styles ***/ + +div.treemenu ul#nav, +div.treemenu #nav ul{ +/*Remove all spacings from the list items*/ + margin: 0; + padding: 0; + cursor: default; + list-style-type: none; +} + +/* +div.treemenu ul#nav{ +// max-width: 40ex; + width: 17ex; +/*Optional, to make the navigation bar positions on the left of the content*/ +// float: left; + margin-right: 1em; +} + +div.treemenu ul>li{ + margin: 0; + padding: 2px 6px; +} + +div.treemenu ul#nav li>ul{ + display: none; + position: absolute; +// max-width: 40ex; + width: 30ex; + left: 17ex; + margin-top: -1.4em; + margin-left: 0px; +} + +div.treemenu ul#nav li:hover>ul{ + display : block; +} + +div.treemenu #nav ul li a{ + display: block; + padding: 2px 10px; +} +*/ + +/*** Menu styles (customizable) ***/ +/* + +div.treemenu ul#nav, +div.treemenu #nav ul, +div.treemenu #nav ul li a{ + background-color: #fff; + color: #369; +} + +div.treemenu ul#nav li:hover, +div.treemenu #nav ul li a:hover{ + background-color: #369; + color: #fff; +} + +div.treemenu ul#nav li:active, +div.treemenu #nav ul li a:active{ + background-color: #036; + color: #fff; +} + +div.treemenu ul{ + border: 1px solid #369; +} + +div.treemenu #nav a{ + text-decoration: none; +} +*/ \ No newline at end of file diff --git a/templates/codelutin.org/web/css/menu.css b/templates/codelutin.org/web/css/menu.css new file mode 100644 index 00000000..fa1d18ad --- /dev/null +++ b/templates/codelutin.org/web/css/menu.css @@ -0,0 +1,74 @@ + +.menu-label { + color: black; + color: #113d60; + color: #08223C; + display: block; + text-decoration: none; + } +/* +.menu-label:before { + content: " "; + } +*/ +.menu-label:hover { + color: white; + } +.menu-label:active { + color: #f9cc70; + } + +.menu { + margin: 1em; + display: block; + color: #000000; + } +.menu ul { + margin: -1px -1px -1px -1px; + padding-left: 0.4em; /* decalage entre les different niveau (depth) */ + } + +.menu li { + width: 7em; + padding-left: 0.6em; + margin-top: -1px; + border-top: 1px #000000 solid; + border-right: 2px #000000 solid; + border-right: 1px #000000 solid; + border-bottom: 0; + border-left: 0; + } +.menu li.menu-open { list-style-image: url(/images/menu/puce-open.rol.gif); } +.menu li.menu-close { list-style-image: url(/images/menu/puce-close.rol.gif); } +.menu li.menu-leaf { list-style-image: url(/images/menu/puce-leaf.rol.gif); } + +.menu li.menu-open:hover { list-style-image: url(/images/menu/puce-open.gif); } +.menu li.menu-close:hover { list-style-image: url(/images/menu/puce-close.gif); } +.menu li.menu-leaf:hover { list-style-image: url(/images/menu/puce-leaf.gif); } + + +//.menu li { background: #fff url(/images/menu/grada2.png) repeat-x top; } +.menu li { background: #fff url(/images/menu/grada1.png) repeat-x top; } +.menu li li { background: #fff url(/images/menu/grada2.png) repeat-x top; } +.menu li li li { background: #fff url(/images/menu/grada3.png) repeat-x top; } +.menu li li li li { background: #fff url(/images/menu/grada4.png) repeat-x top; } +.menu li li li li li { background: #fff url(/images/menu/grada5.png) repeat-x top; } +.menu li li li li li li { background: #fff url(/images/menu/grada6.png) repeat-x top; } +.menu li li li li li li li { background: #fff url(/images/menu/grada7.png) repeat-x top; } +.menu li li li li li li li li { background: #fff url(/images/menu/grada8.png) repeat-x top; } +.menu li li li li li li li li li { background: #fff url(/images/menu/grada9.png) repeat-x top; } + + +//.menu li:hover { background: #fff url(/images/menu/grada2.rol.png) repeat-x top; } + +.menu li:hover { background: #fff url(/images/menu/grada1.rol.png) repeat-x top; } +.menu li li:hover { background: #fff url(/images/menu/grada2.rol.png) repeat-x top; } +.menu li li li:hover { background: #fff url(/images/menu/grada3.rol.png) repeat-x top; } +.menu li li li li:hover { background: #fff url(/images/menu/grada4.rol.png) repeat-x top; } +.menu li li li li li:hover { background: #fff url(/images/menu/grada5.rol.png) repeat-x top; } +.menu li li li li li li:hover { background: #fff url(/images/menu/grada6.rol.png) repeat-x top; } +.menu li li li li li li li:hover { background: #fff url(/images/menu/grada7.rol.png) repeat-x top; } +.menu li li li li li li li li:hover { background: #fff url(/images/menu/grada8.rol.png) repeat-x top; } +.menu li li li li li li li li li:hover { background: #fff url(/images/menu/grada9.rol.png) repeat-x top; } + + diff --git a/templates/codelutin.org/web/images/menu/grada0.png b/templates/codelutin.org/web/images/menu/grada0.png new file mode 100644 index 00000000..33654f0d Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada0.png differ diff --git a/templates/codelutin.org/web/images/menu/grada1.png b/templates/codelutin.org/web/images/menu/grada1.png new file mode 100644 index 00000000..4129e6cf Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada1.png differ diff --git a/templates/codelutin.org/web/images/menu/grada1.rol.png b/templates/codelutin.org/web/images/menu/grada1.rol.png new file mode 100644 index 00000000..8446dd69 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada1.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada10.png b/templates/codelutin.org/web/images/menu/grada10.png new file mode 100644 index 00000000..e912ae73 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada10.png differ diff --git a/templates/codelutin.org/web/images/menu/grada10.rol.png b/templates/codelutin.org/web/images/menu/grada10.rol.png new file mode 100644 index 00000000..df69127f Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada10.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada11.png b/templates/codelutin.org/web/images/menu/grada11.png new file mode 100644 index 00000000..3e9b19aa Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada11.png differ diff --git a/templates/codelutin.org/web/images/menu/grada11.rol.png b/templates/codelutin.org/web/images/menu/grada11.rol.png new file mode 100644 index 00000000..3a1e8502 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada11.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada12.png b/templates/codelutin.org/web/images/menu/grada12.png new file mode 100644 index 00000000..6214cfd5 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada12.png differ diff --git a/templates/codelutin.org/web/images/menu/grada12.rol.png b/templates/codelutin.org/web/images/menu/grada12.rol.png new file mode 100644 index 00000000..b329adb6 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada12.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada2.png b/templates/codelutin.org/web/images/menu/grada2.png new file mode 100644 index 00000000..6148908c Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada2.png differ diff --git a/templates/codelutin.org/web/images/menu/grada2.rol.png b/templates/codelutin.org/web/images/menu/grada2.rol.png new file mode 100644 index 00000000..791bd397 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada2.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada3.png b/templates/codelutin.org/web/images/menu/grada3.png new file mode 100644 index 00000000..f603489c Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada3.png differ diff --git a/templates/codelutin.org/web/images/menu/grada3.rol.png b/templates/codelutin.org/web/images/menu/grada3.rol.png new file mode 100644 index 00000000..9b3da5f8 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada3.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada4.png b/templates/codelutin.org/web/images/menu/grada4.png new file mode 100644 index 00000000..e1b77f21 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada4.png differ diff --git a/templates/codelutin.org/web/images/menu/grada4.rol.png b/templates/codelutin.org/web/images/menu/grada4.rol.png new file mode 100644 index 00000000..0da29acf Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada4.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada5.png b/templates/codelutin.org/web/images/menu/grada5.png new file mode 100644 index 00000000..4ad57fb8 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada5.png differ diff --git a/templates/codelutin.org/web/images/menu/grada5.rol.png b/templates/codelutin.org/web/images/menu/grada5.rol.png new file mode 100644 index 00000000..27ffba6b Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada5.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada6.png b/templates/codelutin.org/web/images/menu/grada6.png new file mode 100644 index 00000000..11c2ad1b Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada6.png differ diff --git a/templates/codelutin.org/web/images/menu/grada6.rol.png b/templates/codelutin.org/web/images/menu/grada6.rol.png new file mode 100644 index 00000000..67526cbf Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada6.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada7.png b/templates/codelutin.org/web/images/menu/grada7.png new file mode 100644 index 00000000..d1ff0572 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada7.png differ diff --git a/templates/codelutin.org/web/images/menu/grada7.rol.png b/templates/codelutin.org/web/images/menu/grada7.rol.png new file mode 100644 index 00000000..a18c4a7f Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada7.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada8.png b/templates/codelutin.org/web/images/menu/grada8.png new file mode 100644 index 00000000..e1ed2b3e Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada8.png differ diff --git a/templates/codelutin.org/web/images/menu/grada8.rol.png b/templates/codelutin.org/web/images/menu/grada8.rol.png new file mode 100644 index 00000000..768cdea7 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada8.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/grada9.png b/templates/codelutin.org/web/images/menu/grada9.png new file mode 100644 index 00000000..8981c63f Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada9.png differ diff --git a/templates/codelutin.org/web/images/menu/grada9.rol.png b/templates/codelutin.org/web/images/menu/grada9.rol.png new file mode 100644 index 00000000..6cff96ee Binary files /dev/null and b/templates/codelutin.org/web/images/menu/grada9.rol.png differ diff --git a/templates/codelutin.org/web/images/menu/puce-close.gif b/templates/codelutin.org/web/images/menu/puce-close.gif new file mode 100644 index 00000000..aa801d7c Binary files /dev/null and b/templates/codelutin.org/web/images/menu/puce-close.gif differ diff --git a/templates/codelutin.org/web/images/menu/puce-close.rol.gif b/templates/codelutin.org/web/images/menu/puce-close.rol.gif new file mode 100644 index 00000000..053668c6 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/puce-close.rol.gif differ diff --git a/templates/codelutin.org/web/images/menu/puce-leaf.gif b/templates/codelutin.org/web/images/menu/puce-leaf.gif new file mode 100644 index 00000000..7f8cca69 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/puce-leaf.gif differ diff --git a/templates/codelutin.org/web/images/menu/puce-leaf.rol.gif b/templates/codelutin.org/web/images/menu/puce-leaf.rol.gif new file mode 100644 index 00000000..91438bf2 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/puce-leaf.rol.gif differ diff --git a/templates/codelutin.org/web/images/menu/puce-open.gif b/templates/codelutin.org/web/images/menu/puce-open.gif new file mode 100644 index 00000000..ce577b8a Binary files /dev/null and b/templates/codelutin.org/web/images/menu/puce-open.gif differ diff --git a/templates/codelutin.org/web/images/menu/puce-open.rol.gif b/templates/codelutin.org/web/images/menu/puce-open.rol.gif new file mode 100644 index 00000000..f1cfd961 Binary files /dev/null and b/templates/codelutin.org/web/images/menu/puce-open.rol.gif differ