{% extends "/base.html" %} {% set active_page = "profile" %} {% set active_link = "admin" %} {% import "account/_helpers.html" as helper %} {% import "projects/_helpers.html" as project_helper %} {% from "account/_helpers.html" import render_account_local_nav %} {% from "projects/_helpers.html" import render_project_admin_featured, broken_image %} {% block content %} {{ helper.render_account_local_nav(current_user, active_link) }}

{{ _('Dashboard last 7 days') }}

{% if wait == False %}

Active users

Active anonymous users

New projects: {{new_projects_last_week|count}}

Updated projects: {{update_projects_last_week|count}}

New tasks

New Answers

New Users

Returning Users

{{ _('Recent activity') }}

{% if update_feed %}
    {% for u in update_feed[0:30] %}
  • {% if u.action_updated == 'Project' %}

    {{u.name }} {{ _('new project created') }} {{u.updated | pretty_date }}

    {% endif %} {% if u.action_updated == 'Blog' %}

    {{u.name}} {{ _('has published a blog post') }} {{u.updated | pretty_date }}

    {% endif %} {% if u.action_updated == 'Task' %}

    {{u.name}} {{ _('has added new tasks') }} {{u.updated | pretty_date}}

    {% endif %} {% if u.action_updated == 'TaskCompleted' %}

    {{u.name}} {{ _('has completed a task') }} {{u.updated | pretty_date}}

    {% endif %} {% if u.action_updated == 'UserContribution' %}

    {{ helper.render_avatar(u, upload_method, class='img-circle', width='30px')}} {{u.fullname}} {{ _('has contributed to') }} {{u.project_name | truncate(10)}} {{u.updated | pretty_date}}

    {% endif %} {% if u.action_updated == 'User' %} {{ helper.render_avatar(u, upload_method, class='img-circle', width='30px')}}

    {{u.fullname}} {{ _('has joined') }} {{u.updated | pretty_date}}

    {% endif %}
  • {% endfor %}
{% elif accounts %}
    {% for account in accounts %}
  • {{ helper.render_avatar(account, upload_method, class='img-circle', width='30px') }}

    {{account['fullname']}}
    {{ _('has joined') }} {{account.registered_ago}} and has contributed {{ account.task_runs }} tasks

  • {% endfor %}
{% endif %}
{% else %} {% endif %} {{ broken_image() }}
{% endblock %}