Changeset d968726425b46dfd1c34e992b0e10ab8bf2693d6

Show
Ignore:
Timestamp:
08/04/08 19:29:00 (5 months ago)
Author:
Christoph Haas <email@…>
Parents:
511677c7e983e193edf4960e4d8461b658e209b0
Children:
2729f21c976d4e83612d93efbfa14b2be2fd8299
git-committer:
Christoph Haas <email@christoph-haas.de> / 2008-08-04T19:29:00Z+0200
Message:

General web design. Fixed Mako template inheritance (next.body()).CG: -----------------------------------------------------------------------

Files:
2 added
1 removed
23 modified

Legend:

Unmodified
Added
Removed
  • debexpo/controllers/login.py

    ra4878a rd96872  
    8585            return redirect_to(session['path_before_login']) 
    8686        else: 
    87             return redirect_to(url_for('my', action=None)) 
     87            return redirect_to(h.url_for('/my')) 
    8888 
    8989    def index(self, get=False): 
  • debexpo/controllers/packages.py

    r5f7c47 rd96872  
    124124        c.config = config 
    125125        c.packages = packages 
    126         return render('/packages/index.mako') 
     126        return render('/packages/list.mako') 
    127127 
    128128    def section(self, id): 
  • debexpo/i18n/debexpo.pot

    r4d1211 rd96872  
    99"Project-Id-Version: debexpo 0.0.0\n" 
    1010"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" 
    11 "POT-Creation-Date: 2008-07-31 17:55+0200\n" 
     11"POT-Creation-Date: 2008-08-03 16:41+0200\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    6262msgstr "" 
    6363 
    64 #: debexpo/templates/base.mako:22 
     64#: debexpo/templates/base.mako:23 
    6565msgid "Welcome" 
    6666msgstr "" 
    6767 
    68 #: debexpo/templates/base.mako:23 
     68#: debexpo/templates/base.mako:24 
    6969msgid "Start page" 
    7070msgstr "" 
    7171 
    72 #: debexpo/templates/base.mako:24 
     72#: debexpo/templates/base.mako:25 
    7373msgid "News" 
    7474msgstr "" 
    7575 
    76 #: debexpo/templates/base.mako:26 
     76#: debexpo/templates/base.mako:27 
    7777msgid "For maintainers" 
    7878msgstr "" 
    7979 
    80 #: debexpo/templates/base.mako:27 debexpo/templates/base.mako:33 
     80#: debexpo/templates/base.mako:28 debexpo/templates/base.mako:34 
    8181msgid "Introduction" 
    8282msgstr "" 
    8383 
    84 #: debexpo/templates/base.mako:28 debexpo/templates/base.mako:34 
     84#: debexpo/templates/base.mako:29 debexpo/templates/base.mako:35 
    8585msgid "Sign me up" 
    8686msgstr "" 
    8787 
    88 #: debexpo/templates/base.mako:29 debexpo/templates/base.mako:35 
     88#: debexpo/templates/base.mako:30 debexpo/templates/base.mako:36 
    8989#: debexpo/templates/my/index.mako:6 
    9090msgid "My account" 
    9191msgstr "" 
    9292 
    93 #: debexpo/templates/base.mako:30 
     93#: debexpo/templates/base.mako:31 
    9494msgid "My packages" 
    9595msgstr "" 
    9696 
    97 #: debexpo/templates/base.mako:36 debexpo/templates/packages/index.mako:6 
     97#: debexpo/templates/base.mako:37 debexpo/templates/packages/index.mako:6 
    9898msgid "Package list" 
    9999msgstr "" 
    100100 
    101 #: debexpo/templates/base.mako:38 
     101#: debexpo/templates/base.mako:39 
    102102msgid "Support" 
    103103msgstr "" 
    104104 
    105 #: debexpo/templates/base.mako:39 
     105#: debexpo/templates/base.mako:40 
    106106msgid "Q &amp; A" 
    107107msgstr "" 
    108108 
    109 #: debexpo/templates/base.mako:40 
     109#: debexpo/templates/base.mako:41 
    110110msgid "Contact" 
    111111msgstr "" 
     
    388388msgstr "" 
    389389 
     390#: debexpo/templates/register/index.mako:13 
     391msgid "What type of account would you like to apply for?" 
     392msgstr "" 
     393 
    390394#: debexpo/templates/register/index.mako:16 
    391 msgid "Maintainer" 
    392 msgstr "" 
    393  
    394 #: debexpo/templates/register/index.mako:20 
    395 #: debexpo/templates/register/index.mako:26 
    396 msgid "Click here to proceed" 
    397 msgstr "" 
    398  
    399 #: debexpo/templates/register/index.mako:22 
     395msgid "Package Maintainer" 
     396msgstr "" 
     397 
     398#: debexpo/templates/register/index.mako:19 
     399msgid "" 
     400"A package maintainer is a person who takes care of Debian packages.\n" 
     401"    If you create Debian packages from certain pieces of (so called\n" 
     402"    \"upstream\") software then you are a maintainer. You do not need to be\n" 
     403"    an official Debian Developer (DD) or Debian Maintainer (DM)." 
     404msgstr "" 
     405 
     406#: debexpo/templates/register/index.mako:25 
    400407msgid "Sponsor" 
     408msgstr "" 
     409 
     410#: debexpo/templates/register/index.mako:28 
     411msgid "" 
     412"Uploading new packages into Debian is only possible if you\n" 
     413"    are a Debian Developer (DD) or Debian Maintainer (DM). If you want\n" 
     414"    to help package maintainers to get their packages into Debian you\n" 
     415"    can be a sponsor and check and upload packages on their behalf." 
    401416msgstr "" 
    402417 
  • debexpo/i18n/en/LC_MESSAGES/debexpo.po

    r55b8d3 rd96872  
    88"Project-Id-Version: debexpo 0.0.0\n" 
    99"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" 
    10 "POT-Creation-Date: 2008-07-31 17:55+0200\n" 
    11 "PO-Revision-Date: 2008-07-31 21:24+0200\n" 
     10"POT-Creation-Date: 2008-08-03 15:26+0200\n" 
     11"PO-Revision-Date: 2008-08-03 16:40+0200\n" 
    1212"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
    1313"Language-Team: en <LL@li.org>\n" 
     
    6262msgstr "" 
    6363 
    64 #: debexpo/templates/base.mako:22 
     64#: debexpo/templates/base.mako:23 
    6565msgid "Welcome" 
    6666msgstr "" 
    6767 
    68 #: debexpo/templates/base.mako:23 
     68#: debexpo/templates/base.mako:24 
    6969msgid "Start page" 
    7070msgstr "" 
    7171 
    72 #: debexpo/templates/base.mako:24 
     72#: debexpo/templates/base.mako:25 
    7373msgid "News" 
    7474msgstr "" 
    7575 
    76 #: debexpo/templates/base.mako:26 
     76#: debexpo/templates/base.mako:27 
    7777msgid "For maintainers" 
    7878msgstr "" 
    7979 
    80 #: debexpo/templates/base.mako:27 debexpo/templates/base.mako:33 
     80#: debexpo/templates/base.mako:28 debexpo/templates/base.mako:34 
    8181msgid "Introduction" 
    8282msgstr "" 
    8383 
    84 #: debexpo/templates/base.mako:28 debexpo/templates/base.mako:34 
     84#: debexpo/templates/base.mako:29 debexpo/templates/base.mako:35 
    8585msgid "Sign me up" 
    8686msgstr "" 
    8787 
    88 #: debexpo/templates/base.mako:29 debexpo/templates/base.mako:35 
     88#: debexpo/templates/base.mako:30 debexpo/templates/base.mako:36 
    8989#: debexpo/templates/my/index.mako:6 
    9090msgid "My account" 
    9191msgstr "" 
    9292 
    93 #: debexpo/templates/base.mako:30 
     93#: debexpo/templates/base.mako:31 
    9494msgid "My packages" 
    9595msgstr "" 
    9696 
    97 #: debexpo/templates/base.mako:36 debexpo/templates/packages/index.mako:6 
     97#: debexpo/templates/base.mako:37 debexpo/templates/packages/index.mako:6 
    9898msgid "Package list" 
    9999msgstr "" 
    100100 
    101 #: debexpo/templates/base.mako:38 
     101#: debexpo/templates/base.mako:39 
    102102msgid "Support" 
    103103msgstr "" 
    104104 
    105 #: debexpo/templates/base.mako:39 
     105#: debexpo/templates/base.mako:40 
    106106msgid "Q &amp; A" 
    107107msgstr "" 
    108108 
    109 #: debexpo/templates/base.mako:40 
     109#: debexpo/templates/base.mako:41 
    110110msgid "Contact" 
    111111msgstr "" 
  • debexpo/lib/helpers.py

    rfd5448 rd96872  
    5959                       text, \ 
    6060                       util 
     61from webhelpers.html import tags 
     62from routes import url_for 
  • debexpo/public/style.css

    ra95378 rd96872  
    1 /* Stylesheet for mentors.debian.net */ 
    2 /* (c) 2005,2006 the mentors.debian.net team */ 
    3 /* You are free to use this style sheet on your own web pages 
    4    under the terms of the GNU General Public License 2 */ 
     1/* Stylesheet for debexpo */ 
     2/* Derived from the mentors.debian.net stylesheet. */ 
     3/* Copyright © 2008 Christoph Haas <email@christoph-haas.de> */ 
     4/* and published under the same license as debexpo itself */ 
    55 
    66body 
    77{ 
    8     font-family: sans-serif; 
     8    font-family: Helvetica,Arial,sans-serif; 
    99    font-size: 10pt; 
    1010    background-color: #ffffff; 
     
    2020h1,h2 
    2121{ 
    22     font-family: "Bitstream Vera Serif", Georgia, Palatino, serif; 
     22    margin: 0.5em 0 0.2em 0; 
     23    padding: 0 0 0 0; 
     24} 
     25 
     26h1 
     27{ 
     28    font-size: 150%; 
     29    color: #E98F1D; 
     30} 
     31 
     32h2 
     33{ 
     34    font-size: 130%; 
     35} 
     36 
     37/* Navigation menu on the left site */ 
     38#floatmenu 
     39{ 
     40    float: left; 
     41    width: 19em; 
     42    /*margin-right: 2em;*/ 
     43    /* 7 pixel wide shadow on the right border of the menu */ 
     44    background: right repeat-y url(/shadow-right.png); 
     45    padding-right: 7px; 
     46    margin-right: 20px; 
     47} 
     48 
     49/* Colored subsections of the left menu */ 
     50#floatmenu .start { 
     51    background-color: #f8c078; 
     52    padding: 1em; 
     53} 
     54 
     55#floatmenu h2 { 
     56    font-size: 150%; 
    2357    font-weight: normal; 
    24     color: #d70751; 
    25         margin: 0.5em 0 0.2em 0; 
    26         padding: 0 0 0 0; 
    27 } 
    28  
    29 h1 
    30 { 
    31         font-size: 170%; 
    32         color: #000000; 
    33 } 
    34  
    35 h2 
    36 { 
    37         font-size: 140%; 
    38     color: #808080; 
    39 } 
    40  
    41  
    42 #floatmenu 
    43 { 
    44         float: left; 
    45         margin: 0.5ex; 
    46         padding: 0.5ex; 
    47         width: 20ex; 
    48 } 
     58    margin: 0 0 .3em 0; 
     59    padding: 0; 
     60} 
     61 
     62#floatmenu ul { 
     63    padding: 0; 
     64    margin: 0 0 0 1em; 
     65    list-style-type: none; 
     66    color: #000000; 
     67    font-size: 110%; 
     68} 
     69 
     70#floatmenu li { 
     71} 
     72 
    4973 
    5074/* Menu item */ 
     
    7599.menusubitem 
    76100{ 
    77         margin: 0 0 0 1em; 
    78         font-size: 9pt; 
    79         line-height: 2em; 
     101    margin: 0 0 0 1em; 
     102    font-size: 9pt; 
     103    line-height: 2em; 
    80104} 
    81105 
    82106.menusubitem-active 
    83107{ 
    84         margin: 0 0 0 1em; 
    85         font-size: 9pt; 
    86         line-height: 2em; 
    87     font-weight: bolder; 
    88 } 
    89  
    90 /* 
    91 .menuitem a 
    92 { 
    93         text-decoration: none; 
    94 } 
    95 */ 
     108    margin: 0 0 0 1em; 
     109    font-size: 9pt; 
     110    line-height: 2em; 
     111    font-weight: bolder; 
     112} 
    96113 
    97114/* The currently running CGI is highlighted */ 
    98115.currentcgi 
    99116{ 
    100         border: 1px solid red; 
     117    border: 1px solid red; 
    101118} 
    102119 
    103120#maincontent 
    104121{ 
    105         margin: 0.5ex 0.5ex 0.5ex 22ex; 
    106         padding: 0 0 0 1ex; 
    107         _border-left: 1px dotted red; 
     122    padding: 1em 1em 1em 2em; 
     123    margin-left: 20em; 
     124    /*margin: 1em 1em 1em 2em;*/ 
     125    /*padding: 0 0 0 1ex;*/ 
     126    /*background-color: red;*/ 
    108127} 
    109128 
    110129#header 
    111130{ 
    112         background-color: #f0f0f0; 
    113         color: #707070; 
    114         padding: 0.5ex; 
    115         min-height: 75px;       /* the top area is at least as large as the debian logo */ 
    116                 /* does not work with the IE but you won't see me write hacks to 
    117          * support buggy browsers */ 
    118     border-bottom: 1px solid #b0b0b0; 
    119 } 
    120  
    121 #debianlogo 
    122 { 
    123         float: left; 
    124         position: absolute; 
    125         top: 5px; 
    126         left: 5px; 
    127 } 
     131    background-color: #000000; 
     132    color: #f0f0f0; 
     133    border-bottom: .5em solid #E98F1D; 
     134    padding: 0.7em 2em 0.7em 2em; 
     135} 
     136 
     137#logo 
     138{ 
     139    float: right; 
     140    /*position: absolute;*/ 
     141    top: 5px; 
     142    right: 5px; 
     143} 
     144 
    128145#headertitle 
    129146{ 
    130     font-family: "Bitstream Vera Serif", Georgia, Palatino, serif; 
    131         font-size: 300%; 
    132         margin: 0; 
    133         margin-left: 70px;      /* indentation from the debian logo on the lft */ 
    134         padding: 0; 
    135         font-weight: 100; 
     147    font-family: Georgia, "Bitstream Vera Serif", Palatino, serif; 
     148    font-size: 250%; 
     149    padding: 0; 
     150    margin: 0; 
     151    font-weight: bold; 
    136152} 
    137153 
    138154#headersubtitle 
    139155{ 
    140         padding: 0; 
    141         margin: 0; 
    142         margin-left: 70px;      /* indentation from the debian logo on the lft */ 
    143         font-size: 110%; 
    144         font-weight: 500; 
     156    padding: 0; 
     157    margin: 0; 
     158    font-size: 110%; 
     159    font-weight: bold; 
    145160} 
    146161 
    147162#footer 
    148163{ 
    149         background-color: #f0f0f0; 
    150         color: #707070; 
    151         padding: 0.2em 1em 0.2em 1em; 
    152         margin: 2em 0 0 0; 
    153         text-align: center; 
    154         clear: both; 
    155     border-top: 1px solid #b0b0b0; 
     164    background-color: #e5e5e5; 
     165    color: #808080; 
     166    padding: 0.2em 1em 0.2em 1em; 
     167    clear: both; 
    156168} 
    157169 
    158170#navigation 
    159171{ 
    160         padding: 0.2em 1em 0.2em 1em; 
    161         background: #e0e0e0; 
     172    padding: 0.2em 1em 0.2em 1em; 
     173    background: #e0e0e0; 
    162174} 
    163175 
     
    173185        margin: 0.3ex 0em 1ex 0; 
    174186        padding: 0 0 0 0; 
     187        line-height: 1.8em; 
    175188} 
    176189 
     
    189202a:hover 
    190203{ 
    191         _border-bottom: 1px solid #000000; 
    192204        background-color: #f0f0f0; 
    193205} 
     
    197209    color: #606060; 
    198210} 
    199  
    200 /* 
    201 ul 
    202 { 
    203         _background: #e0ffe0; 
    204         _margin: 0 0 0 0 0em; 
    205         padding: 0 0 0 1em; 
    206 } 
    207  
    208 li 
    209 { 
    210         _background: #ffe0e0; 
    211         _list-style: none; 
    212         padding: 0; 
    213         margin: 0; 
    214 } 
    215 */ 
    216211 
    217212table 
     
    220215    margin: 0.5em 0 0.5em 0; 
    221216} 
    222  
    223 /* 
    224 tr 
    225 { 
    226 } 
    227 */ 
    228217 
    229218td 
     
    251240} 
    252241 
    253 /* 
    254 fieldset  
    255 {  
    256         _border: 1px solid #808080;  
    257 } 
    258  
    259 legend  
    260 { 
    261         padding: 0.2em 0.5em; 
    262         border: 1px solid #808080; 
    263         color: #808080; 
    264         _font-size: 90%; 
    265         _text-align: right; 
    266 } 
    267 */ 
    268  
    269242.warning 
    270243{ 
     
    283256    font-weight: bolder; 
    284257} 
    285  
  • debexpo/templates/base.mako

    rfd5448 rd96872  
    11# -*- coding: utf-8 -*- 
     2<?xml version="1.0" encoding="utf-8" ?> 
    23<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    34<html> 
     
    1011  <body> 
    1112    <div id="header"> 
    12       <div id="debianlogo"> 
    13         <img src="${ c.config['debexpo.logo'] }" alt="${ c.config['debexpo.sitename'] } logo" /> 
     13      <div id="logo"> 
     14        ${ h.tags.image( 
     15            c.config['debexpo.logo'], 
     16            c.config['debexpo.sitename'])} 
    1417      </div> 
    1518 
     
    2023 
    2124    <div id="floatmenu"> 
     25        <div class="start"> 
     26            <h2>Welcome</h2> 
     27            <ul> 
     28                <li>News</li> 
     29            </ul> 
     30        </div> 
     31    </div> 
     32 
     33<%""" 
    2234      <div class="menuitem">${ _('Welcome') }</div> 
    2335      <div class="menusubitem"><a href="${ h.rails.url_for('index') }">${ _('Start page') }</a></div> 
     
    3951      <div class="menusubitem"><a href="${ h.rails.url_for('qa') }">${ _('Q &amp; A') }</a></div> 
    4052      <div class="menusubitem"><a href="${ h.rails.url_for('contact') }">${ _('Contact') }</a></div> 
     53"""%> 
     54 
     55    <div id="maincontent"> 
     56      ${next.body()} 
    4157    </div> 
    4258 
    43     <div id="maincontent"> 
    44       ${self.main()} 
     59    <div id="footer"> 
     60        debexpo 
     61        - 
     62        Copyright © 2008 Jonny Lamb 
     63        - 
     64        <a href="mailto:${ c.config['debexpo.email'] }">Support contact</a> 
    4565    </div> 
    46  
    47     <div id="footer"><a href="mailto:${ c.config['debexpo.email'] }">${ c.config['debexpo.email'] }</a></div> 
    4866  </body> 
    4967</html> 
  • debexpo/templates/email/changes_list.mako

    r090a3f rd96872  
    22<%inherit file="base.mako"/> 
    33 
    4 <%def name="main()">To: ${ c.to } 
     4To: ${ c.to } 
    55Subject: Accepted ${ c.changes['Source'] } ${ c.changes['Version'] } (${ c.changes['Architecture'] }) 
    66 
     
    1212  to ${ c.dest }/${ file['name'] } 
    1313% endfor 
    14 </%def> 
  • debexpo/templates/login/index.mako

    rfd5448 rd96872  
    11# -*- coding: utf-8 -*- 
    2 <%inherit file="../base.mako"/> 
    3  
    4 <%def name="main()"> 
     2<%inherit file="/base.mako"/> 
    53 
    64<h1>${ _('Login') }</h1> 
     
    2220      <td>${ h.rails.form_tag.text_field('email') }</td> 
    2321    </tr> 
    24      
     22 
    2523    <tr> 
    2624      <td>${ _('Password') }:</td> 
    2725      <td>${ h.rails.form_tag.password_field('password') }</td> 
    2826    </tr> 
    29      
     27 
    3028    <tr> 
    3129      <td>${ h.rails.submit(_('Submit')) }</td> 
     
    3634 
    3735</fieldset> 
    38  
    39 </%def> 
  • debexpo/templates/my/index.mako

    rfd5448 rd96872  
    11# -*- coding: utf-8 -*- 
    2 <%inherit file="../base.mako"/> 
    3  
    4 <%def name="main()"> 
     2<%inherit file="/base.mako"/> 
    53