2018-02-20 14:53:31 +00:00
|
|
|
<template>
|
|
|
|
|
|
|
|
<div id='HEADER'>
|
|
|
|
|
2018-03-12 18:50:56 +00:00
|
|
|
<!-- Version management -->
|
|
|
|
<div class='versions'>
|
|
|
|
|
|
|
|
<div class='current' @click='version_dialog=!version_dialog' :data-id='current_version_id'>{{ versions[current_version_id].date || 'version à jour' }}</div>
|
|
|
|
<div class='version-dialog' v-show='version_dialog'>
|
|
|
|
<span data-id='0' @click='version_dialog=false; current_version_id=0'>version à jour</span>
|
|
|
|
<span v-for='v in (1,versions.length-1)' @click='version_dialog=false; current_version_id=v' :data-id='v'>{{ versions[v].date }}</span>
|
|
|
|
</div>
|
|
|
|
|
2018-02-20 14:53:31 +00:00
|
|
|
</div>
|
2018-03-12 18:50:56 +00:00
|
|
|
<!-- <div class='header-title'>{{ gstore.header_title }}</div> -->
|
2018-02-20 14:53:31 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
name: 'HEADER',
|
|
|
|
data(){
|
|
|
|
return {
|
|
|
|
gstore: gstore.get,
|
2018-03-12 18:50:56 +00:00
|
|
|
is_connected: _SERVER.session.connected,
|
|
|
|
|
|
|
|
version_dialog: false,
|
|
|
|
current_version_id: 0,
|
|
|
|
versions: [
|
|
|
|
{ date: null },
|
|
|
|
{ date: '01-02-2017' },
|
|
|
|
{ date: '23-03-2017' }
|
|
|
|
]
|
2018-02-20 14:53:31 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|