From 183b2eb121c50eb2e36e58fc95a3668a6c57cff6 Mon Sep 17 00:00:00 2001 From: Pablo Vazquez Date: Fri, 21 Oct 2016 17:01:32 +0200 Subject: [PATCH] Click on last update to get more info --- src/styles/_app_base.sass | 8 ++++++++ src/styles/_tasks.sass | 3 ++- src/templates/attract/shots/view_shot_embed.jade | 13 +++++++++++-- src/templates/attract/tasks/view_task_embed.jade | 2 +- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/src/styles/_app_base.sass b/src/styles/_app_base.sass index e8103f4..f60fda8 100644 --- a/src/styles/_app_base.sass +++ b/src/styles/_app_base.sass @@ -341,3 +341,11 @@ input, input.form-control .dark @include status-color-property(background-color, '', 'dark') +.collapsing + transition: all 150ms ease-in-out + opacity: 0 + +.collapse + transition: all 250ms ease-in-out + &.in + opacity: 1 diff --git a/src/styles/_tasks.sass b/src/styles/_tasks.sass index 2793bfc..5d77825 100644 --- a/src/styles/_tasks.sass +++ b/src/styles/_tasks.sass @@ -67,11 +67,12 @@ &:first-child width: 120px + max-width: 200px text-align: right font-weight: bold padding-right: 10px border-right: thin solid $color-background-dark - white-space: nowrap + +text-overflow-ellipsis &.properties-assignees .table-cell span diff --git a/src/templates/attract/shots/view_shot_embed.jade b/src/templates/attract/shots/view_shot_embed.jade index 01717c5..6e20ce0 100644 --- a/src/templates/attract/shots/view_shot_embed.jade +++ b/src/templates/attract/shots/view_shot_embed.jade @@ -65,7 +65,16 @@ .table-body .table-row .table-cell Last update - .table-cell(title="{{ shot._updated }}") {{ shot._updated | pretty_date }} + .table-cell(title="{{ shot._updated }}") + span(role='button', + data-toggle='collapse', + data-target='#task-time-creation', + aria-expanded='false', + aria-controls='#task-time-creation') + | {{ shot._updated | pretty_date_time }} + #task-time-creation.collapse + | Created on {{ shot._created | pretty_date_time }} + .table-row .table-cell Cut-in .table-cell(title="Frame number of the first visible frame of this shot.") @@ -90,7 +99,7 @@ aria-expanded='false', aria-controls='debug-content') i.pi-info - | Debug Information + | Debug Info #debug-content.collapse pre. {{ shot.to_dict() | pprint }} diff --git a/src/templates/attract/tasks/view_task_embed.jade b/src/templates/attract/tasks/view_task_embed.jade index a69ea12..bacf7fa 100644 --- a/src/templates/attract/tasks/view_task_embed.jade +++ b/src/templates/attract/tasks/view_task_embed.jade @@ -129,7 +129,7 @@ aria-expanded='false', aria-controls='debug-content') i.pi-info - | Debug Information + | Debug Info #debug-content.collapse pre. {{ task.to_dict() | pprint }}