Changeset 152

Show
Ignore:
Timestamp:
05/06/08 22:34:50 (2 months ago)
Author:
rgrp
Message:

[www]: change to use KForge/CKAN style layout for web interface.

  • Some minor mods to remove a few unused items
  • Use url_for to generate all internal links
  • To avoid copying all style files once again have used svn:externals to pull them in from m.okfn.org in main okf repo.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/shakespeare/public

    • Property svn:externals set to
      css http://okfn.org/sysadmin/svn/trunk/m.okfn.org/kforge/css
      images http://okfn.org/sysadmin/svn/trunk/m.okfn.org/kforge/images
      scripts http://okfn.org/sysadmin/svn/trunk/m.okfn.org/kforge/scripts

  • trunk/shakespeare/templates/layout.html

    Revision 150 Revision 152
    1<html xmlns="http://www.w3.org/1999/xhtml" 1<html xmlns="http://www.w3.org/1999/xhtml" 
    2  xmlns:py="http://genshi.edgewall.org/"  2  xmlns:py="http://genshi.edgewall.org/"  
    3  xmlns:xi="http://www.w3.org/2001/XInclude"> 3  xmlns:xi="http://www.w3.org/2001/XInclude"> 
    4  <head>   
    5    <title>Open Shakespeare - ${page_title()}</title>   
    6 4 
    7    <link 5<head> 
    8      href="http://m.okfn.org/okftext/css/okftext/text_basic.css" 6  <title>Open Shakespeare - ${page_title()}</title> 
    9      type="text/css" rel="stylesheet" />   
    10    <style type="text/css">   
    11      #footer   
    12      {   
    13        font-size: 0.8em;   
    14        text-align: center;   
    15        margin-top: 1em;   
    16      }   
    17    </style>   
    18 7 
    19    <py:if test="page_specific_css">  8   <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    20      ${page_specific_css()}  9   <link rel="stylesheet" href="/css/master.css" type="text/css" media="screen, print" title="Master stylesheet" charset="utf-8" /> 
    21    </py:if>  10   <style type="text/css"> 
    22  </head>  11     #top-bar { display: none; } 
       12     #subnav * { display: none; } 
       13   </style> 
    23 14 
    24  <body>  15   <py:if test="page_specific_css"> 
    25    <h1>${page_title()}</h1>  16     ${page_specific_css()} 
       17   </py:if> 
       18 </head> 
    26 19 
    27    <div id="content">  20 <body> 
    28      <content>Default content - this will be replaced</content>  21 <div id="airlock"> 
       22   <!--[if IE]> 
       23     <hr class="holder" /> 
       24   <![endif]--> 
       25   <div id="top"> 
       26     <div id="top-inner"> 
       27       <div id="top-bar"> 
       28         <topbar> 
       29          
       30         <py:choose> 
       31         <py:when test="c.user"> 
       32         <p> 
       33           Logged in as <strong>${c.user}</strong>  
       34           | <a href="/account/logout/">Logout</a> 
       35         </p> 
       36         </py:when> 
       37         <py:otherwise> 
       38           <p> 
       39           <a href="/account/">Register</a> or 
       40           <a href="/account/login/">Login</a> 
       41           </p> 
       42         </py:otherwise> 
       43         </py:choose> 
       44         </topbar> 
       45       </div><!-- /top-bar --> 
       46        
       47     <h1><a href="${h.url_for(controller='site', action='home')}" title="Open Shakespeare Home">Open Shakespeare</a></h1> 
       48      
       49     </div><!-- /top-inner --> 
       50       
       51     <h3 class="hidden">Sections:</h3> 
       52     <ul id="navigation"> 
       53       <li><a href="${h.url_for(controller='site', action='index')}">Home</a></li> 
       54       <li><a href="${h.url_for(controller='site', action='guide')}">Guide</a></li> 
       55       <li><a href="${h.url_for(controller='site', action='index')}">Texts</a></li> 
       56       <li><a href="/account/">User Accounts</a></li> 
       57     </ul> 
       58     <h3 class="hidden">In this section:</h3> 
       59     <ul id="subnav"> 
       60       <minornavigation> 
       61       <li><a href="${h.url_for(controller='site', action='index')}">Home</a></li> 
       62       <py:choose> 
       63       <py:when test="c.user"> 
       64       <li><a href="/account/logout/">Logout</a></li> 
       65       </py:when> 
       66       <py:otherwise> 
       67       <li><a href="/account/">Register</a></li> 
       68       <li><a href="/account/login/">Login</a></li> 
       69       </py:otherwise> 
       70       </py:choose> 
       71       <li><a href="/package/new/">New Package</a></li> 
       72       </minornavigation> 
       73     </ul> 
       74         
       75     <!--[if IE]> 
       76     <hr class="holder" /> 
       77     <![endif]--> 
       78      
       79   </div><!-- /top --> 
       80    
       81   <p class="hidden"><a href="#main" title="Skip to page content">[ Skip to main content ]</a></p>  
       82    
       83   <div id="primary" class="sidebar"> 
       84     <div class="box"> 
       85       <h2>Using </h2> 
       86       <p>For information on using Open Shakespeare check out the 
       87       <a href="${h.url_for(action='guide')}">Guide</a>. 
       88       If you have a question or have found a bug please post to the <a href="http://lists.okfn.org/mailman/listinfo/okfn-help">okfn-help</a> mailing list. 
       89       </p> 
    29    </div> 90    </div> 
      91    <primarysidebar> 
      92    <!-- Primary Side Bar Goes Here --> 
      93    </primarysidebar> 
      94     
      95    <!--[if IE]> 
      96    <hr class="primary" /> 
      97    <![endif]--> 
      98     
      99  </div><!-- /primary --> 
    30 100 
      101  <div id="main"> 
      102    <h2>${page_title()}</h2> 
      103    <content> 
      104      <p>Master content template placeholder &hellip; please replace me.</p> 
      105    </content> 
      106     
    31    <div id="footer"> 107    <div id="footer"> 
    32      <p> 108      <p> 
    33        This web interface is part of the <a 109        <a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.1">XHTML</a> 
    34        href="http://www.openshakespeare.org/">Open Shakespeare</a> project 110        | <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> 
    35        developed by the <a href="http://www.okfn.org/">Open Knowledge 111        | <a href="http://www.okfn.org/shakespeare/">Project Home Page</a> 
    36        Foundation</a> 112        | <a href="mailto:info@okfn.org">Contact Us</a> 
    37      </p> 113      </p> 
    38      <p> 114      <p> 
    39        All material &copy; Open Knowledge Foundation and available under 115        <img style="margin-bottom: -5px;" src="http://m.okfn.org/images/logo/okf_logo_white_and_green_tiny.png" /> An <a href="http://www.okfn.org/">Open Knowledge Foundation</a> Project 
    40        an <a href="http://okd.okfn.org/">open</a> license   
    41        <br />   
    42        See the COPYING file in the <a   
    43          href="http://www.openshakespeare.org/download/"> source   
    44          distribution</a> for details.   
    45      </p> 116      </p> 
    46    </div>  117       <p> 
       118         (c) Open Knowledge Foundation 
       119         | All material available under an <a href="/license/">open license</a> 
       120         | <a href="http://www.opendefinition.org/1.0/"><img 
       121             style="border: none; margin-bottom: -4px;" 
       122             src="http://m.okfn.org/images/ok_buttons/ok_90x15_blue.png" 
       123             alt="This Content and Data is Open" /></a> 
       124       </p> 
       125     </div><!-- /footer --> 
       126      
       127     <!--[if IE]> 
       128     <hr class="main" /> 
       129     <![endif]--> 
       130      
       131   </div><!-- /main --> 
    47 132 
    48  </body>  133 </div><!-- /airlock --> 
       134 </body> 
    49</html> 135</html>