]> git.parisson.com Git - telemeta.git/commitdiff
styling home
authoryomguy <yomguy@parisson.com>
Tue, 15 Mar 2011 18:16:24 +0000 (19:16 +0100)
committeryomguy <yomguy@parisson.com>
Tue, 15 Mar 2011 18:16:24 +0000 (19:16 +0100)
telemeta/htdocs/css/telemeta.css
telemeta/templates/telemeta_default/home.html
telemeta/templates/telemeta_default/index.html

index 1c198e731500e613d90ce81bdb1f53c358943001..bd2e3f01d5919066edfd1c13cf7fe994d5d618d7 100644 (file)
@@ -77,7 +77,7 @@ a img { border: none; }
 #content h2 {
     color: #6a0307;
     border-bottom: 1px solid #6a0307;
-    width: 75%;
+    width: 90%;
     padding: 0.3em 0.3em 0.3em 0.5em;
 }
 
@@ -682,7 +682,7 @@ table.instruments tbody td {
 
 /* Styles for tabular listings (stolen from trac) */
 table.listing {
-    clear: both;
+    
     border-spacing: 0;
 }
 
index 11f2b2cd4deb242cf170e05ad3b82a2fb0f92697..75e9119cf146b2021c8feb28fa04234ad0500310 100644 (file)
@@ -1,18 +1,16 @@
-{% extends "telemeta/index.html" %}
+{% extends "telemeta/base.html" %}
 {% load telemeta_utils %}
 {% load i18n %}
 
 {% block content %}
-<div class="home-content">
 
 <div class="module-set">
 
 {% block modules %}
 
    <div id="module" class="module">
-   
     <h3>Last changes</h3>
-    <table bgcolor="#FFFFFF">
+    <table class="listing" bgcolor="#FFFFFF" width="400px">
       <tr>
         <th class="highlight">Date</th>
         <th>Type</th>
@@ -21,7 +19,7 @@
         <th>User</th>
       </tr>
     {% for r in revisions %}
-     <tr>
+     <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
         <td>{{ r.revision.time }}</td>
         <td>{{ r.revision.element_type }}</td>
         <td>
    </div>
 
 {% endblock %}
+</div>
 
 <div class="home-description">
 <h3>Playlists</h3>
- <form method="POST" action="">{% csrf_token %}
   {% for playlist in playlists %}
   <h2>{{ playlist.name }} {% if playlist.is_current %}(current){% endif %}</h2>
-    <table class="listing" width="75%">
+    <table class="listing" width="90%">
         <tr>
             <th class="highlight">{% trans "Title" %}</th>
             <th>{% trans "Type" %}</th>
     {% endfor %}
     </table>
    {% endfor %}
- </form>
-
 </div>
+
 {% endblock %}
 
index 1413a7b7e5ff7ef9fba75a4d2242148e5214f369..5b01bce33ba832210993728fa78a1fd933580c5c 100644 (file)
 -->
 
 {% endblock %}
-
 </div>
 
 <div class="home-description">
 {{ page_content|render_flatpage }}
 </div>
+
 </div>
 {% endblock %}