Fixed #25348 -- Removed unused gif/png images from contrib.admin.
| @@ -371,7 +371,7 @@ table thead th.sorted .sortoptions a { | |||||||
|     width: 14px; |     width: 14px; | ||||||
|     height: 14px; |     height: 14px; | ||||||
|     display: inline-block; |     display: inline-block; | ||||||
|     background: url(../img/svg/sorting-icons.svg) 0 0 no-repeat; |     background: url(../img/sorting-icons.svg) 0 0 no-repeat; | ||||||
|     background-size: 14px auto; |     background-size: 14px auto; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -571,18 +571,18 @@ ul.messagelist li { | |||||||
|     font-size: 13px; |     font-size: 13px; | ||||||
|     padding: 10px 10px 10px 65px; |     padding: 10px 10px 10px 65px; | ||||||
|     margin: 0 0 10px 0; |     margin: 0 0 10px 0; | ||||||
|     background: #dfd url(../img/svg/icon-yes.svg) 40px 12px no-repeat; |     background: #dfd url(../img/icon-yes.svg) 40px 12px no-repeat; | ||||||
|     background-size: 16px auto; |     background-size: 16px auto; | ||||||
|     color: #333; |     color: #333; | ||||||
| } | } | ||||||
|  |  | ||||||
| ul.messagelist li.warning { | ul.messagelist li.warning { | ||||||
|     background: #ffc url(../img/svg/icon-alert.svg) 40px 14px no-repeat; |     background: #ffc url(../img/icon-alert.svg) 40px 14px no-repeat; | ||||||
|     background-size: 14px auto; |     background-size: 14px auto; | ||||||
| } | } | ||||||
|  |  | ||||||
| ul.messagelist li.error { | ul.messagelist li.error { | ||||||
|     background: #ffefef url(../img/svg/icon-no.svg) 40px 12px no-repeat; |     background: #ffefef url(../img/icon-no.svg) 40px 12px no-repeat; | ||||||
|     background-size: 16px auto; |     background-size: 16px auto; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -656,7 +656,7 @@ div.system-message p.system-message-title { | |||||||
|     padding: 4px 5px 4px 25px; |     padding: 4px 5px 4px 25px; | ||||||
|     margin: 0; |     margin: 0; | ||||||
|     color: #c11; |     color: #c11; | ||||||
|     background: #ffefef url(../img/svg/icon-no.svg) 5px 5px no-repeat; |     background: #ffefef url(../img/icon-no.svg) 5px 5px no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .description { | .description { | ||||||
| @@ -687,17 +687,17 @@ div.breadcrumbs a:hover { | |||||||
|  |  | ||||||
| .addlink { | .addlink { | ||||||
|     padding-left: 16px; |     padding-left: 16px; | ||||||
|     background: url(../img/svg/icon-addlink.svg) 0 1px no-repeat; |     background: url(../img/icon-addlink.svg) 0 1px no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .changelink, .inlinechangelink { | .changelink, .inlinechangelink { | ||||||
|     padding-left: 16px; |     padding-left: 16px; | ||||||
|     background: url(../img/svg/icon-changelink.svg) 0 1px no-repeat; |     background: url(../img/icon-changelink.svg) 0 1px no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .deletelink { | .deletelink { | ||||||
|     padding-left: 16px; |     padding-left: 16px; | ||||||
|     background: url(../img/svg/icon-deletelink.svg) 0 1px no-repeat; |     background: url(../img/icon-deletelink.svg) 0 1px no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| a.deletelink:link, a.deletelink:visited { | a.deletelink:link, a.deletelink:visited { | ||||||
| @@ -755,12 +755,12 @@ a.deletelink:hover { | |||||||
| } | } | ||||||
|  |  | ||||||
| .object-tools a.viewsitelink, .object-tools a.golink { | .object-tools a.viewsitelink, .object-tools a.golink { | ||||||
|     background: #999 url(../img/svg/tooltag-arrowright.svg) 93% center no-repeat; |     background: #999 url(../img/tooltag-arrowright.svg) 93% center no-repeat; | ||||||
|     padding-right: 26px; |     padding-right: 26px; | ||||||
| } | } | ||||||
|  |  | ||||||
| .object-tools a.addlink { | .object-tools a.addlink { | ||||||
|     background: #999 url(../img/svg/tooltag-add.svg) 93% center no-repeat; |     background: #999 url(../img/tooltag-add.svg) 93% center no-repeat; | ||||||
|     padding-right: 26px; |     padding-right: 26px; | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -463,7 +463,7 @@ body.popup .submit-row { | |||||||
| .inline-group ul.tools a.add, | .inline-group ul.tools a.add, | ||||||
| .inline-group div.add-row a, | .inline-group div.add-row a, | ||||||
| .inline-group .tabular tr.add-row td a { | .inline-group .tabular tr.add-row td a { | ||||||
|     background: url(../img/svg/icon-addlink.svg) 0 1px no-repeat; |     background: url(../img/icon-addlink.svg) 0 1px no-repeat; | ||||||
|     padding-left: 16px; |     padding-left: 16px; | ||||||
|     font-size: 12px; |     font-size: 12px; | ||||||
|     outline: 0; /* Remove dotted border around link */ |     outline: 0; /* Remove dotted border around link */ | ||||||
| @@ -486,13 +486,13 @@ body.popup .submit-row { | |||||||
| .add-another { | .add-another { | ||||||
|     width: 16px; |     width: 16px; | ||||||
|     height: 16px; |     height: 16px; | ||||||
|     background-image: url(../img/svg/icon-addlink.svg); |     background-image: url(../img/icon-addlink.svg); | ||||||
| } | } | ||||||
|  |  | ||||||
| .related-lookup { | .related-lookup { | ||||||
|     width: 16px; |     width: 16px; | ||||||
|     height: 16px; |     height: 16px; | ||||||
|     background-image: url(../img/svg/search.svg); |     background-image: url(../img/search.svg); | ||||||
| } | } | ||||||
|  |  | ||||||
| form .related-widget-wrapper ul { | form .related-widget-wrapper ul { | ||||||
|   | |||||||
| @@ -93,7 +93,7 @@ | |||||||
| } | } | ||||||
|  |  | ||||||
| .selector-add { | .selector-add { | ||||||
|     background: url(../img/svg/selector-icons.svg) 0 -96px no-repeat; |     background: url(../img/selector-icons.svg) 0 -96px no-repeat; | ||||||
|     cursor: default; |     cursor: default; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -103,7 +103,7 @@ | |||||||
| } | } | ||||||
|  |  | ||||||
| .selector-remove { | .selector-remove { | ||||||
|     background: url(../img/svg/selector-icons.svg) 0 -64px no-repeat; |     background: url(../img/selector-icons.svg) 0 -64px no-repeat; | ||||||
|     cursor: default; |     cursor: default; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -136,7 +136,7 @@ a.active.selector-chooseall:hover, a.active.selector-clearall:hover { | |||||||
| } | } | ||||||
|  |  | ||||||
| a.selector-chooseall { | a.selector-chooseall { | ||||||
|     background: url(../img/svg/selector-icons.svg) right -160px no-repeat; |     background: url(../img/selector-icons.svg) right -160px no-repeat; | ||||||
|     cursor: default; |     cursor: default; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -146,7 +146,7 @@ a.active.selector-chooseall { | |||||||
| } | } | ||||||
|  |  | ||||||
| a.selector-clearall { | a.selector-clearall { | ||||||
|     background: url(../img/svg/selector-icons.svg) 0 -128px no-repeat; |     background: url(../img/selector-icons.svg) 0 -128px no-repeat; | ||||||
|     cursor: default; |     cursor: default; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -197,7 +197,7 @@ a.active.selector-clearall { | |||||||
| } | } | ||||||
|  |  | ||||||
| .stacked .selector-add { | .stacked .selector-add { | ||||||
|     background: url(../img/svg/selector-icons.svg) 0 0 no-repeat; |     background: url(../img/selector-icons.svg) 0 0 no-repeat; | ||||||
|     cursor: default; |     cursor: default; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -207,7 +207,7 @@ a.active.selector-clearall { | |||||||
| } | } | ||||||
|  |  | ||||||
| .stacked .selector-remove { | .stacked .selector-remove { | ||||||
|     background: url(../img/svg/selector-icons.svg) 0 -32px no-repeat; |     background: url(../img/selector-icons.svg) 0 -32px no-repeat; | ||||||
|     cursor: default; |     cursor: default; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -217,7 +217,7 @@ a.active.selector-clearall { | |||||||
| } | } | ||||||
|  |  | ||||||
| .selector .help-icon { | .selector .help-icon { | ||||||
|     background: url(../img/svg/icon-unknown.svg) 0 0 no-repeat; |     background: url(../img/icon-unknown.svg) 0 0 no-repeat; | ||||||
|     display: inline-block; |     display: inline-block; | ||||||
|     vertical-align: middle; |     vertical-align: middle; | ||||||
|     margin: -2px 0 0 2px; |     margin: -2px 0 0 2px; | ||||||
| @@ -226,11 +226,11 @@ a.active.selector-clearall { | |||||||
| } | } | ||||||
|  |  | ||||||
| .selector .selector-chosen .help-icon { | .selector .selector-chosen .help-icon { | ||||||
|     background: url(../img/svg/icon-unknown-alt.svg) 0 0 no-repeat; |     background: url(../img/icon-unknown-alt.svg) 0 0 no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .selector .search-label-icon { | .selector .search-label-icon { | ||||||
|     background: url(../img/svg/search.svg) 0 0 no-repeat; |     background: url(../img/search.svg) 0 0 no-repeat; | ||||||
|     display: inline-block; |     display: inline-block; | ||||||
|     height: 18px; |     height: 18px; | ||||||
|     width: 18px; |     width: 18px; | ||||||
| @@ -282,7 +282,7 @@ table p.datetime { | |||||||
| } | } | ||||||
|  |  | ||||||
| .datetimeshortcuts .clock-icon { | .datetimeshortcuts .clock-icon { | ||||||
|     background: url(../img/svg/icon-clock.svg) 0 0 no-repeat; |     background: url(../img/icon-clock.svg) 0 0 no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .datetimeshortcuts a:hover .clock-icon { | .datetimeshortcuts a:hover .clock-icon { | ||||||
| @@ -290,7 +290,7 @@ table p.datetime { | |||||||
| } | } | ||||||
|  |  | ||||||
| .datetimeshortcuts .date-icon { | .datetimeshortcuts .date-icon { | ||||||
|     background: url(../img/svg/icon-calendar.svg) 0 0 no-repeat; |     background: url(../img/icon-calendar.svg) 0 0 no-repeat; | ||||||
|     top: -1px; |     top: -1px; | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -473,7 +473,7 @@ span.clearable-file-input label { | |||||||
|  |  | ||||||
| .calendarnav-previous { | .calendarnav-previous { | ||||||
|     left: 10px; |     left: 10px; | ||||||
|     background: url(../img/svg/calendar-icons.svg) 0 0 no-repeat; |     background: url(../img/calendar-icons.svg) 0 0 no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .calendarbox .calendarnav-previous:hover { | .calendarbox .calendarnav-previous:hover { | ||||||
| @@ -482,7 +482,7 @@ span.clearable-file-input label { | |||||||
|  |  | ||||||
| .calendarnav-next { | .calendarnav-next { | ||||||
|     right: 10px; |     right: 10px; | ||||||
|     background: url(../img/svg/calendar-icons.svg) 0 -30px no-repeat; |     background: url(../img/calendar-icons.svg) 0 -30px no-repeat; | ||||||
| } | } | ||||||
|  |  | ||||||
| .calendarbox .calendarnav-next:hover { | .calendarbox .calendarnav-next:hover { | ||||||
| @@ -587,7 +587,7 @@ ul.orderer li.deleted:hover, ul.orderer li.deleted a.selector:hover { | |||||||
| .inline-deletelink { | .inline-deletelink { | ||||||
|     float: right; |     float: right; | ||||||
|     text-indent: -9999px; |     text-indent: -9999px; | ||||||
|     background: url(../img/svg/inline-delete.svg) 0 0 no-repeat; |     background: url(../img/inline-delete.svg) 0 0 no-repeat; | ||||||
|     width: 16px; |     width: 16px; | ||||||
|     height: 16px; |     height: 16px; | ||||||
|     border: 0px none; |     border: 0px none; | ||||||
|   | |||||||
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 50 B | 
| Before Width: | Height: | Size: 75 B | 
| Before Width: | Height: | Size: 835 B | 
| Before Width: | Height: | Size: 836 B | 
| Before Width: | Height: | Size: 45 B | 
| Before Width: | Height: | Size: 711 B | 
| @@ -0,0 +1 @@ | |||||||
|  | <svg width="24" height="22" viewBox="0 0 847 779" xmlns="http://www.w3.org/2000/svg"><g><path fill="#EBECE6" d="M120 1h607c66 0 120 54 120 120v536c0 66-54 120-120 120h-607c-66 0-120-54-120-120v-536c0-66 54-120 120-120z"/><path fill="#9E9E93" d="M120 1h607c66 0 120 54 120 120v536c0 66-54 120-120 120h-607c-66 0-120-54-120-120v-536c0-66 54-120 120-120zm607 25h-607c-26 0-50 11-67 28-17 18-28 41-28 67v536c0 27 11 50 28 68 17 17 41 27 67 27h607c26 0 49-10 67-27 17-18 28-41 28-68v-536c0-26-11-49-28-67-18-17-41-28-67-28z"/><path stroke="#A9A8A4" stroke-width="20" d="M706 295l-68 281"/><path stroke="#E47474" stroke-width="20" d="M316 648l390-353M141 435l175 213"/><path stroke="#C9C9C9" stroke-width="20" d="M319 151l-178 284M706 295l-387-144"/><g fill="#040405"><path d="M319 111c22 0 40 18 40 40s-18 40-40 40-40-18-40-40 18-40 40-40zM141 395c22 0 40 18 40 40s-18 40-40 40c-23 0-41-18-41-40s18-40 41-40zM316 608c22 0 40 18 40 40 0 23-18 41-40 41s-40-18-40-41c0-22 18-40 40-40zM706 254c22 0 40 18 40 41 0 22-18 40-40 40s-40-18-40-40c0-23 18-41 40-41zM638 536c22 0 40 18 40 40s-18 40-40 40-40-18-40-40 18-40 40-40z"/></g></g></svg> | ||||||
| After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 506 B | 
| @@ -0,0 +1 @@ | |||||||
|  | <svg width="24" height="22" viewBox="0 0 847 779" xmlns="http://www.w3.org/2000/svg"><g><path fill="#F1C02A" d="M120 1h607c66 0 120 54 120 120v536c0 66-54 120-120 120h-607c-66 0-120-54-120-120v-536c0-66 54-120 120-120z"/><path fill="#9E9E93" d="M120 1h607c66 0 120 54 120 120v536c0 66-54 120-120 120h-607c-66 0-120-54-120-120v-536c0-66 54-120 120-120zm607 25h-607c-26 0-50 11-67 28-17 18-28 41-28 67v536c0 27 11 50 28 68 17 17 41 27 67 27h607c26 0 49-10 67-27 17-18 28-41 28-68v-536c0-26-11-49-28-67-18-17-41-28-67-28z"/><path stroke="#A9A8A4" stroke-width="20" d="M706 295l-68 281"/><path stroke="#E47474" stroke-width="20" d="M316 648l390-353M141 435l175 213"/><path stroke="#C9A741" stroke-width="20" d="M319 151l-178 284M706 295l-387-144"/><g fill="#040405"><path d="M319 111c22 0 40 18 40 40s-18 40-40 40-40-18-40-40 18-40 40-40zM141 395c22 0 40 18 40 40s-18 40-40 40c-23 0-41-18-41-40s18-40 41-40zM316 608c22 0 40 18 40 40 0 23-18 41-40 41s-40-18-40-41c0-22 18-40 40-40zM706 254c22 0 40 18 40 41 0 22-18 40-40 40s-40-18-40-40c0-23 18-41 40-41zM638 536c22 0 40 18 40 40s-18 40-40 40-40-18-40-40 18-40 40-40z"/></g></g></svg> | ||||||
| After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B | 
| Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 504 B | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 380 B After Width: | Height: | Size: 380 B | 
| Before Width: | Height: | Size: 677 B After Width: | Height: | Size: 677 B | 
| Before Width: | Height: | Size: 392 B After Width: | Height: | Size: 392 B | 
| Before Width: | Height: | Size: 176 B | 
| Before Width: | Height: | Size: 560 B After Width: | Height: | Size: 560 B | 
| Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 655 B | 
| Before Width: | Height: | Size: 130 B | 
| Before Width: | Height: | Size: 655 B After Width: | Height: | Size: 655 B | 
| Before Width: | Height: | Size: 299 B | 
| Before Width: | Height: | Size: 436 B After Width: | Height: | Size: 436 B | 
| Before Width: | Height: | Size: 119 B | 
| Before Width: | Height: | Size: 145 B | 
| Before Width: | Height: | Size: 192 B | 
| Before Width: | Height: | Size: 119 B | 
| Before Width: | Height: | Size: 390 B | 
| Before Width: | Height: | Size: 181 B | 
| Before Width: | Height: | Size: 319 B | 
| Before Width: | Height: | Size: 368 B | 
| Before Width: | Height: | Size: 341 B | 
| Before Width: | Height: | Size: 707 B | 
| Before Width: | Height: | Size: 560 B After Width: | Height: | Size: 560 B | 
| Before Width: | Height: | Size: 363 B | 
| Before Width: | Height: | Size: 557 B | 
| Before Width: | Height: | Size: 94 B | 
| Before Width: | Height: | Size: 116 B | 
| Before Width: | Height: | Size: 178 B | 
| Before Width: | Height: | Size: 265 B | 
| Before Width: | Height: | Size: 265 B | 
| Before Width: | Height: | Size: 458 B After Width: | Height: | Size: 458 B | 
| Before Width: | Height: | Size: 2.7 KiB | 
| Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB | 
| Before Width: | Height: | Size: 552 B | 
| Before Width: | Height: | Size: 369 B | 
| Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB | 
| Before Width: | Height: | Size: 119 B | 
| Before Width: | Height: | Size: 331 B After Width: | Height: | Size: 331 B | 
| Before Width: | Height: | Size: 200 B | 
| Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 280 B | 
| @@ -10,7 +10,7 @@ | |||||||
|      {% for field in inline_admin_formset.fields %} |      {% for field in inline_admin_formset.fields %} | ||||||
|        {% if not field.widget.is_hidden %} |        {% if not field.widget.is_hidden %} | ||||||
|          <th{% if forloop.first %} colspan="2"{% endif %}{% if field.required %} class="required"{% endif %}>{{ field.label|capfirst }} |          <th{% if forloop.first %} colspan="2"{% endif %}{% if field.required %} class="required"{% endif %}>{{ field.label|capfirst }} | ||||||
|          {% if field.help_text %} <img src="{% static "admin/img/svg/icon-unknown.svg" %}" class="help help-tooltip" width="10" height="10" alt="({{ field.help_text|striptags }})" title="{{ field.help_text|striptags }}" />{% endif %} |          {% if field.help_text %} <img src="{% static "admin/img/icon-unknown.svg" %}" class="help help-tooltip" width="10" height="10" alt="({{ field.help_text|striptags }})" title="{{ field.help_text|striptags }}" />{% endif %} | ||||||
|          </th> |          </th> | ||||||
|        {% endif %} |        {% endif %} | ||||||
|      {% endfor %} |      {% endfor %} | ||||||
|   | |||||||
| @@ -6,21 +6,21 @@ | |||||||
|         <a class="related-widget-wrapper-link change-related" id="change_id_{{ name }}" |         <a class="related-widget-wrapper-link change-related" id="change_id_{{ name }}" | ||||||
|             data-href-template="{{ change_related_template_url }}?{{ url_params }}" |             data-href-template="{{ change_related_template_url }}?{{ url_params }}" | ||||||
|             title="{% blocktrans %}Change selected {{ model }}{% endblocktrans %}"> |             title="{% blocktrans %}Change selected {{ model }}{% endblocktrans %}"> | ||||||
|             <img src="{% static 'admin/img/svg/icon-changelink.svg' %}" alt="{% trans 'Change' %}"/> |             <img src="{% static 'admin/img/icon-changelink.svg' %}" alt="{% trans 'Change' %}"/> | ||||||
|         </a> |         </a> | ||||||
|         {% endif %} |         {% endif %} | ||||||
|         {% if can_add_related %} |         {% if can_add_related %} | ||||||
|         <a class="related-widget-wrapper-link add-related" id="add_id_{{ name }}" |         <a class="related-widget-wrapper-link add-related" id="add_id_{{ name }}" | ||||||
|             href="{{ add_related_url }}?{{ url_params }}" |             href="{{ add_related_url }}?{{ url_params }}" | ||||||
|             title="{% blocktrans %}Add another {{ model }}{% endblocktrans %}"> |             title="{% blocktrans %}Add another {{ model }}{% endblocktrans %}"> | ||||||
|             <img src="{% static 'admin/img/svg/icon-addlink.svg' %}" alt="{% trans 'Add' %}"/> |             <img src="{% static 'admin/img/icon-addlink.svg' %}" alt="{% trans 'Add' %}"/> | ||||||
|         </a> |         </a> | ||||||
|         {% endif %} |         {% endif %} | ||||||
|         {% if can_delete_related %} |         {% if can_delete_related %} | ||||||
|         <a class="related-widget-wrapper-link delete-related" id="delete_id_{{ name }}" |         <a class="related-widget-wrapper-link delete-related" id="delete_id_{{ name }}" | ||||||
|             data-href-template="{{ delete_related_template_url }}?{{ url_params }}" |             data-href-template="{{ delete_related_template_url }}?{{ url_params }}" | ||||||
|             title="{% blocktrans %}Delete selected {{ model }}{% endblocktrans %}"> |             title="{% blocktrans %}Delete selected {{ model }}{% endblocktrans %}"> | ||||||
|             <img src="{% static 'admin/img/svg/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}"/> |             <img src="{% static 'admin/img/icon-deletelink.svg' %}" alt="{% trans 'Delete' %}"/> | ||||||
|         </a> |         </a> | ||||||
|         {% endif %} |         {% endif %} | ||||||
|     {% endblock %} |     {% endblock %} | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
| {% if cl.search_fields %} | {% if cl.search_fields %} | ||||||
| <div id="toolbar"><form id="changelist-search" action="" method="get"> | <div id="toolbar"><form id="changelist-search" action="" method="get"> | ||||||
| <div><!-- DIV needed for valid HTML --> | <div><!-- DIV needed for valid HTML --> | ||||||
| <label for="searchbar"><img src="{% static "admin/img/svg/search.svg" %}" alt="Search" /></label> | <label for="searchbar"><img src="{% static "admin/img/search.svg" %}" alt="Search" /></label> | ||||||
| <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" /> | <input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" /> | ||||||
| <input type="submit" value="{% trans 'Search' %}" /> | <input type="submit" value="{% trans 'Search' %}" /> | ||||||
| {% if show_result_count %} | {% if show_result_count %} | ||||||
|   | |||||||
| @@ -174,7 +174,7 @@ def result_headers(cl): | |||||||
|  |  | ||||||
|  |  | ||||||
| def _boolean_icon(field_val): | def _boolean_icon(field_val): | ||||||
|     icon_url = static('admin/img/svg/icon-%s.svg' % |     icon_url = static('admin/img/icon-%s.svg' % | ||||||
|                       {True: 'yes', False: 'no', None: 'unknown'}[field_val]) |                       {True: 'yes', False: 'no', None: 'unknown'}[field_val]) | ||||||
|     return format_html('<img src="{}" alt="{}" />', icon_url, field_val) |     return format_html('<img src="{}" alt="{}" />', icon_url, field_val) | ||||||
|  |  | ||||||
|   | |||||||
| @@ -6,11 +6,11 @@ | |||||||
|   #{{ id }}_admin_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; } |   #{{ id }}_admin_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; } | ||||||
|   {% if not display_wkt %}#{{ id }} { display: none; }{% endif %} |   {% if not display_wkt %}#{{ id }} { display: none; }{% endif %} | ||||||
|   .olControlEditingToolbar .olControlModifyFeatureItemActive { |   .olControlEditingToolbar .olControlModifyFeatureItemActive { | ||||||
|      background-image: url("{% static "admin/img/gis/move_vertex_on.png" %}"); |      background-image: url("{% static "admin/img/gis/move_vertex_on.svg" %}"); | ||||||
|      background-repeat: no-repeat; |      background-repeat: no-repeat; | ||||||
|   } |   } | ||||||
|   .olControlEditingToolbar .olControlModifyFeatureItemInactive { |   .olControlEditingToolbar .olControlModifyFeatureItemInactive { | ||||||
|      background-image: url("{% static "admin/img/gis/move_vertex_off.png" %}"); |      background-image: url("{% static "admin/img/gis/move_vertex_off.svg" %}"); | ||||||
|      background-repeat: no-repeat; |      background-repeat: no-repeat; | ||||||
|   } |   } | ||||||
| </style> | </style> | ||||||
|   | |||||||
| @@ -4,11 +4,11 @@ | |||||||
|     #{{ id }}_div_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; } |     #{{ id }}_div_map { position: relative; vertical-align: top; float: {{ LANGUAGE_BIDI|yesno:"right,left" }}; } | ||||||
|     {% if not display_raw %}#{{ id }} { display: none; }{% endif %} |     {% if not display_raw %}#{{ id }} { display: none; }{% endif %} | ||||||
|     .olControlEditingToolbar .olControlModifyFeatureItemActive { |     .olControlEditingToolbar .olControlModifyFeatureItemActive { | ||||||
|         background-image: url("{% static "admin/img/gis/move_vertex_on.png" %}); |         background-image: url("{% static "admin/img/gis/move_vertex_on.svg" %}); | ||||||
|         background-repeat: no-repeat; |         background-repeat: no-repeat; | ||||||
|     } |     } | ||||||
|     .olControlEditingToolbar .olControlModifyFeatureItemInactive { |     .olControlEditingToolbar .olControlModifyFeatureItemInactive { | ||||||
|         background-image: url("{% static "admin/img/gis/move_vertex_off.png" %}); |         background-image: url("{% static "admin/img/gis/move_vertex_off.svg" %}); | ||||||
|         background-repeat: no-repeat; |         background-repeat: no-repeat; | ||||||
|     }{% endblock %} |     }{% endblock %} | ||||||
| </style> | </style> | ||||||
|   | |||||||
| @@ -143,10 +143,10 @@ class TestInline(TestDataMixin, TestCase): | |||||||
|         """ |         """ | ||||||
|         response = self.client.get(reverse('admin:admin_inlines_holder4_add')) |         response = self.client.get(reverse('admin:admin_inlines_holder4_add')) | ||||||
|         self.assertContains(response, '<p class="help">Awesome stacked help text is awesome.</p>', 4) |         self.assertContains(response, '<p class="help">Awesome stacked help text is awesome.</p>', 4) | ||||||
|         self.assertContains(response, '<img src="/static/admin/img/svg/icon-unknown.svg" class="help help-tooltip" width="10" height="10" alt="(Awesome tabular help text is awesome.)" title="Awesome tabular help text is awesome." />', 1) |         self.assertContains(response, '<img src="/static/admin/img/icon-unknown.svg" class="help help-tooltip" width="10" height="10" alt="(Awesome tabular help text is awesome.)" title="Awesome tabular help text is awesome." />', 1) | ||||||
|         # ReadOnly fields |         # ReadOnly fields | ||||||
|         response = self.client.get(reverse('admin:admin_inlines_capofamiglia_add')) |         response = self.client.get(reverse('admin:admin_inlines_capofamiglia_add')) | ||||||
|         self.assertContains(response, '<img src="/static/admin/img/svg/icon-unknown.svg" class="help help-tooltip" width="10" height="10" alt="(Help text for ReadOnlyInline)" title="Help text for ReadOnlyInline" />', 1) |         self.assertContains(response, '<img src="/static/admin/img/icon-unknown.svg" class="help help-tooltip" width="10" height="10" alt="(Help text for ReadOnlyInline)" title="Help text for ReadOnlyInline" />', 1) | ||||||
|  |  | ||||||
|     def test_inline_hidden_field_no_column(self): |     def test_inline_hidden_field_no_column(self): | ||||||
|         """#18263 -- Make sure hidden fields don't get a column in tabular inlines""" |         """#18263 -- Make sure hidden fields don't get a column in tabular inlines""" | ||||||
|   | |||||||
| @@ -166,7 +166,7 @@ class UtilsTests(SimpleTestCase): | |||||||
|         # Regression test for #13071: NullBooleanField has special |         # Regression test for #13071: NullBooleanField has special | ||||||
|         # handling. |         # handling. | ||||||
|         display_value = display_for_field(None, models.NullBooleanField(), self.empty_value) |         display_value = display_for_field(None, models.NullBooleanField(), self.empty_value) | ||||||
|         expected = '<img src="%sadmin/img/svg/icon-unknown.svg" alt="None" />' % settings.STATIC_URL |         expected = '<img src="%sadmin/img/icon-unknown.svg" alt="None" />' % settings.STATIC_URL | ||||||
|         self.assertHTMLEqual(display_value, expected) |         self.assertHTMLEqual(display_value, expected) | ||||||
|  |  | ||||||
|         display_value = display_for_field(None, models.DecimalField(), self.empty_value) |         display_value = display_for_field(None, models.DecimalField(), self.empty_value) | ||||||
|   | |||||||