Browse Source

Completes table code considering the order of fields

sValo 8 years ago
parent
commit
62800c0666
2 changed files with 31 additions and 17 deletions
  1. 7 5
      pelicanconf.py
  2. 24 12
      themes/nest/templates/tables.html

+ 7 - 5
pelicanconf.py

@@ -60,10 +60,12 @@ PLUGINS = ['langmenu']
 MD_EXTENSIONS = ['toc']
 
 TALKS = {
-    1: { 'Relat@' : 'ciccio',
-         'Titolo': 'quanto è bello l''ha''ing',
-         'Abstract': 'dio ''ane quanto è bello l''asinello',
-         'Stanza': 'Quella piccola',
-         'Orario': '19:00 - 6:00',
+    u'1': { u'Speaker' : u'ciccio',
+        u'Title': u'quanto è bello l''ha''ing',
+         u'Abstract': u'dio \'ane quanto è bello l''asinello',
+         u'Room': u'Quella piccola',
+         u'Schedule': u'19:00 - 6:00',
+         u'Day':'Venerday',
     }
 }
+

+ 24 - 12
themes/nest/templates/tables.html

@@ -6,36 +6,48 @@
          #
         </th>
         <th>
-          Orario
+           Giorno
         </th>
         <th>
-           Relat
+          Orario
         </th>
         <th>
            Titolo
         </th>
         <th>
-           Abstract
+           Relatore/Relatrice/i
         </th>
         <th>
-           Stanza
+           Abstract
         </th>
         <th>
-          {{ TALKS }}
+           Stanza
         </th>
     </tr>
-    {% for talk_num, talk in TALKS %}
+    {% for talk_num, talk in TALKS.iteritems() %}
     {# Write description of the talk #}
     <tr>
         <td>
-        <b>talk_num:</b>
         {{ talk_num }}
         </td>
-        {% for col, cont in talk %}
-            <td>
-                {{ talk.col }}
-            </td>
-        {% endfor %}
+        <td>
+        {{ talk.Day }}
+        </td>
+        <td>
+        {{ talk.Schedule }}
+        </td>
+        <td>
+        {{ talk.Title }}
+        </td>
+        <td>
+        {{ talk.Speaker }}
+        </td>
+        <td>
+        {{ talk.Abstract }}
+        </td>
+        <td>
+        {{ talk.Room }}
+        </td>
     </tr>
     {% endfor %}
 </table>