Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Remove date formatting
dominik-zeglen115d29819d0c
diff --git a/saleor/static/dashboard/scss/components/_timeline.scss b/saleor/static/dashboard/scss/components/_timeline.scssindex 91ba30461c..955884f066 100644--- a/saleor/static/dashboard/scss/components/_timeline.scss+++ b/saleor/static/dashboard/scss/components/_timeline.scss@@ -1,9 +1,11 @@$timeline-width: 3px !default;$timeline-circle-radius: 6px !default;$timeline-event-margin: 30px !default;+$timeline-date-width: 20rem;+$timeline-status-width: 12rem;.timeline-outer {- padding-left: 180px;+ padding-left: $timeline-date-width;.timeline {border-left: $timeline-width $primary-color-light solid;position: relative;@@ -17,10 +19,12 @@ $timeline-event-margin: 30px !default;display: block;}&:before {- left: -10rem;+ left: -$timeline-date-width;content: attr(data-date);text-align: right;top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} + .1rem);+ width: $timeline-date-width;+ padding-right: 3rem;}&:after {box-shadow: 0 0 0 $timeline-width $primary-color-light;@@ -39,7 +43,7 @@ $timeline-event-margin: 30px !default;}.content {margin-left: 3rem;- padding-left: 200px;+ padding-left: $timeline-status-width;position: relative;top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} + .1rem);}@@ -63,10 +67,12 @@ $timeline-event-margin: 30px !default;left: 3rem;top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} + .7rem);min-width: 0;+ text-align: left;}.content {position: relative;top: calc(#{$timeline-circle-radius} + #{$timeline-width} + .5px - #{$label-font-size} - .5rem);+ padding-left: if($timeline-date-width > $timeline-status-width, $timeline-date-width, $timeline-status-width);}}}diff --git a/templates/dashboard/order/detail.html b/templates/dashboard/order/detail.htmlindex bfe25e2d15..ed2d33166d 100644--- a/templates/dashboard/order/detail.html+++ b/templates/dashboard/order/detail.html@@ -531,7 +531,7 @@<div class="timeline-outer"><ul class="timeline">{% for event in order.history.all %}- <li class="event" data-date="{{ event.date|datetimefmt:"dd/mm/yy HH:MM" }}">+ <li class="event" data-date="{{ event.date }}"><div class="content">{{ event.comment|default:" " }}{% if event.user %} by {{ event.user }}{% endif %}<div class="status">