<%inherit file="/main.html" /> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from django.utils.timezone import utc as UTC from util.date_utils import get_time_display, DEFAULT_DATE_TIME_FORMAT from django.conf import settings %> <%namespace name='static' file='/static_content.html'/> <%block name="headextra"> <%static:css group='style-course'/>

${_('Sysadmin Dashboard')}


${_('Users')} ${_('Courses')} ${_('Staffing and Enrollment')} ## Translators: refers to http://git-scm.com/docs/git-log ${_('Git Logs')}


## Translators: refers to http://git-scm.com/docs/git-log

${_('Git Logs')}

%if course_id is not None: ## Translators: Git is a version-control system; see http://git-scm.com/about

${_('Recent git load activity for {course_id}').format(course_id=course_id) | h}

%if error_msg:

${_('Error')}:

${error_msg}

%endif %endif ## Translators: Git is a version-control system; see http://git-scm.com/about <% if course_id == None: logs = cilset[:10] else: logs = cilset[:5] cil = None %> % for index, cil in enumerate(logs): <% # Appropriate datetime string for current locale and timezone date = get_time_display(cil.created.replace(tzinfo=UTC), DEFAULT_DATE_TIME_FORMAT, coerce_tz=settings.TIME_ZONE) %> ## Show the full log of the latest import if viewing logs for a specific course %if course_id is not None: %endif %endfor
${_('Date')} ${_('Course ID')}${_('Git Action')}
${date} ${cil.course_id | h} %if course_id is not None: [ + ] %endif ${cil.git_log}
                        ${cil.import_log | h}
                      
## If viewing a single course and there are no logs available, let the user know %if course_id is not None and cil is None: ## Translators: git is a version-control system; see http://git-scm.com/about ${_('No git import logs have been recorded for this course.')} %endif