Changeset - ac71aa170b5b
[Not reviewed]
0 2 0
Tobias - 5 years ago 2018-12-29 01:38:16
tobias@localhost.localdomain
Fix overly verbose slot names
2 files changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templates/symposion/schedule/schedule_conference.html
Show inline comments
...
 
@@ -21,24 +21,24 @@
 

	
 
  <nav class="mb-4">
 
    <div class="nav schedule-nav" id="schedule-nav" role="tablist">
 
      Monday
 
      Monday miniconfs
 
      {% for section in sections %}
 
      {% if "Miniconf" in section.schedule.section.name %}
 
      {% for timetable in section.days %}
 
      {% if timetable.day.date|date:"Y-m-d" == "2019-01-21" %}
 
      {% include "symposion/schedule/_schedule_nav_link.html" with label=section.schedule.section.name %}
 
      {% include "symposion/schedule/_schedule_nav_link.html" with label=section.schedule.section.name|cut:" Miniconf" %}
 
      {% endif %}
 
      {% endfor %}
 
      {% endif %}
 
      {% endfor %}
 
      <br />
 

	
 
      Tuesday
 
      Tuesday miniconfs
 
      {% for section in sections %}
 
      {% if "Miniconf" in section.schedule.section.name %}
 
      {% for timetable in section.days %}
 
      {% if timetable.day.date|date:"Y-m-d" == "2019-01-22" %}
 
      {% include "symposion/schedule/_schedule_nav_link.html" with label=section.schedule.section.name %}
 
      {% include "symposion/schedule/_schedule_nav_link.html" with label=section.schedule.section.name|cut:" Miniconf" %}
 
      {% endif %}
 
      {% endfor %}
 
      {% endif %}
vendor/symposion/schedule/models.py
Show inline comments
...
 
@@ -173,7 +173,7 @@ class Slot(models.Model):
 

	
 
    def save(self, *args, **kwargs):
 
        roomlist = ' '.join(map(str, self.rooms))
 
        self.name = "%s %s (%s - %s) %s" % (self.day, self.kind, self.start, self.end, roomlist)
 
        self.name = "%s %s (%s - %s) %s" % (self.day.date, self.kind.label, self.start, self.end, roomlist)
 
        self.content_override_html = parse(self.content_override)
 
        super(Slot, self).save(*args, **kwargs)
 

	
0 comments (0 inline, 0 general)