diff --git a/app/assets/stylesheets/_grids.scss b/app/assets/stylesheets/_grids.scss index 8e59bede1..afd38dc71 100644 --- a/app/assets/stylesheets/_grids.scss +++ b/app/assets/stylesheets/_grids.scss @@ -39,6 +39,11 @@ margin-bottom: $gutter-half; } +.bottom-gutter-1-3 { + @extend %bottom-gutter; + margin-bottom: $gutter/3; +} + .bottom-gutter-3-2 { @extend %bottom-gutter; margin-bottom: $gutter * 3/2; diff --git a/app/templates/views/templates/_template_history.html b/app/templates/views/templates/_template_history.html index ddf5ed391..853a3b059 100644 --- a/app/templates/views/templates/_template_history.html +++ b/app/templates/views/templates/_template_history.html @@ -1,18 +1,16 @@
+ {% if template.get_raw('version', 1) > 1 %} + Edit made {% if template.get_raw('updated_at', None) %}{{ template.get_raw('updated_at')|format_datetime_normal }}{% endif %} + {% else %} + Created + {% if template.get_raw('created_at', None) %}{{ template.get_raw('created_at')|format_datetime_normal }}{% endif %} + {% endif %} + by {{ template.get_raw('created_by').name }} +
+
{{ message_count_label(1, template.template_type, suffix='')|capitalize }} template - {% if template.get('updated_at', None) %} - Last edited {{ template.get('updated_at', None)|format_date_short }} - See previous versions - {% endif %}