Changeset 2944

Show
Ignore:
Timestamp:
02/21/07 20:06:58 (2 years ago)
Author:
mscott
Message:

Easier to work with styles when ul tags are only there when there are list items inside

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/public/css/master.css

    r2943 r2944  
    7272 
    7373/* @end */ 
    74  
    75 /* @group body */ 
    76  
    77 div.body div.content { 
    78   margin-top: 1em; 
    79   } 
    80  
    81 /* @end */ 
    8274   
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/base.html

    r2942 r2944  
    1010        <div class="parents"> 
    1111            <h1>Parents</h1> 
    12             <ul> 
    13                 ${self.parents()} 
    14             </ul> 
     12            ${self.parents()} 
    1513        </div> 
    1614         
    1715        <div class="properties"> 
    1816            <h1>Properties</h1> 
    19             <ul> 
    20                 ${self.properties()} 
    21             </ul> 
     17            ${self.properties()} 
    2218        </div> 
    2319         
    2420        <div class="fields"> 
    2521            <h1>Fields</h1> 
    26             <ul> 
    27                 ${self.fields()} 
    28             </ul> 
     22            ${self.fields()} 
    2923        </div> 
    3024         
    3125        <div class="children"> 
    3226            <h1>Children</h1> 
    33             <ul> 
    34                 ${self.children()} 
    35             </ul> 
     27            ${self.children()} 
    3628        </div> 
    3729         
     
    4335        <div class="body"> 
    4436            <h1>Body</h1> 
    45             <div class="content"> 
    46                 ${self.body()} 
    47             </div> 
     37            ${self.body()} 
    4838        </div> 
    4939    </body> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/databases/index.html

    r2941 r2944  
    66 
    77<%def name="parents()"> 
    8     <li class="here"><a href="${h.url_for('databases')}">Databases</a></li> 
     8    <ul> 
     9        <li class="here"><a href="${h.url_for('databases')}">Databases</a></li> 
     10    </ul> 
    911</%def> 
    1012 
    1113<%def name="children()"> 
    12     % for db_id, db in c.dbs.iteritems(): 
    13         <li> 
    14             <a href="${h.url_for('database', id=db_id)}">${h.label(db)}</a> 
    15         </li> 
    16     % endfor 
     14    <ul> 
     15        % for db_id, db in c.dbs.iteritems(): 
     16            <li> 
     17                <a href="${h.url_for('database', id=db_id)}">${h.label(db)}</a> 
     18            </li> 
     19        % endfor 
     20    </ul> 
    1721</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/databases/show.html

    r2941 r2944  
    88 
    99<%def name="parents()"> 
    10     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    11     <li class="here"><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     10    <ul> 
     11        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     12        <li class="here"><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     13    </ul> 
    1214</%def> 
    1315 
    1416<%def name="children()"> 
    15         <li> 
    16                 <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    17         </li> 
     17    <ul> 
     18            <li> 
     19                    <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     20            </li> 
     21        </ul> 
    1822</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/index.html

    r2941 r2944  
    1414 
    1515<%def name="parents()"> 
    16     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    17     <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
    18     <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
    19     <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    20         >${h.plural(c.extent)}</a></li> 
    21     <li class="here"><a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    22         >Queries</a></li> 
     16    <ul> 
     17        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     18        <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     19        <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     20        <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     21            >${h.plural(c.extent)}</a></li> 
     22        <li class="here"><a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
     23            >Queries</a></li> 
     24    </ul> 
    2325</%def> 
    2426 
    2527<%def name="children()"> 
    26     % for name in c.extent.q: 
    27         <li> 
    28             <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
    29                 >${h.label(c.extent.q[name])}</a> 
    30         </li> 
    31     % endfor 
     28    <ul> 
     29        % for name in c.extent.q: 
     30            <li> 
     31                <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
     32                    >${h.label(c.extent.q[name])}</a> 
     33            </li> 
     34        % endfor 
     35    </ul> 
    3236</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/show.html

    r2941 r2944  
    1616 
    1717<%def name="parents()"> 
    18     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    19     <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
    20     <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
    21     <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    22         >${h.plural(c.extent)}</a></li> 
    23     <li><a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    24         >Queries</a></li> 
    25     <li class="here"><a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
    26         >${h.label(c.method)}</a></li> 
     18    <ul> 
     19        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     20        <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     21        <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     22        <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     23            >${h.plural(c.extent)}</a></li> 
     24        <li><a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
     25            >Queries</a></li> 
     26        <li class="here"><a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
     27            >${h.label(c.method)}</a></li> 
     28    </ul> 
    2729</%def> 
    2830 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/index.html

    r2941 r2944  
    1414 
    1515<%def name="parents()"> 
    16     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    17     <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
    18     <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
    19     <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    20         >${h.plural(c.extent)}</a></li> 
    21     <li class="here"><a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    22         >Transactions</a></li> 
     16    <ul> 
     17        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     18        <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     19        <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     20        <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     21            >${h.plural(c.extent)}</a></li> 
     22        <li class="here"><a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
     23            >Transactions</a></li> 
     24    </ul> 
    2325</%def> 
    2426 
    2527<%def name="children()"> 
    26     % for name in c.extent.t: 
    27         <li> 
    28             <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
    29                 >${h.label(c.extent.t[name])}</a> 
    30         </li> 
    31     % endfor 
     28    <ul> 
     29        % for name in c.extent.t: 
     30            <li> 
     31                <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
     32                    >${h.label(c.extent.t[name])}</a> 
     33            </li> 
     34        % endfor 
     35    </ul> 
    3236</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/show.html

    r2941 r2944  
    1616 
    1717<%def name="parents()"> 
    18     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    19     <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
    20     <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
    21     <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    22         >${h.plural(c.extent)}</a></li> 
    23     <li><a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    24         >Transactions</a></li> 
    25     <li class="here"><a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
    26         >${h.label(c.method)}</a></li> 
     18    <ul> 
     19        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     20        <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     21        <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     22        <li><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     23            >${h.plural(c.extent)}</a></li> 
     24        <li><a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
     25            >Transactions</a></li> 
     26        <li class="here"><a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
     27            >${h.label(c.method)}</a></li> 
     28    </ul> 
    2729</%def> 
    2830 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/index.html

    r2941 r2944  
    1010 
    1111<%def name="parents()"> 
    12     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    13     <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
    14     <li class="here"><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     12    <ul> 
     13        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     14        <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     15        <li class="here"><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     16    </ul> 
    1517</%def> 
    1618 
    1719<%def name="children()"> 
    18     % for extent in c.db.extents(): 
    19         <li> 
    20             <a href="${h.url_for('extent', db_id=c.db_id, id=extent.name)}" 
    21                 >${h.plural(extent)}</a> 
    22         </li> 
    23     % endfor 
     20    <ul> 
     21        % for extent in c.db.extents(): 
     22            <li> 
     23                <a href="${h.url_for('extent', db_id=c.db_id, id=extent.name)}" 
     24                    >${h.plural(extent)}</a> 
     25            </li> 
     26        % endfor 
     27    </ul> 
    2428</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/show.html

    r2941 r2944  
    1212 
    1313<%def name="parents()"> 
    14     <li><a href="${h.url_for('databases')}">Databases</a></li> 
    15     <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
    16     <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
    17     <li class="here"><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    18         >${h.plural(c.extent)}</a></li> 
     14    <ul> 
     15        <li><a href="${h.url_for('databases')}">Databases</a></li> 
     16        <li><a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a></li> 
     17        <li><a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a></li> 
     18        <li class="here"><a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
     19            >${h.plural(c.extent)}</a></li> 
     20    </ul> 
    1921</%def> 
    2022 
    2123<%def name="properties()"> 
    22     <li> 
    23         <label for="extent_name">Name</label> 
    24         <span class="value" id="extent_name">${c.extent.name}</span> 
    25     </li> 
     24    <ul> 
     25        <li> 
     26            <label for="extent_name">Name</label> 
     27            <span class="value" id="extent_name">${c.extent.name}</span> 
     28        </li> 
    2629     
    27     <li> 
    28         <label for="extent_label">Label</label> 
    29         <span class="value" id="extent_label">${h.label(c.extent)}</span> 
    30     </li> 
     30        <li> 
     31            <label for="extent_label">Label</label> 
     32            <span class="value" id="extent_label">${h.label(c.extent)}</span> 
     33        </li> 
    3134     
    32     <li> 
    33         <label for="extent_plural">Plural label</label> 
    34         <span class="value" id="extent_plural">${h.plural(c.extent)}</span> 
    35     </li> 
     35        <li> 
     36            <label for="extent_plural">Plural label</label> 
     37            <span class="value" id="extent_plural">${h.plural(c.extent)}</span> 
     38        </li> 
    3639     
    37     <li> 
    38         <label for="extent_len">Entity count</label> 
    39         <span class="value" id="extent_len">${len(c.extent)}</span> 
    40     </li> 
     40        <li> 
     41            <label for="extent_len">Entity count</label> 
     42            <span class="value" id="extent_len">${len(c.extent)}</span> 
     43        </li> 
     44    </ul> 
    4145</%def> 
    4246 
    4347<%def name="children()"> 
    44         <li> 
    45                 <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    46                     >Queries</a> 
    47         </li> 
     48    <ul> 
     49        <li> 
     50                <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
     51                    >Queries</a> 
     52        </li> 
    4853         
    49         <li> 
    50             <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    51                 >Transactions</a> 
    52         </li> 
     54        <li> 
     55            <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
     56                >Transactions</a> 
     57        </li> 
     58    </ul> 
    5359</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/queries/show.html

    r2941 r2944  
    88 
    99<%def name="parents()"> 
    10     <li>Queries</li> 
    11     <li class="here"><a href="${h.url_for('query', id=c.query_id)}">${h.label(c.query)}</a></li> 
     10    <ul> 
     11        <li>Queries</li> 
     12        <li class="here"><a href="${h.url_for('query', id=c.query_id)}">${h.label(c.query)}</a></li> 
     13    </ul> 
    1214</%def> 
    1315 
    1416<%def name="fields()"> 
    15     % for name, field in c.query.sys.field_map().iteritems(): 
    16         <li> 
    17             <label for="${name}"> 
    18                 ${h.label(field)} 
    19             </label>  
    20             <span id="${name}" class="value"> 
    21                 ${field.value} 
    22             </span> 
    23         </li> 
    24     % endfor 
     17    <ul> 
     18        % for name, field in c.query.sys.field_map().iteritems(): 
     19            <li> 
     20                <label for="${name}"> 
     21                    ${h.label(field)} 
     22                </label>  
     23                <span id="${name}" class="value"> 
     24                    ${field.value} 
     25                </span> 
     26            </li> 
     27        % endfor 
     28    </ul> 
    2529</%def> 
    2630 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/transactions/show.html

    r2941 r2944  
    88 
    99<%def name="parents()"> 
    10     <li>Transactions</li> 
    11     <li class="here"><a href="${h.url_for('transaction', id=c.tx_id)}">${h.label(c.tx)}</a></li> 
     10    <ul> 
     11        <li>Transactions</li> 
     12        <li class="here"><a href="${h.url_for('transaction', id=c.tx_id)}">${h.label(c.tx)}</a></li> 
     13    </ul> 
    1214</%def> 
    1315 
    1416<%def name="fields()"> 
    15     % for name, field in c.tx.sys.field_map().iteritems(): 
    16         <li> 
    17             <label for="${name}"> 
    18                 ${h.label(field)} 
    19             </label>  
    20             <span id="${name}" class="value"> 
    21                 ${field.value} 
    22             </span> 
    23         </li> 
    24     % endfor 
     17    <ul> 
     18        % for name, field in c.tx.sys.field_map().iteritems(): 
     19            <li> 
     20                <label for="${name}"> 
     21                    ${h.label(field)} 
     22                </label>  
     23                <span id="${name}" class="value"> 
     24                    ${field.value} 
     25                </span> 
     26            </li> 
     27        % endfor 
     28    </ul> 
    2529</%def>