diff --git a/calsocial/__init__.py b/calsocial/__init__.py index 40e325e..5020734 100644 --- a/calsocial/__init__.py +++ b/calsocial/__init__.py @@ -170,7 +170,7 @@ class CalendarSocialApp(Flask): calendar = GregorianCalendar(timestamp.timestamp()) - return render_template('index.html', calendar=calendar) + return render_template('index.html', calendar=calendar, user_only=True) @staticmethod @route('/register', methods=['POST', 'GET']) diff --git a/calsocial/templates/month-view.html b/calsocial/templates/month-view.html index ca5d75d..52e5826 100644 --- a/calsocial/templates/month-view.html +++ b/calsocial/templates/month-view.html @@ -120,7 +120,7 @@ {%- endif %} {{ day.day }} - {% for event in calendar.day_events(day, user=current_user) %} + {% for event in calendar.day_events(day, user=current_user if user_only else none) %} {{ event.start_time_for_user(current_user).strftime('%H:%M') }}–{{ event.end_time_for_user(current_user).strftime('%H:%M') }} {{ event.title }}