Changeset 2941

Show
Ignore:
Timestamp:
02/21/07 19:47:51 (2 years ago)
Author:
mscott
Message:

Make things a little easier on the eyes, and more consistent

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/public/index.html

    r2915 r2941  
    44        <head> 
    55                <title>Schevo Database Navigator</title> 
     6 
     7        <link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8" /> 
    68        </head> 
    79<body> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/base.html

    r2940 r2941  
    33    <head> 
    44        <title>${self.title()}</title> 
     5         
     6        <link rel="stylesheet" href="/css/master.css" type="text/css" media="screen" title="no title" charset="utf-8" /> 
    57    </head> 
    68     
    79    <body> 
    810        <div class="parents"> 
    9             ${self.parents()} 
     11            <h1>Parents</h1> 
     12            <ul> 
     13                ${self.parents()} 
     14            </ul> 
    1015        </div> 
    1116         
    1217        <div class="properties"> 
    13             ${self.properties()} 
     18            <h1>Properties</h1> 
     19            <ul> 
     20                ${self.properties()} 
     21            </ul> 
    1422        </div> 
    1523         
    16         <ul class="fields"> 
    17             ${self.fields()} 
    18         </ul> 
     24        <div class="fields"> 
     25            <h1>Fields</h1> 
     26            <ul> 
     27                ${self.fields()} 
     28            </ul> 
     29        </div> 
    1930         
    2031        <div class="children"> 
    21             ${self.children()} 
     32            <h1>Children</h1> 
     33            <ul> 
     34                ${self.children()} 
     35            </ul> 
    2236        </div> 
    2337         
    2438        <div class="relationships"> 
     39            <h1>Relationships</h1> 
    2540            ${self.relationships()} 
    2641        </div> 
    2742         
    2843        <div class="body"> 
     44            <h1>Body</h1> 
    2945            ${self.body()} 
    3046        </div> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/databases/index.html

    r2940 r2941  
    66 
    77<%def name="parents()"> 
    8     <a href="${h.url_for('databases')}">Databases</a
     8    <li class="here"><a href="${h.url_for('databases')}">Databases</a></li
    99</%def> 
    1010 
    1111<%def name="children()"> 
    12         <ul> 
    13             % for db_id, db in c.dbs.iteritems(): 
    14                 <li> 
    15                     <a href="${h.url_for('database', id=db_id)}">${h.label(db)}</a> 
    16                 </li> 
    17             % endfor 
    18         </ul> 
     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 
    1917</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/databases/show.html

    r2940 r2941  
    88 
    99<%def name="parents()"> 
    10     <a href="${h.url_for('databases')}">Databases</a> 
    11     &rarr; 
    12     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
     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> 
    1312</%def> 
    1413 
    1514<%def name="children()"> 
    16         <ul> 
    17                 <li> 
    18                         <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    19                 </li> 
    20         </ul> 
     15        <li> 
     16                <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     17        </li> 
    2118</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/index.html

    r2940 r2941  
    1414 
    1515<%def name="parents()"> 
    16     <a href="${h.url_for('databases')}">Databases</a> 
    17     &rarr; 
    18     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    19     &rarr; 
    20     <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    21     &rarr; 
    22     <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    23         >${h.plural(c.extent)}</a> 
    24     &rarr; 
    25     <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    26         >Queries</a> 
     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> 
    2723</%def> 
    2824 
    2925<%def name="children()"> 
    30         <ul> 
    31             % for name in c.extent.q: 
    32                 <li> 
    33                     <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
    34                         >${h.label(c.extent.q[name])}</a> 
    35                 </li> 
    36             % endfor 
    37         </ul> 
     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 
    3832</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_queries/show.html

    r2940 r2941  
    1616 
    1717<%def name="parents()"> 
    18     <a href="${h.url_for('databases')}">Databases</a> 
    19     &rarr; 
    20     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    21     &rarr; 
    22     <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    23     &rarr; 
    24     <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    25         >${h.plural(c.extent)}</a> 
    26     &rarr; 
    27     <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    28         >Queries</a> 
    29     &rarr; 
    30     <a href="${h.url_for('extent_query', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
    31         >${h.label(c.method)}</a> 
     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> 
    3227</%def> 
    3328 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/index.html

    r2940 r2941  
    1414 
    1515<%def name="parents()"> 
    16     <a href="${h.url_for('databases')}">Databases</a> 
    17     &rarr; 
    18     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    19     &rarr; 
    20     <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    21     &rarr; 
    22     <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    23         >${h.plural(c.extent)}</a> 
    24     &rarr; 
    25     <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    26         >Transactions</a> 
     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> 
    2723</%def> 
    2824 
    2925<%def name="children()"> 
    30         <ul> 
    31             % for name in c.extent.t: 
    32                 <li> 
    33                     <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=name)}" 
    34                         >${h.label(c.extent.t[name])}</a> 
    35                 </li> 
    36             % endfor 
    37         </ul> 
     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 
    3832</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extent_transactions/show.html

    r2940 r2941  
    1616 
    1717<%def name="parents()"> 
    18     <a href="${h.url_for('databases')}">Databases</a> 
    19     &rarr; 
    20     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    21     &rarr; 
    22     <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    23     &rarr; 
    24     <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    25         >${h.plural(c.extent)}</a> 
    26     &rarr; 
    27     <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    28         >Transactions</a> 
    29     &rarr; 
    30     <a href="${h.url_for('extent_transaction', db_id=c.db_id, extent_id=c.extent.name, id=c.method_id)}" 
    31         >${h.label(c.method)}</a> 
     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> 
    3227</%def> 
    3328 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/index.html

    r2940 r2941  
    1010 
    1111<%def name="parents()"> 
    12     <a href="${h.url_for('databases')}">Databases</a> 
    13     &rarr; 
    14     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    15     &rarr; 
    16     <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
     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> 
    1715</%def> 
    1816 
    1917<%def name="children()"> 
    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> 
     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 
    2824</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/extents/show.html

    r2940 r2941  
    1212 
    1313<%def name="parents()"> 
    14     <a href="${h.url_for('databases')}">Databases</a> 
    15     &rarr; 
    16     <a href="${h.url_for('database', id=c.db_id)}">${h.label(c.db)}</a> 
    17     &rarr; 
    18     <a href="${h.url_for('extents', db_id=c.db_id)}">Extents</a> 
    19     &rarr; 
    20     <a href="${h.url_for('extent', db_id=c.db_id, id=c.extent.name)}" 
    21         >${h.plural(c.extent)}</a> 
     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> 
    2219</%def> 
    2320 
    2421<%def name="properties()"> 
    25     <ul> 
    26         <li> 
    27             <label for="extent_name">Name</label> 
    28             <span class="value" id="extent_name">${c.extent.name}</span> 
    29         </li> 
    30          
    31         <li> 
    32             <label for="extent_label">Label</label> 
    33             <span class="value" id="extent_label">${h.label(c.extent)}</span> 
    34         </li> 
    35          
    36         <li> 
    37             <label for="extent_plural">Plural label</label> 
    38             <span class="value" id="extent_plural">${h.plural(c.extent)}</span> 
    39         </li> 
    40          
    41         <li> 
    42             <label for="extent_len">Entity count</label> 
    43             <span class="value" id="extent_len">${len(c.extent)}</span> 
    44         </li> 
    45     </ul> 
     22    <li> 
     23        <label for="extent_name">Name</label> 
     24        <span class="value" id="extent_name">${c.extent.name}</span> 
     25    </li> 
     26     
     27    <li> 
     28        <label for="extent_label">Label</label> 
     29        <span class="value" id="extent_label">${h.label(c.extent)}</span> 
     30    </li> 
     31     
     32    <li> 
     33        <label for="extent_plural">Plural label</label> 
     34        <span class="value" id="extent_plural">${h.plural(c.extent)}</span> 
     35    </li> 
     36     
     37    <li> 
     38        <label for="extent_len">Entity count</label> 
     39        <span class="value" id="extent_len">${len(c.extent)}</span> 
     40    </li> 
    4641</%def> 
    4742 
    4843<%def name="children()"> 
    49         <ul> 
    50                 <li> 
    51                         <a href="${h.url_for('extent_queries', db_id=c.db_id, extent_id=c.extent.name)}" 
    52                             >Queries</a> 
    53                 </li> 
    54                  
    55                 <li> 
    56                     <a href="${h.url_for('extent_transactions', db_id=c.db_id, extent_id=c.extent.name)}" 
    57                         >Transactions</a> 
    58                 </li> 
    59         </ul> 
     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         
     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> 
    6053</%def> 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/queries/show.html

    r2940 r2941  
    88 
    99<%def name="parents()"> 
    10     Queries 
    11     &rarr; 
    12     <a href="${h.url_for('query', id=c.query_id)}">${h.label(c.query)}</a> 
     10    <li>Queries</li> 
     11    <li class="here"><a href="${h.url_for('query', id=c.query_id)}">${h.label(c.query)}</a></li> 
    1312</%def> 
    1413 
  • sandbox/mscott/SchevoPylonsNav/trunk/schevopylonsnav/templates/transactions/show.html

    r2940 r2941  
    88 
    99<%def name="parents()"> 
    10     Transactions 
    11     &rarr; 
    12     <a href="${h.url_for('transaction', id=c.tx_id)}">${h.label(c.tx)}</a> 
     10    <li>Transactions</li> 
     11    <li class="here"><a href="${h.url_for('transaction', id=c.tx_id)}">${h.label(c.tx)}</a></li> 
    1312</%def> 
    1413