rebaseline_server: in Pending Approval tab, change expected/actual labels to old/new
authorepoger <epoger@google.com>
Tue, 19 Aug 2014 19:17:06 +0000 (12:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 19 Aug 2014 19:17:06 +0000 (12:17 -0700)
BUG=skia:1918
NOTREECHECKS=true
NOTRY=true
R=stephana@google.com
TBR=stephana

Author: epoger@google.com

Review URL: https://codereview.chromium.org/484763004

gm/rebaseline_server/static/live-view.html

index bffcb07..44cbd0d 100644 (file)
                href=""
                title="setA: '{{header[constants.KEY__HEADER__SET_A_DESCRIPTIONS][constants.KEY__SET_DESCRIPTIONS__SECTION]}}' within {{header[constants.KEY__HEADER__SET_A_DESCRIPTIONS][constants.KEY__SET_DESCRIPTIONS__DIR]}}"
                class="sortable-header">
-                   {{imageSets[constants.KEY__IMAGESETS__SET__IMAGE_A][constants.KEY__IMAGESETS__FIELD__DESCRIPTION]}}
+              <span ng-show="'Pending Approval' != viewingTab">
+                {{imageSets[constants.KEY__IMAGESETS__SET__IMAGE_A][constants.KEY__IMAGESETS__FIELD__DESCRIPTION]}}
+              </span>
+              <span ng-show="'Pending Approval' == viewingTab">
+                old expectations
+              </span>
             </a>
           </th>
           <th width="{{imageSize}}">
                href=""
                title="setB: '{{header[constants.KEY__HEADER__SET_B_DESCRIPTIONS][constants.KEY__SET_DESCRIPTIONS__SECTION]}}' within {{header[constants.KEY__HEADER__SET_B_DESCRIPTIONS][constants.KEY__SET_DESCRIPTIONS__DIR]}}"
                class="sortable-header">
-                  {{imageSets[constants.KEY__IMAGESETS__SET__IMAGE_B][constants.KEY__IMAGESETS__FIELD__DESCRIPTION]}}
+              <span ng-show="'Pending Approval' != viewingTab">
+                {{imageSets[constants.KEY__IMAGESETS__SET__IMAGE_B][constants.KEY__IMAGESETS__FIELD__DESCRIPTION]}}
+              </span>
+              <span ng-show="'Pending Approval' == viewingTab">
+                new expectations
+              </span>
             </a>
           </th>
           <th width="{{imageSize}}">