<div class="tab-pane" id="jobs-stdout">
    <div ng-cloak id="htmlTemplate">
    <div class="StandardOut-container">
        <div class="StandardOut-leftPanel" ng-show="!stdoutFullScreen">
            <div class="Panel">
                <div class="StandardOut-panelHeader">
                    RESULTS
                </div>
                <div class="StandardOut-details">

                    <div class="StandardOut-detailsRow" ng-show="job.module_name">
                        <div class="StandardOut-detailsLabel">Name</div>
                        <div class="StandardOut-detailsContent">{{ job.module_name }}</div>
                    </div>

                    <div class="StandardOut-detailsRow">
                        <div class="StandardOut-detailsLabel">STATUS</div>
                        <div class="StandardOut-detailsContent">
                            <i class="fa icon-job-{{ job.status }}"></i>
                            <span class="StandardOut-statusText StandardOut--capitalize">{{ job.status }}</span>
                        </div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="job.started">
                        <div class="StandardOut-detailsLabel">STARTED</div>
                        <div class="StandardOut-detailsContent">
                            {{ job.started | date:'MM/dd/yy HH:mm:ss' }}
                        </div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="job.finished">
                        <div class="StandardOut-detailsLabel">FINISHED</div>
                        <div class="StandardOut-detailsContent">
                            {{ job.finished | date:'MM/dd/yy HH:mm:ss' }}
                        </div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="job.finished">
                        <div class="StandardOut-detailsLabel">ELAPSED</div>
                        <div class="StandardOut-detailsContent">
                            {{ job.elapsed }} seconds
                        </div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="job.module_args">
                        <div class="StandardOut-detailsLabel">Module Args</div>
                        <div class="StandardOut-detailsContent">{{ job.module_args }}</div>
                    </div>

                    <div class="StandardOut-detailsRow">
                        <div class="StandardOut-detailsLabel">Inventory</div>
                        <div class="StandardOut-detailsContent">
                            <a href="{{ inventory_url }}"
                                aw-tool-tip="The inventory this command ran on."
                                data-placement="top">{{ inventory_name }}</a>
                        </div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="credential_name">
                        <div class="StandardOut-detailsLabel">Credential</div>
                        <div class="StandardOut-detailsContent">
                            <a href="{{ credential_url }}"
                                aw-tool-tip="The credential used to run this command."
                                data-placement="top">{{ credential_name }}</a>
                        </div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="created_by">
                        <div class="StandardOut-detailsLabel">Launched By</div>
                        <div class="StandardOut-detailsContent">
                            <a href="/#/users/{{ created_by.id }}"
                                aw-tool-tip="The user who ran this command."
                                data-placement="top">{{ created_by.username }}</a>
                        </div>
                    </div>

                    <!-- since zero is a falsy value, you need ng-show such that
                    the number is >= 0 -->
                    <div class="StandardOut-detailsRow" ng-show="forks >= 0">
                        <div class="StandardOut-detailsLabel">Forks</div>
                        <div class="StandardOut-detailsContent">{{ forks }}</div>
                    </div>

                    <div class="StandardOut-detailsRow" ng-show="limit">
                        <div class="StandardOut-detailsLabel">Limit</div>
                        <div class="StandardOut-detailsContent">{{ limit }}</div>
                    </div>

                    <!-- since zero is a falsy value, you need ng-show such that
                    the number is >= 0 -->
                    <div class="StandardOut-detailsRow" ng-show="verbosity >= 0">
                        <div class="StandardOut-detailsLabel">Verbosity</div>
                        <div class="StandardOut-detailsContent">{{ verbosity }}</div>
                    </div>
                </div>
            </div>
        </div>
        <div class="StandardOut-rightPanel">
            <div class="Panel">
                <div class="StandardOut-panelHeader">
                    <div class="StandardOut-panelHeaderText">STANDARD OUT</div>
                    <div class="StandardOut-panelHeaderActions">
                        <button class="StandardOut-actionButton" aw-tool-tip="Toggle Output" data-placement="top" ng-class="{'StandardOut-actionButton--active': stdoutFullScreen}"ng-click="toggleStdoutFullscreen()">
                            <i class="fa fa-arrows-alt"></i>
                        </button>
                        <a href="/api/v1/ad_hoc_commands/{{ job.id }}/stdout?format=txt_download&token={{ token }}">
                            <button class="StandardOut-actionButton" aw-tool-tip="Download Output" data-placement="top">
                                <i class="fa fa-download"></i>
                            </button>
                        </a>
                    </div>
                </div>
                <standard-out-log stdout-endpoint="job.related.stdout"></standard-out-log>
            </div>
        </div>
    </div>
    </div>
</div>
