From ed4363484a2affdad7194334b7397f5cb45421ad Mon Sep 17 00:00:00 2001 From: Giga Chubinidze Date: Fri, 3 Feb 2023 11:12:33 +0400 Subject: [PATCH 1/3] Step timestamp display [SCI-7837] --- app/assets/stylesheets/steps/step.scss | 15 +++++++++++++++ app/javascript/vue/protocol/step.vue | 1 + app/serializers/step_serializer.rb | 11 ++++++++++- config/locales/en.yml | 1 + 4 files changed, 27 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/steps/step.scss b/app/assets/stylesheets/steps/step.scss index 3a67cb558..169bdaeca 100644 --- a/app/assets/stylesheets/steps/step.scss +++ b/app/assets/stylesheets/steps/step.scss @@ -148,6 +148,21 @@ .step-elements { padding-left: calc(var(--left-component-padding) * 2); + .step-timestamp { + position: relative; + margin-left: 34px; + width: 356px; + height: 15px; + font-family: 'Lato'; + font-style: normal; + font-weight: 400; + font-size: 10px; + line-height: 14px; + flex: none; + order: 0; + flex-grow: 0; + } + .step-element-name { .sci-inline-edit__view, textarea { diff --git a/app/javascript/vue/protocol/step.vue b/app/javascript/vue/protocol/step.vue index d62ed1d72..2303a566c 100644 --- a/app/javascript/vue/protocol/step.vue +++ b/app/javascript/vue/protocol/step.vue @@ -128,6 +128,7 @@
+
{{ i18n.t('protocols.steps.timestamp', {date: step.attributes.created_on, user: step.attributes.created_by}) }}