Permalink
Browse files

Added subtitle to Banner for site sub title

  • Loading branch information...
1 parent 0d25245 commit 69d99a3c4e044d833514c410bf127c9d9bbaf6b1 Neville Newey committed May 30, 2010
Showing with 15 additions and 1 deletion.
  1. +3 −0 abraxas/lib/base.py
  2. +1 −0 abraxas/public/static/pycss.css
  3. +5 −1 abraxas/templates/base_960.mako
  4. +3 −0 development.ini
  5. +3 −0 prod.ini
View
3 abraxas/lib/base.py
@@ -35,6 +35,9 @@ def __before__(self, **kwds):
# Pass the logo_file name to the template context
c.logo_file = config.get('logo_file', 'logo.png')
+ # Pass the site sub-title to the template context
+ c.subtitle = config.get('banner_subtitle', None)
+
# Set up pagination
if self.__class__.__name__ == 'EntryController':
if not 'view' in kwds:
View
1 abraxas/public/static/pycss.css
@@ -33,3 +33,4 @@ div#footer {border-bottom:3px solid #bbbbbb;text-align:center;border-top:3px sol
div#sidebar_tags {padding: 0 0 0 0;margin-bottom: 1em;color: gray}
h1#sidebar_sources_header {background:#e9e9e9;margin:0px;font-size:100%;color:black}
h1#sidebar_tags_header {background:#e9e9e9;margin:0px;font-size:100%;color:black}
+span#subtitle {vertical-align:23px;font-size:200%}
View
6 abraxas/templates/base_960.mako
@@ -68,7 +68,11 @@ Abraxas
</%def>
## -------------------------- banner ---------------------------
<%def name="banner()">
- <div class="grid_11 banner"><img src="${c.logo_file}" alt="Logo" onclick="document.location='/'" /></div>
+ <div class="grid_11 banner"><img src="${c.logo_file}" alt="Logo" onclick="document.location='/'" />
+ % if c.subtitle:
+ <span id="subtitle">${c.subtitle}</span>
+ % endif
+ </div>
<div class="grid_5 banner">
## If you want a search form in your banner uncomment these lines
## <form id="banner_search" action="/search">
View
3 development.ini
@@ -44,6 +44,9 @@ sqlalchemy.pool_recycle = 30
#logo_file = /static/logo-abraxas-africa.png
logo_file = /static/logo.png
+# The subtitle that appears in the banner, can be omitted for none
+banner_subtitle = My Site
+
# Number of popular tags to display in the sidebar.
ntags = 10
View
3 prod.ini
@@ -44,6 +44,9 @@ set debug = false
#logo_file = /static/logo-abraxas-africa.png
logo_file = /static/logo.png
+# The subtitle that appears in the banner, can be omitted for none
+banner_subtitle = My Site
+
# Number of popular tags to display in the sidebar.
ntags = 10

0 comments on commit 69d99a3

Please sign in to comment.