<%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'/> <%def name="pagination()">

${_('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 %if len(logs): ${pagination()} ## Translators: Git is a version-control system; see http://git-scm.com/about %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}
                          
${pagination()} %else:
%if not course_id: ## If viewing all logs there are no logs available, let the user know. ## Translators: git is a version-control system; see http://git-scm.com/about ${_('No git import logs have been recorded.')} %else: ## If viewing a single course and there are no logs available, let the user know. ## Translators: git is a version-control system; see http://git-scm.com/about ${_('No git import logs have been recorded for this course.')} %endif
%endif