From 84d7650aa13b0a01ba5af760d37b009278b10432 Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Sat, 10 Jan 2015 10:35:03 -0500 Subject: [PATCH 1/2] Fix detailed gitlog - Make the correct (latest) gitlog show up instead of the second - Show gitlogs for each entry when viewing detailed information for single course --- lms/templates/sysadmin_dashboard_gitlogs.html | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/lms/templates/sysadmin_dashboard_gitlogs.html b/lms/templates/sysadmin_dashboard_gitlogs.html index 9d1e224209..8a214902a0 100644 --- a/lms/templates/sysadmin_dashboard_gitlogs.html +++ b/lms/templates/sysadmin_dashboard_gitlogs.html @@ -111,24 +111,26 @@ textarea { ${cil.course_id | h} ${cil.git_log} - %endfor - ## Show the full log if viewing information about a specific course - %if course_id is not None: - - -
-                    %if cil is not None:
+
+              ## Show the full log of the latest import if viewing logs for a specific course
+              %if course_id is not None:
+                  
+                    
+                      
                         ${cil.import_log | h}
-                    %else:
-                        ## 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 +
+ + + %endif + %endfor + + ## 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 From a6dc7061cdb5fc15dec4d304340ee707c29f8f6d Mon Sep 17 00:00:00 2001 From: Brandon DeRosier Date: Thu, 15 Jan 2015 02:21:33 -0500 Subject: [PATCH 2/2] Collapsible import logs - Increase maximum focused logs to 5 - Import logs render for all entries in the focused gitlog view - `+`/`-` toggle buttons for collapsible gitlogs --- lms/templates/sysadmin_dashboard_gitlogs.html | 45 +++++++++++++++---- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/lms/templates/sysadmin_dashboard_gitlogs.html b/lms/templates/sysadmin_dashboard_gitlogs.html index 8a214902a0..7f8608ac28 100644 --- a/lms/templates/sysadmin_dashboard_gitlogs.html +++ b/lms/templates/sysadmin_dashboard_gitlogs.html @@ -12,6 +12,23 @@ <%static:css group='style-course'/> +