{% extends 'base.html' %} {% block pagecontent %}
{% raw flash_messages %}
{% if current_user['user_role'] == 'superuser' %}

Site settings

{% module xsrf_form_html() %}

Email server and sign-ins

{% module xsrf_form_html() %}
Are existing users allowed to sign in? {% if siteinfo['logins_allowed'] is True %}
{% else %}
{% end %}
Are new users allowed to sign up? {% if siteinfo['signups_allowed'] is True %}
{% else %}
{% end %}

User accounts

{% module xsrf_form_html() %} {% for item in userlist %}
User ID: {{ item['user_id'] }}
User is active {{ item['is_active'] }}
Created {{ item['created_on'] }}Z
{% if item['user_id'] not in (2,3) %}
Must be one of superuser, staff, authenticated, locked.
{% else %}
Email address {{ item['email'] }}
User role {{ item['user_role'] }}
{% end %}
{% if item['user_id'] not in (2,3) %} {% end %}
{% end %}
{% end %}

All recent datasets

As superuser or staff, you can edit metadata (owner, visibility, name, description, citation) for these datasets.

{% module xsrf_form_html() %}
Set ID Objects Query Products Last updated
{% end %} {% block pagejs_modules %} {% end %} {% block pagejs %} $(document).ready(function() { // format all the moments $('.moment-format').each(function (index, elem) { // get the text we need var mt = moment($(this).text()).fromNow(); $(this).html($(this).text() + ' (' + mt + ')'); }); // get the most recent 1000 datasets on the server lcc_ui.get_recent_datasets(1000, null, false); // UI action setup lcc_ui.action_setup(); // admin action setup lcc_admin.action_setup(); }); {% end %}