Commit 84d7650a by Brandon DeRosier

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
parent c11a9f05
...@@ -111,24 +111,26 @@ textarea { ...@@ -111,24 +111,26 @@ textarea {
<td><a href="${reverse('gitlogs_detail', kwargs={'course_id': unicode(cil.course_id)})}">${cil.course_id | h}</a></td> <td><a href="${reverse('gitlogs_detail', kwargs={'course_id': unicode(cil.course_id)})}">${cil.course_id | h}</a></td>
<td>${cil.git_log}</td> <td>${cil.git_log}</td>
</tr> </tr>
%endfor
## Show the full log if viewing information about a specific course ## Show the full log of the latest import if viewing logs for a specific course
%if course_id is not None: %if course_id is not None:
<tr> <tr>
<td colspan="3"> <td colspan="3">
<pre> <pre>
%if cil is not None:
${cil.import_log | h} ${cil.import_log | h}
%else: </pre>
## Translators: git is a version-control system; see http://git-scm.com/about </td>
${_('No git import logs have been recorded for this course.')} </tr>
%endif %endif
</pre> %endfor
</td>
</tr>
%endif
</tbody> </tbody>
</table> </table>
## 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
</section> </section>
</div> </div>
</section> </section>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment