src/main/webapp/sportchef_components/sportchef-imprint/sportchef-imprint.html
<!--
SportChef – Sports Competition Management Software
Copyright (C) 2016 Marcus Fihlon
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<link rel="import" href="../../bower_components/polymer/polymer.html" />
<link rel="import" href="../../bower_components/paper-button/paper-button.html" />
<link rel="import" href="../../bower_components/paper-dialog/paper-dialog.html" />
<link rel="import" href="../../bower_components/paper-dialog-scrollable/paper-dialog-scrollable.html" />
<link rel="import" href="../../bower_components/marked-element/marked-element.html" />
<dom-module id="sportchef-imprint">
<template>
<style>
.markdown-html {
max-height: 750px;
max-width: 750px;
padding-left: 10px;
padding-right: 10px;
}
</style>
<iron-ajax auto url="/api/imprint" handle-as="text" last-response="{{imprint}}"></iron-ajax>
<paper-dialog id="dialog-imprint" modal>
<paper-dialog-scrollable class="can-scroll">
<marked-element markdown$="{{imprint}}">
<div class="markdown-html"></div>
</marked-element>
</paper-dialog-scrollable>
<div class="buttons">
<paper-button dialog-confirm autofocus>OK</paper-button>
</div>
</paper-dialog>
</template>
<script>
// register a new element called sportchef-imprint
Polymer({
is: "sportchef-imprint"
});
</script>
</dom-module>