зеркало из https://github.com/mozilla/treeherder.git
88 строки
3.2 KiB
HTML
88 строки
3.2 KiB
HTML
<!-- Pinboard -->
|
|
<div id="pinned-job-list">
|
|
<div class="content">
|
|
<span class="pinboard-preload-txt"
|
|
ng-hide="hasPinnedJobs()">
|
|
press spacebar to pin a selected job</span>
|
|
<span ng-repeat="job in pinnedJobs">
|
|
<th-pinned-job></th-pinned-job>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Related bugs -->
|
|
<div id="pinboard-related-bugs">
|
|
<div class="content">
|
|
<a ng-click="toggleEnterBugNumber(!enteringBugNumber); allowKeys()"
|
|
class="click-able-icon"
|
|
title="Add a related bug">
|
|
<i class="fa fa-plus-square add-related-bugs-icon"></i>
|
|
</a>
|
|
<span class="pinboard-preload-txt pinboard-related-bug-preload-txt"
|
|
ng-if="!hasRelatedBugs()"
|
|
ng-click="toggleEnterBugNumber(!enteringBugNumber); allowKeys()">
|
|
click to add a related bug</span>
|
|
<form ng-submit="saveEnteredBugNumber()"
|
|
ng-show="enteringBugNumber"
|
|
class="add-related-bugs-form">
|
|
<input id="related-bug-input"
|
|
data-bug-input
|
|
class="add-related-bugs-input mousetrap"
|
|
ng-model="$parent.newEnteredBugNumber"
|
|
placeholder="enter bug number"
|
|
focus-me="focusInput">
|
|
</form>
|
|
<span ng-repeat="bug in relatedBugs">
|
|
<th-related-bug-queued></th-related-bug-queued>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Classification dropdown -->
|
|
<div id="pinboard-classification">
|
|
<div class="pinboard-label">classification</div>
|
|
<div id="pinboard-classification-content" class="content">
|
|
<form ng-submit="completeClassification()" class="form">
|
|
<select class="mousetrap" ng-click="allowKeysClassificationDropdown()"
|
|
ng-model="classification.failure_classification_id"
|
|
ng-options="item.id as item.name for item in classificationTypes.classificationOptions">
|
|
</select>
|
|
<!-- Classification comment -->
|
|
<div class="classification-comment-container">
|
|
<input id="classification-comment"
|
|
type="text"
|
|
class="form-control add-classification-input mousetrap"
|
|
ng-model="classification.note"
|
|
ng-click="allowKeys()"
|
|
focus-this blur-this></input>
|
|
<span class="pinboard-preload-txt classification-comment-preload-txt"
|
|
ng-if="!classification.note">
|
|
click to add comment</span>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Save UI -->
|
|
<div id="pinboard-controls" class="btn-group-vertical"
|
|
title="{{!hasPinnedJobs() ? 'No jobs pinned' : ''}}">
|
|
<div class="btn-group">
|
|
<span class="btn btn-default btn-xs save-btn"
|
|
title="Save all classification data"
|
|
ng-click="save()"
|
|
ng-disabled="!hasPinnedJobs()">save
|
|
</span>
|
|
<span class="btn btn-default btn-xs dropdown-toggle save-btn-dropdown"
|
|
title="Additional pinboard functions"
|
|
ng-disabled="!hasPinnedJobs() && !hasRelatedBugs()"
|
|
data-toggle="dropdown">
|
|
<span class="caret"></span>
|
|
</span>
|
|
<ul class="dropdown-menu pull-right" role="menu">
|
|
<li><a ng-click="saveClassificationOnly()">Save classification only</a></li>
|
|
<li><a ng-click="saveBugsOnly()">Save bugs only</a></li>
|
|
<li><a ng-click="unPinAll()">Clear all</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|