From 85326c707906151a25fadde5b2e1c88234ca74e6 Mon Sep 17 00:00:00 2001 From: pavel Date: Fri, 2 Jan 2015 08:50:35 +0000 Subject: [PATCH] EXPO-11 complete (my calenadar) --- .../includes/accounts/calendar_table.html | 21 ++++++++++++-- templates/client/static_client/css/main.css | 21 ++++++++++++++ .../js/_modules/page.profile.calendar.js | 28 +++++++++++++++++-- .../_modules/page.profile.calendar.min.js | 2 +- 4 files changed, 65 insertions(+), 7 deletions(-) diff --git a/templates/client/includes/accounts/calendar_table.html b/templates/client/includes/accounts/calendar_table.html index 5ca68211..fab0687d 100644 --- a/templates/client/includes/accounts/calendar_table.html +++ b/templates/client/includes/accounts/calendar_table.html @@ -51,7 +51,7 @@ {% else %} {% if day_colspan|get_item:day|get_item:'counter' %} {# здесь ячейка с днями без событий #} - +
{% trans "Нет отмеченых событий" %}
@@ -64,7 +64,17 @@ {% endfor %} + + {% for day in days %} + {% ifnotequal day current_day %} + + {% else %} + + {% endifnotequal %} + {% endfor %} + + {% for event in events %} {% for day in days %} @@ -73,7 +83,7 @@ {% if day.month == event.data_begin.month %} {% if day.day == event.data_begin.day %} -
+

{{ event.name|safe }}

@@ -151,7 +161,9 @@
 
{% block scripts %} - + + +