Fix "double hr" display above file errors
authorKarl O. Pinc <kop@karlpinc.com>
Mon, 18 Jan 2021 22:53:33 +0000 (16:53 -0600)
committerKarl O. Pinc <kop@karlpinc.com>
Mon, 18 Jan 2021 22:53:33 +0000 (16:53 -0600)
src/pgwui_bulk_upload/templates/bulk_upload.mak

index d85a30c8251217b25d315dd24124702d3c95f3c6..12f93362f76e2f9775039ad6829b97f0835e470e 100644 (file)
@@ -66,7 +66,9 @@
 </%block>
 
 <%def name="file_errors(errors, filepath, firsterr)">
-  % if filepath is not None:
+  % if filepath is None:
+      <hr class="errorsep"></hr>
+  % else:
       <%
       file_info = statmap[filepath]
       file_lines = file_info[0]
@@ -85,7 +87,6 @@
 <%block name="error_report">
   % if e_cnt:
       <p><em class="error">${e_cnt} errors</em> found.</p>
-      <hr class="errorsep"></hr>
       <%
       # Either every error has a filepath or none do
       firsterr = True