Skip to content

Commit 0976fc9

Browse files
authored
Merge pull request #35 from pilot/task-33
Schedule section updates, #33
2 parents cfdbf29 + 02bf218 commit 0976fc9

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

src/Event/EventBundle/Resources/public/css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,3 +91,11 @@ form input {
9191
.speech-speaker {
9292
font-size: small;
9393
}
94+
95+
.table tbody > tr > td.no-schedule {
96+
padding-left: 0;
97+
border-top: none;
98+
font-size: 21px;
99+
font-weight: 200;
100+
line-height: 1.4;
101+
}

src/Event/EventBundle/Resources/translations/messages.en.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ security:
44
password: Password
55
remember_me: Remember me
66
submit: Login
7+
8+
index:
9+
schedule:
10+
no_shedules: "We are making awesome programm for you, we'll publish as soon as ready."

src/Event/EventBundle/Resources/views/Component/_schedule.html.twig

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<table class="table" id="program">
77
<tbody>
88
{% set date = null %}
9-
{% for entry in schedule %}
9+
{% for entry in schedule if (entry.title or entry.speech_title) %}
1010
{% if date != entry.startDate|date('d') %}
1111
<tr>
1212
<td colspan="2"><strong>{{ entry.startDate|date('l, F dS') }}</strong></td>
@@ -31,6 +31,10 @@
3131
</td>
3232
</tr>
3333
{% set date = entry.startDate|date('d') %}
34+
{% else %}
35+
<tr>
36+
<td colspan="2" class="no-schedule">{{ 'index.schedule.no_shedules'|trans }}</td>
37+
</tr>
3438
{% endfor %}
3539
</tbody>
3640
</table>

0 commit comments

Comments
 (0)