incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1308030 - in /incubator/bloodhound/trunk/bloodhound_theme: ./ bhtheme/ bhtheme/htdocs/ bhtheme/templates/
Date Sun, 01 Apr 2012 08:36:41 GMT
Author: gjm
Date: Sun Apr  1 08:36:41 2012
New Revision: 1308030

URL: http://svn.apache.org/viewvc?rev=1308030&view=rev
Log:
Theme code import: Layout and generic CSS rules applied to design

Added:
    incubator/bloodhound/trunk/bloodhound_theme/
    incubator/bloodhound/trunk/bloodhound_theme/MANIFEST.in   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/__init__.py   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo_mini.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btn.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btnhover.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/hbar.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg_small.png   (with
props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/screenshot.png   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html  
(with props)
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py   (with props)
    incubator/bloodhound/trunk/bloodhound_theme/setup.py   (with props)

Added: incubator/bloodhound/trunk/bloodhound_theme/MANIFEST.in
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/MANIFEST.in?rev=1308030&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/MANIFEST.in (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/MANIFEST.in Sun Apr  1 08:36:41 2012
@@ -0,0 +1,4 @@
+
+graft bhtheme/htdocs
+graft bhtheme/templates
+

Propchange: incubator/bloodhound/trunk/bloodhound_theme/MANIFEST.in
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/__init__.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/__init__.py?rev=1308030&view=auto
==============================================================================
    (empty)

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/__init__.py
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo_mini.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo_mini.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bh_logo_mini.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css?rev=1308030&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css Sun Apr  1 08:36:41
2012
@@ -0,0 +1,173 @@
+
+/* Generic */
+
+.round {
+  
+}
+
+/* Layout */
+
+.bh_body {
+  background-color: #f2ebec;
+}
+
+.fixed-wrapper {
+  bottom: 15px;
+  left: 15px;
+  position: absolute;
+  right: 15px;
+  top: 15px;
+}
+
+.fixed-wrapper>div {
+  left: 0px;
+  position: absolute;
+  right: 0px;
+}
+
+#banner {
+  min-height: 60px;
+  overflow: hidden;
+  top: 0px
+}
+
+#pname {
+  font-size: 110%;
+  font-weight: bold;
+}
+
+#mainpanel {
+  background-image: url("mainnavbg.png");
+  background-repeat: repeat-x;
+  height: 38px;
+}
+
+#outer-wrapper {
+  bottom: 0px;
+}
+
+#ctxtnav {
+  height: 22px;
+  margin: 0px;
+  padding: 0px;
+}
+
+#main-wrapper {
+  border: 2px solid #c9c9c9;
+  border-bottom-left-radius: 6px;
+  border-bottom-right-radius: 6px;
+  border-top-right-radius: 6px;
+  -moz-border-radius-bottomleft: 6px;
+  -moz-border-radius-bottomright: 6px;
+  -moz-border-radius-topright: 6px;
+  -webkit-border-bottom-left-radius: 6px;
+  -webkit-border-bottom-right-radius: 6px;
+  -webkit-border-top-right-radius: 6px;
+  bottom: 36px;
+  left: 0px;
+  position: absolute;
+  right: 0px;
+  top: 22px;
+  overflow: auto;
+}
+
+#main-scroll {
+  bottom: 3px;
+  left: 3px;
+  overflow: auto;
+  position: absolute;
+  right: 3px;
+  top: 3px;
+}
+
+#footer {
+  border: none;
+  bottom: 0;
+  color: #999999;
+  left: 2px;
+  max-height: 34px;
+  overflow: hidden;
+  position: absolute;
+  right: 2px;
+}
+
+/* Header & logo */
+
+#logo {
+  margin-right: 10px;
+}
+
+/* Footer */
+
+#footer #bhpowered { 
+  border: 0; 
+  float: left;
+}
+
+#footer #bhpowered:hover {
+  background: transparent;
+}
+
+#footer :link, #footer :visited {
+  background-color: transparent;
+  color: #999999;
+}
+
+/* Trac generics */
+
+:link:hover, :visited:hover, .nav li:hover, 
+.nav li:hover>:link, .nav li:hover>:visited,
+a.prev:hover, a.next:hover {
+  background-color: #3366ff;
+  color: #FFFFFF;
+}
+
+:visited {
+  background-color: #FFFFCC;
+}
+
+:visited, :link {
+  color: #0000CC;
+}
+
+/* Forms & inputs */
+
+#input[type="button"], input[type="submit"], input[type="reset"] {
+  background-color: transparent;
+  background-image: url("btn.png");
+  background-repeat: repeat-x;
+}
+
+input[type="button"]:hover, input[type="submit"]:hover, input[type="reset"]:hover {
+  background-image: url("btnhover.png");
+  border: 1px outset #666666;
+}
+
+input[type=text]:focus, input.textwidget:focus, textarea:focus {
+  background-color: #FFFFCC;
+}
+
+#prefs {
+  background: none repeat scroll 0 0 #E0ECFF;
+  border: 1px outset #CCCCCC;
+}
+
+/* Roadmap */
+
+.milestone .info h2 :link:hover, .milestone .info h2 :visited:hover {
+  background-color: #CCCCCC;
+}
+
+.milestone .info h2 em {
+  color: #006633 !important;
+}
+
+table.progress td.closed {
+  background-image: url("hbar.png") !important;
+  background-repeat: repeat-x !important;
+}
+
+.milestone .info dt {
+  text-decoration: none;
+}
+

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/bloodhound.css
------------------------------------------------------------------------------
    svn:mime-type = text/css

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btn.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btn.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btn.png
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btn.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btnhover.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btnhover.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btnhover.png
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/btnhover.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/hbar.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/hbar.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/hbar.png
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/hbar.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg_small.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg_small.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/mainnavbg_small.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/screenshot.png
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/screenshot.png?rev=1308030&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/htdocs/screenshot.png
------------------------------------------------------------------------------
    svn:mime-type = image/png

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html?rev=1308030&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html Sun
Apr  1 08:36:41 2012
@@ -0,0 +1,106 @@
+<!DOCTYPE html
+    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:py="http://genshi.edgewall.org/"
+      py:strip="">
+
+  <ul py:def="navigation(category, skip)" class="menu">
+    <li id="${category}" class="nav">
+      <ul py:if="chrome.nav[category]">
+        <li py:for="idx, item in  enumerate(i for i in chrome.nav[category] if i.name
not in skip)"
+            class="${classes(first_last(idx, chrome.nav[category]), active=item.active)}
id_${item.name}">${item.label}</li>
+      </ul>
+    </li>
+  </ul>
+
+  <py:match path="body" once="true" buffer="false"><body class="bh_body">
+    <div class="fixed-wrapper" 
+        py:with="logo_size = (chrome.logo.width or 170, chrome.logo.height or 48)">
+      <div id="banner" py:choose="" >
+        <div id="header">
+          <div py:when="chrome.logo.src" 
+              style="vertical-align: middle; height: ${logo_size[1]}px;"> 
+            <div style="float: left;height: ${logo_size[1]}px;">
+              <a id="logo" href="${chrome.logo.link or href.wiki('TracIni')+'#header_logo-section'}">
+                  <img 
+                      src="${chrome.logo.src}" alt="${chrome.logo.alt}" 
+                      height="${logo_size[1]}px" width="${logo_size[0]}px" />
+              </a> 
+            </div>
+            <div id="pname"> ${project.name} </div>
+            <div id="psum"> ${project.descr or project.description} </div>
+          </div>
+          <h1 py:otherwise="">
+            <a href="${chrome.logo.link or href.wiki('TracIni')+'#header_logo-section'}">
+              ${project.name}
+            </a>
+          </h1>
+        </div>
+      </div>
+      <div id="mainpanel" style="top:${max(60, int(logo_size[1]))}px">
+        <!-- TODO: mainnav + search box -->
+      </div>
+      <div id="outer-wrapper" style="top:${max(60, int(logo_size[1])) + 48}px">
+        <ul id="ctxtnav">
+          <!-- TODO: ctxtnav -->
+        </ul>
+        <div id="main-wrapper">
+          <div id="main-scroll">
+            <div id="main">
+              <div id="warning" py:if="chrome.warnings" class="system-message">
+                <py:choose test="len(chrome.warnings)">
+                  <py:when test="1">
+                    <strong>Warning:</strong> ${chrome.warnings[0]}
+                  </py:when>
+                  <py:otherwise>
+                    <strong>Warnings:</strong>
+                    <ul><li py:for="w in chrome.warnings">$w</li></ul>
+                  </py:otherwise>
+                </py:choose>
+              </div>
+              <div id="notice" py:if="chrome.notices" class="system-message">
+                <py:choose test="len(chrome.notices)">
+                  <py:when test="1">
+                    <strong>Notice:</strong> ${chrome.notices[0]}
+                  </py:when>
+                  <py:otherwise>
+                    <strong>Notices:</strong>
+                    <ul><li py:for="w in chrome.notices">$w</li></ul>
+                  </py:otherwise>
+                </py:choose>
+              </div>
+        
+              ${select('*|text()')}
+          
+            
+            </div>  
+            <py:for each="obj,title in [(chrome, 'Chome'), (chrome.logo, 'Logo')]">
+              <h2>$title</h2>
+              <ul>
+                <li py:for="x in obj">
+                  <b>$x</b> <span>${obj[x]}</span>
+                </li>
+              </ul>
+            </py:for>
+          </div>
+        </div>
+        <div id="footer" xml:lang="en">
+          <a id="bhpowered" href="http://incubator.apache.org/bloodhound/"><img
+              src="${href.chrome('theme/bh_logo_mini.png')}" height="30"
+              width="107" alt="Powered by Bloodhound"/></a>
+					<a id="tracpowered" href="http://trac.edgewall.org/"><img 
+							src="/trac/project/chrome/common/trac_logo_mini.png" height="30" 
+							width="107" alt="Trac Powered" /></a>
+          <p class="left">
+            Powered by <a href="http://www.apache.org/">Apache<sup>TM</sup></a>
<a href="${href.about()}"><strong>Bloodhound ${trac.version}</strong></a>.
<br/>
+            based on <a href="http://trac.edgewall.org/"><strong>Trac</strong></a>
+            by <a href="http://www.edgewall.org/">Edgewall Software</a>.
+          </p>
+          <p class="right">${chrome.footer}</p>
+        </div>
+      </div>
+    </div>
+  </body></py:match>
+</html>

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
------------------------------------------------------------------------------
    svn:executable = *

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bloodhound_theme.html
------------------------------------------------------------------------------
    svn:mime-type = text/html

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1308030&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Sun Apr  1 08:36:41 2012
@@ -0,0 +1,26 @@
+
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+from trac.core import *
+from themeengine.api import ThemeBase
+
+class BloodhoundTheme(ThemeBase):
+    """Look and feel of Bloodhound issue tracker."""
+    
+    template = htdocs = css = screenshot = True
+    

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/bloodhound/trunk/bloodhound_theme/setup.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/setup.py?rev=1308030&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/setup.py (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/setup.py Sun Apr  1 08:36:41 2012
@@ -0,0 +1,39 @@
+#!/usr/bin/env python
+# -*- coding: iso-8859-1 -*-
+
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+from setuptools import setup
+
+setup(
+  name = 'BloodhoundTheme',
+  version = '1.0',
+  description = "Look and feel of Bloodhound issue tracker",
+  license = "Apache License v2",
+  keywords = "trac plugin theme bloodhound",
+  packages = ['bhtheme'],
+  package_data = {'bhtheme': ['htdocs/*.*', 'templates/*.*']},
+  classifiers = [
+      'Framework :: Trac',
+    ],
+  install_requires = ['TracThemeEngine', 'Trac'],
+  entry_points = {
+      'trac.plugins': [
+            'bhtheme.theme = bhtheme.theme',
+        ]}
+)

Propchange: incubator/bloodhound/trunk/bloodhound_theme/setup.py
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message