summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorjakeburden <jburden@gitlab.com>2019-08-21 14:58:04 -0400
committerjakeburden <jburden@gitlab.com>2019-08-28 08:48:14 -0400
commita3edfab1a9fcfdab56d2f2d29fa9f72ce0455ee4 (patch)
treed3eb7bbe85a789d72e2cb2296431ac0130f5be41 /app/views/projects
parentef0f1509dd2a2a3ba5798362e2be21108b705a85 (diff)
downloadgitlab-ce-a3edfab1a9fcfdab56d2f2d29fa9f72ce0455ee4.tar.gz
Only display time if the job has deployed Update JS tests for displaying job deployment time Simplify boolean check in deployedDate
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/deployments/_deployment.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/deployments/_deployment.html.haml b/app/views/projects/deployments/_deployment.html.haml
index a11e23b6daa..1dd85c89fd0 100644
--- a/app/views/projects/deployments/_deployment.html.haml
+++ b/app/views/projects/deployments/_deployment.html.haml
@@ -22,7 +22,8 @@
.table-section.section-15{ role: 'gridcell' }
.table-mobile-header{ role: 'rowheader' }= _("Created")
- %span.table-mobile-content= time_ago_with_tooltip(deployment.created_at)
+ - if deployment.deployed_at
+ %span.table-mobile-content= time_ago_with_tooltip(deployment.deployed_at)
.table-section.section-20.table-button-footer{ role: 'gridcell' }
.btn-group.table-action-buttons