Projet

Général

Profil

0001-backoffice-add-a-bit-of-text-and-style-to-non-valida.patch

Frédéric Péters, 11 novembre 2015 18:38

Télécharger (1,73 ko)

Voir les différences:

Subject: [PATCH] backoffice: add a bit of text and style to non validated
 files (#8947)

 wcs/forms/common.py                 | 4 +++-
 wcs/qommon/static/css/dc2/admin.css | 9 +++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
wcs/forms/common.py
553 553
        s = s.replace(str('[download]'), str('%sdownload' % form_url))
554 554
        r += s
555 555
        if status is not None and get_request().is_in_backoffice():
556
            if status is False:
557
                r += htmltext(' <span class="validation-status">%s</span>') % _('not validated')
556 558
            r += htmltext('<div class="file-validation">')
557 559
            if status:
558
                r += htmltext(_('<p>%s validated by %s on %s</p>')) % (
560
                r += htmltext('<p class="validation-status">%s</p>') % _('%s validated by %s on %s') % (
559 561
                    status['label'], status['creator'], status['created'])
560 562
                r += htmltext('<ul>')
561 563
                for meta in status['metadata']:
wcs/qommon/static/css/dc2/admin.css
1149 1149
#statistics .criterias {
1150 1150
	display: none;
1151 1151
}
1152

  
1153
.invalid .validation-status {
1154
	color: red;
1155
	padding-left: 1ex;
1156
}
1157

  
1158
div.file-validation {
1159
	margin-top: 1ex;
1160
}
1152
-