| <!DOCTYPE html> |
| <html lang="en" ng-app="rbtApp"> |
| |
| <head> |
| <meta name="viewport" content="width=device-width"> |
| <meta charset="utf-8"> |
| <title>Rebaseline Tool</title> |
| <link rel="stylesheet" href="css/generated.css"> |
| </head> |
| <body> |
| |
| |
| <!-- Static navbar --> |
| <div class="navbar navbar-default" role="navigation"> |
| <div class="container-fluid"> |
| <div class="navbar-header"> |
| <div class="navbar-brand" ng-show="corpStatus"> |
| Corpus |
| <select ng-options="getStatusString(corp) for corp in corpusList" |
| ng-model="currentCorpus" |
| ng-change="corpusChanged()"> |
| </select> |
| </div> |
| </div> |
| <div class="navbar-collapse collapse"> |
| <ul class="nav navbar-nav"> |
| <!-- <li><a href="#/counts">Counts</a></li> --> |
| <li><a href="#/triage">Triage</a></li> |
| <li><a href="/ignores">Ignores</a></li> |
| <li><a href="/">New UI</a></li> |
| <li ng-if="globalStatus.lastCommit"> |
| <a href="https://skia.googlesource.com/skia/+/{{globalStatus.lastCommit.hash}}" target="_blank">Last Commit: {{ globalStatus.lastCommit.hash | limitTo:7 }} - {{ globalStatus.lastCommit.author|limitTo:globalStatus.lastCommit.author.indexOf('(')}}</a> |
| </li> |
| </ul> |
| <ul class="nav navbar-nav navbar-right"> |
| <!-- <li ng-if="globalStatus.ok" class="statusOk"> |
| All: |
| <span class="glyphicon glyphicon-thumbs-up"></span> |
| </li> |
| <li ng-if="globalStatus && !globalStatus.ok" class="statusFail"> |
| All: <a href="#/triage"> |
| <span class="glyphicon glyphicon-thumbs-down"></span> |
| </a> |
| </li> |
| |
| <li style="width: 15em"> |
| |
| </li> --> |
| |
| <li ng-repeat="c in showCorpora" ng-if="corpStatus[c]" ng-class="{'statusOk': corpStatus[c].ok, 'statusFail': !corpStatus[c].ok }"> |
| <span style="padding-right: 5em"> |
| {{c}}: |
| <span ng-if="corpStatus[c].ok" class="glyphicon glyphicon-thumbs-up"></span> |
| <span ng-if="!corpStatus[c].ok"> |
| UT: {{ corpStatus[c].untriagedCount }} |
| NEG: {{ corpStatus[c].negativeCount }} |
| <a href="#/triage" ng-click="forceTriage(c)" class="thumbLink" title="Triage: {{c}}"> |
| <span class="glyphicon glyphicon-thumbs-down"></span></a> |
| </span> |
| </span> |
| </li> |
| |
| <!-- |
| <li ng-if="corpStatus[currentCorpus] && !corpStatus[currentCorpus].ok" class="statusFail"> |
| {{currentCorpus}}: |
| <span>UT: {{ corpStatus[currentCorpus].untriagedCount }}</span> |
| <span>NEG: {{ corpStatus[currentCorpus].negativeCount }}</span> |
| |
| <a href="#/triage"> |
| <span class="glyphicon glyphicon-thumbs-down"></span></a> |
| </li> |
| --> |
| |
| <li ng-if="isLoggedIn" class="navbar-text">{{userId}}<li> |
| <li ng-if="isLoggedIn" class="active"><a href="{{getLogoutURL()}}">Logout</a></li> |
| <li ng-if="!isLoggedIn" class="active"><a href="{{loginURL}}">Login</a></li> |
| |
| |
| </ul> |
| </div><!--/.nav-collapse --> |
| </div><!--/.container-fluid --> |
| </div> |
| |
| <!-- Include the different views here. |
| Make everything fluid to scale to the maximum size of any screen. --> |
| <div class="container-fluid"> |
| <div ng-view></div> |
| </div> |
| |
| <!-- do everything local right now: Move to CDN fix when it's a performance issue --> |
| <script src="js/generated.js"></script> |
| |
| <!-- Local JS --> |
| <script src="js/logic.js"></script> |
| <script src="js/app.js"></script> |
| </body> |
| </html> |