diff options
Diffstat (limited to 'polygerrit-ui/app/elements/change-list/gr-change-list/gr-change-list.html')
-rw-r--r-- | polygerrit-ui/app/elements/change-list/gr-change-list/gr-change-list.html | 63 |
1 files changed, 29 insertions, 34 deletions
diff --git a/polygerrit-ui/app/elements/change-list/gr-change-list/gr-change-list.html b/polygerrit-ui/app/elements/change-list/gr-change-list/gr-change-list.html index 152ef3d2f4..372e6beff2 100644 --- a/polygerrit-ui/app/elements/change-list/gr-change-list/gr-change-list.html +++ b/polygerrit-ui/app/elements/change-list/gr-change-list/gr-change-list.html @@ -1,4 +1,5 @@ <!-- +@license Copyright (C) 2015 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,58 +17,38 @@ limitations under the License. <link rel="import" href="../../../behaviors/base-url-behavior/base-url-behavior.html"> <link rel="import" href="../../../behaviors/gr-change-table-behavior/gr-change-table-behavior.html"> -<link rel="import" href="../../../behaviors/gr-url-encoding-behavior.html"> +<link rel="import" href="../../../behaviors/gr-url-encoding-behavior/gr-url-encoding-behavior.html"> <link rel="import" href="../../../behaviors/keyboard-shortcut-behavior/keyboard-shortcut-behavior.html"> <link rel="import" href="../../../behaviors/rest-client-behavior/rest-client-behavior.html"> <link rel="import" href="../../../bower_components/polymer/polymer.html"> <link rel="import" href="../../../styles/gr-change-list-styles.html"> <link rel="import" href="../../core/gr-navigation/gr-navigation.html"> -<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html"> +<link rel="import" href="../../shared/gr-cursor-manager/gr-cursor-manager.html"> <link rel="import" href="../gr-change-list-item/gr-change-list-item.html"> <link rel="import" href="../../../styles/shared-styles.html"> <dom-module id="gr-change-list"> <template> - <style include="shared-styles"> + <style include="shared-styles"></style> + <style include="gr-change-list-styles"> #changeList { border-collapse: collapse; width: 100%; } - .cell { - padding: .3em .5em; - } - th { - text-align: left; - } - .groupHeader { - background-color: #eee; - border-top: 1em solid #fff; - } - .groupHeader a { - color: #000; - text-decoration: none; - } - .groupHeader a:hover { - text-decoration: underline; - } - .headerRow + tr { - border: none; - } </style> - <style include="gr-change-list-styles"></style> <table id="changeList"> - <tr class="headerRow"> - <th class="topHeader keyboard"></th> - <th class="topHeader star" hidden$="[[!showStar]]" hidden></th> - <th class="topHeader number" hidden$="[[!showNumber]]" hidden>#</th> + <tr class="topHeader"> + <th class="leftPadding"></th> + <th class="star" hidden$="[[!showStar]]" hidden></th> + <th class="number" hidden$="[[!showNumber]]" hidden>#</th> <template is="dom-repeat" items="[[changeTableColumns]]" as="item"> - <th class$="[[_lowerCase(item)]] topHeader" + <th class$="[[_lowerCase(item)]]" hidden$="[[isColumnHidden(item, visibleChangeTableColumns)]]"> [[item]] </th> </template> <template is="dom-repeat" items="[[labelNames]]" as="labelName"> - <th class="topHeader label" title$="[[labelName]]"> + <th class="label" title$="[[labelName]]"> [[_computeLabelShortcut(labelName)]] </th> </template> @@ -76,6 +57,8 @@ limitations under the License. index-as="sectionIndex"> <template is="dom-if" if="[[changeSection.sectionName]]"> <tr class="groupHeader"> + <td class="leftPadding"></td> + <td class="star" hidden$="[[!showStar]]" hidden></td> <td class="cell" colspan$="[[_computeColspan(changeTableColumns, labelNames)]]"> <a href$="[[_sectionHref(changeSection.query)]]"> @@ -84,28 +67,40 @@ limitations under the License. </td> </tr> </template> - <template is="dom-if" if="[[!changeSection.results.length]]"> + <template is="dom-if" if="[[_isEmpty(changeSection)]]"> <tr class="noChanges"> + <td class="leftPadding"></td> + <td class="star" hidden$="[[!showStar]]" hidden></td> <td class="cell" colspan$="[[_computeColspan(changeTableColumns, labelNames)]]"> - No changes + <template is="dom-if" if="[[_isOutgoing(changeSection)]]"> + <slot name="empty-outgoing"></slot> + </template> + <template is="dom-if" if="[[!_isOutgoing(changeSection)]]"> + No changes + </template> </td> </tr> </template> <template is="dom-repeat" items="[[changeSection.results]]" as="change"> <gr-change-list-item selected$="[[_computeItemSelected(sectionIndex, index, selectedIndex)]]" - assigned$="[[_computeItemAssigned(account, change)]]" + highlight$="[[_computeItemHighlight(account, change)]]" needs-review$="[[_computeItemNeedsReview(account, change, showReviewedState)]]" change="[[change]]" visible-change-table-columns="[[visibleChangeTableColumns]]" show-number="[[showNumber]]" show-star="[[showStar]]" + tabindex="0" label-names="[[labelNames]]"></gr-change-list-item> </template> </template> </table> - <gr-rest-api-interface id="restAPI"></gr-rest-api-interface> + <gr-cursor-manager + id="cursor" + index="{{selectedIndex}}" + scroll-behavior="keep-visible" + focus-on-move></gr-cursor-manager> </template> <script src="gr-change-list.js"></script> </dom-module> |