Only show the trigger description div if needed and reformat the HTML to indent properly.

This commit is contained in:
Joseph Schorr 2014-02-25 00:25:15 -05:00
parent df915b5b21
commit e6a8b84ff3

View file

@ -2,12 +2,12 @@
<span ng-switch-when="github"> <span ng-switch-when="github">
<i class="fa fa-github fa-lg" style="margin-right: 6px" title="GitHub" bs-tooltip="tooltip.title"></i> <i class="fa fa-github fa-lg" style="margin-right: 6px" title="GitHub" bs-tooltip="tooltip.title"></i>
Push to GitHub repository <a href="https://github.com/{{ trigger.config.build_source }}" target="_new">{{ trigger.config.build_source }}</a> Push to GitHub repository <a href="https://github.com/{{ trigger.config.build_source }}" target="_new">{{ trigger.config.build_source }}</a>
<div style="margin-top: 4px; margin-left: 26px; font-size: 12px; color: gray;"> <div style="margin-top: 4px; margin-left: 26px; font-size: 12px; color: gray;" ng-if="trigger.config.subdir">
<span ng-if="trigger.config.subdir">Dockerfile: <span>Dockerfile:
<a href="https://github.com/{{ trigger.config.build_source }}/tree/master/{{ trigger.config.subdir }}/Dockerfile" target="_blank"> <a href="https://github.com/{{ trigger.config.build_source }}/tree/master/{{ trigger.config.subdir }}/Dockerfile" target="_blank">
//{{ trigger.config.subdir }}/Dockerfile //{{ trigger.config.subdir }}/Dockerfile
</a> </a>
</span> </span>
</div> </div>
</span> </span>
<span ng-switch-default> <span ng-switch-default>