Files
gerrit/polygerrit-ui/app/elements/change/gr-included-in-dialog/gr-included-in-dialog.html
Dmitrii Filippov 9b67ee13ec Fix missing HTML links
Change-Id: I0eb1e54bc2cee2d2a3ddc50052c992479acbe19c
2019-11-12 13:56:10 +00:00

108 lines
3.4 KiB
HTML

<!--
@license
Copyright (C) 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<link rel="import" href="/bower_components/polymer/polymer.html">
<link rel="import" href="/bower_components/iron-input/iron-input.html">
<link rel="import" href="../../../behaviors/fire-behavior/fire-behavior.html">
<link rel="import" href="../../../styles/shared-styles.html">
<link rel="import" href="../../shared/gr-button/gr-button.html">
<link rel="import" href="../../shared/gr-rest-api-interface/gr-rest-api-interface.html">
<dom-module id="gr-included-in-dialog">
<template>
<style include="shared-styles">
:host {
background-color: var(--dialog-background-color);
display: block;
max-height: 80vh;
overflow-y: auto;
padding: 4.5em var(--spacing-l) var(--spacing-l) var(--spacing-l);
}
header {
background-color: var(--dialog-background-color);
border-bottom: 1px solid var(--border-color);
left: 0;
padding: var(--spacing-l);
position: absolute;
right: 0;
top: 0;
}
#title {
display: inline-block;
font-size: var(--font-size-h3);
margin-top: var(--spacing-xs);
}
#filterInput {
display: inline-block;
float: right;
margin: 0 var(--spacing-l);
padding: var(--spacing-xs);
}
.closeButtonContainer {
float: right;
}
ul {
margin-bottom: var(--spacing-l);
}
ul li {
border: 1px solid var(--border-color);
border-radius: var(--border-radius);
background: var(--chip-background-color);
display: inline-block;
margin: 0 var(--spacing-xs) var(--spacing-s) var(--spacing-xs);
padding: var(--spacing-xs) var(--spacing-s);
}
.loading.loaded {
display: none;
}
</style>
<header>
<h1 id="title">Included In:</h1>
<span class="closeButtonContainer">
<gr-button id="closeButton"
link
on-click="_handleCloseTap">Close</gr-button>
</span>
<iron-input
placeholder="Filter"
on-bind-value-changed="_onFilterChanged">
<input
id="filterInput"
is="iron-input"
placeholder="Filter"
on-bind-value-changed="_onFilterChanged">
</iron-input>
</header>
<div class$="[[_computeLoadingClass(_loaded)]]">Loading...</div>
<template
is="dom-repeat"
items="[[_computeGroups(_includedIn, _filterText)]]"
as="group">
<div>
<span>[[group.title]]:</span>
<ul>
<template is="dom-repeat" items="[[group.items]]">
<li>[[item]]</li>
</template>
</ul>
</div>
</template>
<gr-rest-api-interface id="restAPI"></gr-rest-api-interface>
</template>
<script src="gr-included-in-dialog.js"></script>
</dom-module>