% endfor
</%block>
-<%def name="file_errors(errors, filepath)">
+<%def name="file_errors(errors, filepath, firsterr)">
% if filepath is not None:
<%
file_info = statmap[filepath]
%>
% endif
<%
- self.error_items(errors, sepclass='lightsep')
+ self.error_items(errors, sepclass='lightsep', caution=(not firsterr))
%>
</%def>
<hr class="errorsep"></hr>
<%
# Either every error has a filepath or none do
+ firsterr = True
last_filepath = None
f_errors = []
for error in errors:
if isinstance(error, core_ex.UploadError):
if error.filepath != last_filepath:
if last_filepath:
- self.file_errors(f_errors, last_filepath)
+ self.file_errors(f_errors, last_filepath, firsterr)
+ firsterr = False
last_filepath = error.filepath
f_errors = []
f_errors.append(error)
- self.file_errors(f_errors, last_filepath)
+ self.file_errors(f_errors, last_filepath, firsterr)
%>
% endif
</%block>