def homepage(): ''' Render and return the main homepage HTML. This HTML will then be populated by javascript and EJS. ''' cores = get_details() return render_template('homepage.html', cores=cores)
def details(): ''' Get details about the current state of all Solr instances. Returns the output in JSON form. ''' retval = get_details() return jsonify({'data': retval, 'solr_response_headers': RESPONSEHEADERS, 'commands': COMMANDS, 'js_refresh': JS_REFRESH, 'debug': str(DEBUG).lower(), 'hide_status_msg_success': HIDE_STATUS_MSG_SUCCESS, 'hide_status_msg_error': HIDE_STATUS_MSG_ERROR})