Projet

Général

Profil

0001-forms-never-insert-empty-li-div-in-journal-9901.patch

Frédéric Péters, 08 février 2016 09:06

Télécharger (1,46 ko)

Voir les différences:

Subject: [PATCH] forms: never insert empty <li><div> in journal (#9901)

 wcs/forms/common.py | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
wcs/forms/common.py
285 285
                    except KeyError:
286 286
                        pass
287 287

  
288
            r += htmltext('<li class="%s">' % klass)
289
            r += htmltext('<div>')
290

  
291 288
            status_block = TemplateIO(html=True)
292 289
            if evo.status:
293 290
                status_block += htmltext('<div class="evolution-metadata">')
......
320 317
                parts += t
321 318

  
322 319
            parts_value = parts.getvalue()
323
            if parts_value or evo.status != previous_status:
320

  
321
            if not (parts_value or evo.status != previous_status):
322
                continue
323

  
324
            if evo.status:
324 325
                previous_status = evo.status
325
                r += status_block.getvalue()
326

  
327
            r += htmltext('<li class="%s">' % klass)
328
            r += htmltext('<div>')
329
            r += status_block.getvalue()
326 330

  
327 331
            if parts_value:
328 332
                r += htmltext('<div class="msg">')
329
-