diff --git a/assets/scripts/app/templates/repos/show/actions.hbs b/assets/scripts/app/templates/repos/show/actions.hbs
index de829fab..5f1232fd 100644
--- a/assets/scripts/app/templates/repos/show/actions.hbs
+++ b/assets/scripts/app/templates/repos/show/actions.hbs
@@ -32,13 +32,17 @@
{{/if}}
{{/if}}
- {{!TODO: for some reason showDownloadLog, which just delegates to jobIdForLog
- does not refresh 'if' properly, need further investigation}}
- {{#if view.jobIdForLog}}
+ {{#if view.showDownloadLog}}
{{/if}}
+ {{#if view.displayRemoveLog}}
+
+
+
+ {{/if}}
{{#if view.displayCodeClimate}}
@get('job.id') ||
- (@get('build.jobs.length') == 1 && @get('build.jobs.firstObject.id'))
+ (@get('build.jobs.length') == 1 && @get('build.jobs').objectAt(0).get?('id'))
).property('job.id', 'build.jobs.firstObject.id', 'build.jobs.length')
job: (->
@@ -283,7 +283,8 @@ Travis.reopen
).property('displayRemoveLog', 'hasPermission')
displayRemoveLog: (->
- (@get('isJobTab') || (@get('isBuildTab') && @get('build.jobs.length') == 1)) && @get('build.jobs.firstObject.canRemoveLog')
+ (@get('isJobTab') || (@get('isBuildTab') && @get('build.jobs.length') == 1)) &&
+ @get('build.jobs').objectAt(0).get?('canRemoveLog')
).property('isJobTab', 'isBuildTab', 'build.jobs.length', 'job.canRemoveLog')
canCancelBuild: (->