forked from gergely/calendar-social
Display the instance admin on the welcome page
This commit is contained in:
@@ -201,13 +201,16 @@ class CalendarSocialApp(Flask, RoutedMixin):
|
||||
|
||||
user_count = User.query.count()
|
||||
event_count = Event.query.count()
|
||||
admin_user = current_app.instance_admin
|
||||
admin_profile = None if admin_user is None else admin_user.profile
|
||||
|
||||
return render_template('welcome.html',
|
||||
calendar=calendar,
|
||||
user_only=False,
|
||||
login_form=login_form,
|
||||
user_count=user_count,
|
||||
event_count=event_count)
|
||||
event_count=event_count,
|
||||
admin_profile=admin_profile)
|
||||
|
||||
@RoutedMixin.route('/')
|
||||
def hello(self):
|
||||
|
Reference in New Issue
Block a user