Fixed event listing
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
OR (event.startDate <= this day AND evend.endDate >= this day)
|
||||
#}
|
||||
<td id="event-calendar-{{ i }}"{% if eventList[i].events|length > 0 %} class="program" rel="{{ path('KekRozsakFrontBundle_eventAjaxList', {date: eventList[i].date|date('Y-m-d'), _format: 'html'}) }}"{% endif %}>
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventList', { date: eventList[i].date|date('Y-m-d'), _format: 'html'}) }}">{{ eventList[i].date|date('d') }}</a>
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventList', { date: eventList[i].date|date('Y-m-d')}) }}">{{ eventList[i].date|date('d') }}</a>
|
||||
</td>
|
||||
{% if cur is divisibleby(7) %}
|
||||
</tr>
|
||||
@@ -56,7 +56,7 @@ OR (event.startDate <= this day AND evend.endDate >= this day)
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="">További események</a>
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventList') }}">További események</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@@ -213,7 +213,7 @@
|
||||
$('#news-close-button').click(function() {
|
||||
$('#hirek').html('');
|
||||
$('#hirek').hide();
|
||||
$('#content-outline').css('width', '955px');
|
||||
$('#content-outline').css('width', '960px');
|
||||
$('#news-button').show();
|
||||
resizeBoxes();
|
||||
});
|
||||
|
@@ -3,7 +3,7 @@
|
||||
{% extends 'KekRozsakFrontBundle:Default:main_template.html.twig' %}
|
||||
{% block title %} - Események - {{ day|date('Y-m-d') }}{% endblock %}
|
||||
{% block content %}
|
||||
<h3>Események - {{ day|date('Y-m-d') }}</h3>
|
||||
<h3>Események{% if day is not null %} - {{ day|date('Y-m-d') }}{% endif %}</h3>
|
||||
{% if events %}
|
||||
<ul>
|
||||
{% for event in events %}
|
||||
@@ -11,6 +11,10 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
{% if day is not null %}
|
||||
<p>Erre a napra nincsenek kiírva események.</p>
|
||||
{% else %}
|
||||
<p>Nincsenek kiírva későbbi események.</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
@@ -15,7 +15,7 @@
|
||||
<li>{{ attendee|userdataspan }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if not event.isAttending(app.user) %}
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventJoin', { eventDate: event.startDate|date('Y-m-d'), eventSlug: event.slug }) }}">Megyek</a>
|
||||
{% if not event.isAttending(app.user) and not event.isPast %}
|
||||
<a href="{{ path('KekRozsakFrontBundle_eventJoin', { startDate: event.startDate|date('Y-m-d'), eventSlug: event.slug }) }}">Megyek</a>
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user