def shell_logs(): page = int(request.args.get('page', 1)) if page <= 0: page = 1 provider = Provider() shell = provider.shell() shell_logs = shell.get_logs(page=page, per_page=20) return render_template('config/system/shell_logs.html', shell_logs=shell_logs)
def shell_logs(): if not current_user.admin: flash('Access Denied', 'error') return redirect(url_for('home.index')) page = int(request.args.get('page', 1)) if page <= 0: page = 1 provider = Provider() shell = provider.shell() shell_logs = shell.get_logs(page=page, per_page=20) return render_template('admin/shell/logs.html', shell_logs=shell_logs)