-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #260 from eidottermihi/_#255
Setze aktuelle Maven Project Version in Footer via Maven Filtering - …
- Loading branch information
Showing
3 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<link rel="import" href="../bower_components/polymer/polymer-element.html"> | ||
|
||
<link rel="import" href="shared-styles.html"> | ||
|
||
<!-- GENERATOR pattern: [DOMAINNAME]-footer --> | ||
<dom-module id="animad-footer"> | ||
<template> | ||
<style include="shared-styles"> | ||
:host { | ||
display: block; | ||
padding: 10px; | ||
} | ||
footer { | ||
text-align: center; | ||
font-size: 12px; | ||
} | ||
</style> | ||
|
||
<footer> | ||
<b>Animad App</b> - Version <span id="animad-footer-version">[[_version]]</span> | ||
</footer> | ||
|
||
</template> | ||
|
||
<script> | ||
// GENERATOR pattern (camel case): [DOMAINNAME]Footer | ||
class AnimadFooter extends Polymer.Element { | ||
// GENERATOR pattern: [DOMAINNAME]-footer | ||
static get is() { return 'animad-footer'; } | ||
static get properties() { | ||
return { | ||
_version: { | ||
type: String, | ||
// will be filtered by Maven | ||
value: "@project.version@" | ||
} | ||
} | ||
} | ||
} | ||
|
||
// GENERATOR pattern (camel case): [DOMAINNAME]Footer | ||
window.customElements.define(AnimadFooter.is, AnimadFooter); | ||
</script> | ||
</dom-module> |