Files
gerrit/polygerrit-ui/app/elements/change/gr-commit-info/gr-commit-info.html
Andrew Bonventre e97a662f5e Move commit hash to be above file list
+ With this change, all patch-level UI elements (with the exception
  of the related changes list) are visually consolidated within the
  file list.

Change-Id: Id2656ed9955177228133137ee07308f125ced7a8
2016-08-23 20:47:31 +00:00

36 lines
1.1 KiB
HTML

<!--
Copyright (C) 2016 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">
<dom-module id="gr-commit-info">
<template>
<style>
:host {
display: inline-block;
}
</style>
<template is="dom-if" if="[[_showWebLink]]">
<a target="_blank"
href$="[[_webLink]]">[[_computeShortHash(commitInfo)]]</a>
</template>
<template is="dom-if" if="[[!_showWebLink]]">
[[_computeShortHash(commitInfo)]]
</template>
</template>
<script src="gr-commit-info.js"></script>
</dom-module>