1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00

need a menu-def for maps

This commit is contained in:
George Hunt 2019-04-03 09:50:25 -07:00
parent acce561ec9
commit 4432cec1fa
3 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1 @@
menu_def_dir: '{{ doc_root }}/js-menu/menu-files/menu-defs'

View file

@ -0,0 +1,12 @@
{
"lang": "en",
"intended_use": "map",
"automatically_generated": "true",
"title": "OpenStreetMap Test Page",
"extra_html": "",
"start_url": "assets",
"menu_item_name": "en-map_test.json",
"map_name": "en-map_test",
"logo_url": "osm.jpg",
"description": "<p>This page is installed by default during the initial installation of Internet In A Box>"
}

View file

@ -69,3 +69,13 @@
src: splash-index.redirect
dest: "{{ osm_vector_path }}/index.html"
- name: Determine status of splash menu def
stat:
path: '{{ menu_def_dir }}/en-map_test.json'
register: menu_def
- name: Do not overwrite if it already exists
copy:
src: en-map_test.json
dest: '{{ menu_def_dir }}/en-map_test.json'
when: menu_def.stat.exists is defined and not menu_def.stat.exists