Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 62e0431

Browse files
authored
Merge pull request #127 from rgaiacs/fix-syllabus
Fix layout of syllabus table
2 parents 0bbff2b + 3a09799 commit 62e0431

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: _includes/syllabus.html

+7-7
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ <h2 id="schedule">Schedule</h2>
1414

1515
<table class="table table-striped">
1616
<tr>
17-
<td class="col-md-1"></td>
18-
<td class="col-md-1"></td>
17+
{% if multiday %}<td class="col-md-1"></td>{% endif %}
18+
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}"></td>
1919
<td class="col-md-3"><a href="{{ page.root }}/setup">Setup</a></td>
2020
<td class="col-md-7">Dowload files used on the lesson.</td>
2121
</tr>
@@ -26,8 +26,8 @@ <h2 id="schedule">Schedule</h2>
2626
{% assign hours = current | divided_by: 60 %}
2727
{% assign minutes = current | modulo: 60 %}
2828
<tr>
29-
{% if multiday %}<td></td>{% endif %}
30-
<td class="col-md-1">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
29+
{% if multiday %}<td class="col-md-1"></td>{% endif %}
30+
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
3131
<td class="col-md-3">Finish</td>
3232
<td class="col-md-7"></td>
3333
</tr>
@@ -38,7 +38,7 @@ <h2 id="schedule">Schedule</h2>
3838
{% assign minutes = current | modulo: 60 %}
3939
<tr>
4040
{% if multiday %}<td class="col-md-1">{% if episode.start %}Day {{ day }}{% endif %}</td>{% endif %}
41-
<td class="col-md-1">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
41+
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
4242
<td class="col-md-3">
4343
<a href="{{ page.root }}{{ episode.url }}">{{ episode.title }}</a>
4444
</td>
@@ -62,8 +62,8 @@ <h2 id="schedule">Schedule</h2>
6262
{% assign hours = current | divided_by: 60 %}
6363
{% assign minutes = current | modulo: 60 %}
6464
<tr>
65-
{% if multiday %}<td></td>{% endif %}
66-
<td class="col-md-1">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
65+
{% if multiday %}<td class="col-md-1"></td>{% endif %}
66+
<td class="{% if multiday %}col-md-1{% else %}col-md-2{% endif %}">{% if hours < 10 %}0{% endif %}{{ hours }}:{% if minutes < 10 %}0{% endif %}{{ minutes }}</td>
6767
<td class="col-md-3">Finish</td>
6868
<td class="col-md-7"></td>
6969
</tr>

0 commit comments

Comments
 (0)