Commit d2e0847f by Calen Pennington

Merge pull request #644 from MITx/feature/victor/prettier-errors

don't show empty list if there is no error data
parents 0f05bb9e 2b9d8c9f
...@@ -64,17 +64,17 @@ table.stat_table td { ...@@ -64,17 +64,17 @@ table.stat_table td {
%if instructor_access: %if instructor_access:
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
<p> <p>
<input type="submit" name="action" value="List course staff members"> <input type="submit" name="action" value="List course staff members">
<p> <p>
<input type="text" name="staffuser"> <input type="submit" name="action" value="Remove course staff"> <input type="text" name="staffuser"> <input type="submit" name="action" value="Remove course staff">
<input type="submit" name="action" value="Add course staff"> <input type="submit" name="action" value="Add course staff">
<hr width="40%" style="align:left"> <hr width="40%" style="align:left">
%endif %endif
%if settings.MITX_FEATURES['ENABLE_MANUAL_GIT_RELOAD'] and admin_access: %if settings.MITX_FEATURES['ENABLE_MANUAL_GIT_RELOAD'] and admin_access:
<p> <p>
<input type="submit" name="action" value="Reload course from XML files"> <input type="submit" name="action" value="Reload course from XML files">
<input type="submit" name="action" value="GIT pull and Reload course"> <input type="submit" name="action" value="GIT pull and Reload course">
%endif %endif
</form> </form>
...@@ -101,7 +101,7 @@ table.stat_table td { ...@@ -101,7 +101,7 @@ table.stat_table td {
</p> </p>
%if msg: %if msg:
<p>${msg}</p> <p>${msg}</p>
%endif %endif
% if course_errors is not UNDEFINED: % if course_errors is not UNDEFINED:
...@@ -110,13 +110,17 @@ table.stat_table td { ...@@ -110,13 +110,17 @@ table.stat_table td {
<ul> <ul>
% for (summary, err) in course_errors: % for (summary, err) in course_errors:
<li>${summary | h} <li>${summary | h}
% if err:
<ul><li><pre>${err | h}</pre></li></ul> <ul><li><pre>${err | h}</pre></li></ul>
% else:
<p>&nbsp;</p>
% endif
</li> </li>
% endfor % endfor
</ul> </ul>
</div> </div>
% endif % 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