what's this do
authorSarah Conway Schnurr <sarah.conway@crunchydata.com>
Sat, 17 Aug 2019 17:59:31 +0000 (10:59 -0700)
committerSarah Conway Schnurr <sarah.conway@crunchydata.com>
Sat, 17 Aug 2019 17:59:31 +0000 (10:59 -0700)
templates/confreg/schedule.html
templates/confreg/schedule_listing.html [new file with mode: 0644]

index 11b47e0bb1debf148c5f71a89e666949604abd75..55622b81fa69e07665567d81c66a47914920dd27 100644 (file)
@@ -121,11 +121,7 @@ Speaker.name: {{speaker.name}}
                     {%if session.cross_schedule%}
                       {%for i in [('1'),('2'),('3')] %}
                         <div class="sessblock track{{session.track.id}}"></div>
-                        {%if session.cross_schedule.id%}
-                          <a href="session/{{session.id}}-{{session.title|slugify}}/">{{session.timeslot}}<br/><b>{{session.title}}</b><br/></a>
-                        {%else%}
-                           {{session.timeslot}} - <b>{{session.title}}</b>
-                        {%endif%}
+                        <a href="session/{{session.id}}-{{session.title|slugify}}/">{{session.timeslot}}<br/><b>{{session.title}}</b><br/></a>
                         {%for speaker in session.speakers %}{%if loop.first%}{%else%}, {%endif%}<i><a href="speaker/{{speaker.id}}-{{speaker.name|slugify}}/">{{speaker.name}}</a></i>{%endfor%}
                       {%endfor%}
                       {%else%}
diff --git a/templates/confreg/schedule_listing.html b/templates/confreg/schedule_listing.html
new file mode 100644 (file)
index 0000000..48be447
--- /dev/null
@@ -0,0 +1,50 @@
+{%extends "base.html" %}
+{%block title%}Conference Schedule - {{conference}}{%endblock%}
+{%block content%}
+
+{% for day in days %}
+   <section class="wrapper special">
+      <div class="container">
+         <div class="row">
+
+         <h2>{{day.day|datetimeformat("%A, %B %d")}}</h2>
+         {%for room in day.rooms|sort(attribute='leftpos')%}
+            <div class="col-sm-3">
+               <section class="box">
+                  <h4 style="text-align:center;"><div class="sessblock roomheader">{{room.name}}</div></h4>
+                  {%for session in day.sessions%}
+                  {%if session.leftpos == room.leftpos or session.widthpos == 1198 %}
+                    {%if session.cross_schedule%}
+                      {%for i in [('1'),('2'),('3')] %}
+                        <div class="sessblock track{{session.track.id}}"></div>
+                        {%if session.id%}
+                          <a href="session/{{session.id}}-{{session.title|slugify}}/">{{session.timeslot}}<br/><b>{{session.title}}</b><br/></a>
+                        {%else%}
+                           {{session.timeslot}} - <b>{{session.title}}</b>
+                        {%endif%}
+                        {%for speaker in session.speakers %}{%if loop.first%}{%else%}, {%endif%}<i><a href="speaker/{{speaker.id}}-{{speaker.name|slugify}}/">{{speaker.name}}</a></i>{%endfor%}
+                      {%endfor%}
+                      {%else%}
+                        <div class="sessblock track{{session.track.id}}"></div>
+                        {%if session.id%}
+                          <a href="session/{{session.id}}-{{session.title|slugify}}/">{{session.timeslot}}<br/><b>{{session.title}}</b><br/></a>
+                        {%else%}
+                           {{session.timeslot}} - <b>{{session.title}}</b>
+                        {%endif%}
+                        {%for speaker in session.speakers %}{%if loop.first%}{%else%}, {%endif%}<i><a href="speaker/{{speaker.id}}-{{speaker.name|slugify}}/">{{speaker.name}}</a></i>{%endfor%}
+                    {%endif%}
+                  {%endif%}
+                  {%endfor%}
+
+               </section>
+             </div>
+         {%endfor%}
+      </div>
+      </div>
+   </section>
+{%endfor%}
+
+</div>
+</section>
+
+{%endblock%}