def admin_dashboard(): current_user = get_current_user() users = User.query.filter_by(is_registered=True).order_by(User.name).all() messages = get_all_messages() event_types = ['home', 'register', 'feed', 'profile', 'send_message', 'about', 'logout'] daily_events = {t: get_daily_events(t) for t in event_types} return render_template("admin_dashboard.html", users=users, current_user=current_user, messages=messages, daily_events=daily_events)
def admin_messages(): messages = get_all_messages() return render_template("admin_messages.html", messages=messages)