2018-01-23 05:16:27 +00:00
|
|
|
<div class="dynamic-page-banner">
|
|
|
|
<h1 class="dynamic-page-title">{{title}}</h1>
|
|
|
|
<button type="button"
|
|
|
|
class="dynamic-page-go-back"
|
|
|
|
on:click="onGoBack(event)">Back</button>
|
|
|
|
</div>
|
|
|
|
<style>
|
|
|
|
.dynamic-page-banner {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
2018-01-28 02:41:41 +00:00
|
|
|
margin: 20px 20px 20px;
|
2018-01-23 05:16:27 +00:00
|
|
|
}
|
|
|
|
h1.dynamic-page-title {
|
|
|
|
margin: 0;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
button.dynamic-page-go-back {
|
|
|
|
font-size: 1.3em;
|
|
|
|
color: var(--anchor-text);
|
|
|
|
border: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
button.dynamic-page-go-back:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
button.dynamic-page-go-back::before {
|
|
|
|
content: '<';
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
methods: {
|
|
|
|
onGoBack(e) {
|
|
|
|
e.preventDefault()
|
|
|
|
window.history.back();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|