diff --git a/lang/ast.json b/lang/ast.json index fd8ccbb4..05f99a10 100644 --- a/lang/ast.json +++ b/lang/ast.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Llingua de la interfaz", "other": "", + "repo-use-as-base": "", "save": "Guardar", "show details": "", "toggle_fullscreen": "", diff --git a/lang/ca.json b/lang/ca.json index f6c32022..70d9020c 100644 --- a/lang/ca.json +++ b/lang/ca.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "", "other": "", + "repo-use-as-base": "", "save": "Guardar", "show details": "", "toggle_fullscreen": "", diff --git a/lang/cs.json b/lang/cs.json index 11ef151c..a7269f14 100644 --- a/lang/cs.json +++ b/lang/cs.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Jazyk rozhraní", "other": "", + "repo-use-as-base": "", "save": "Uložit", "show details": "", "toggle_fullscreen": "", diff --git a/lang/da.json b/lang/da.json index 3b52e135..fafff1cf 100644 --- a/lang/da.json +++ b/lang/da.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Brugerfladesprog", "other": "", + "repo-use-as-base": "", "save": "Gem", "show details": "", "toggle_fullscreen": "", diff --git a/lang/de.json b/lang/de.json index 2ce7e3ac..a1d88b3e 100644 --- a/lang/de.json +++ b/lang/de.json @@ -32,6 +32,7 @@ "options:preferredBaseMap": "Bevorzugte Hintergrundkarte", "options:ui_lang": "Anwendungssprache", "other": "Andere", + "repo-use-as-base": "", "save": "Speichern", "show details": "zeige Details", "toggle_fullscreen": "(De-)aktiviere Vollbildmodus", diff --git a/lang/el.json b/lang/el.json index c3c521b2..93452e17 100644 --- a/lang/el.json +++ b/lang/el.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Γλώσσα διεπαφής", "other": "", + "repo-use-as-base": "", "save": "Αποθήκευση", "show details": "", "toggle_fullscreen": "", diff --git a/lang/en.json b/lang/en.json index 33e8ea49..bef60314 100644 --- a/lang/en.json +++ b/lang/en.json @@ -32,6 +32,7 @@ "options:preferredBaseMap": "Preferred base map", "options:ui_lang": "Interface language", "other": "Other", + "repo-use-as-base": "Use this repository as base repository", "save": "Save", "show details": "show details", "toggle_fullscreen": "Toggle full screen mode", diff --git a/lang/es.json b/lang/es.json index e77f4819..a13d5d64 100644 --- a/lang/es.json +++ b/lang/es.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Idioma de interfaz", "other": "", + "repo-use-as-base": "", "save": "Guardar", "show details": "", "toggle_fullscreen": "", diff --git a/lang/et.json b/lang/et.json index 3b11c580..3ebe9ea3 100644 --- a/lang/et.json +++ b/lang/et.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Kasutajaliidese keel", "other": "", + "repo-use-as-base": "", "save": "Salvesta", "show details": "", "toggle_fullscreen": "", diff --git a/lang/fr.json b/lang/fr.json index 5a966ce6..a4034605 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "Carte de base préférée", "options:ui_lang": "Langue de l'interface", "other": "Autres", + "repo-use-as-base": "", "save": "Sauvegarder", "show details": "montrer les détails", "toggle_fullscreen": "Basculer en plein écran", diff --git a/lang/hu.json b/lang/hu.json index 51bde539..28a8e99f 100644 --- a/lang/hu.json +++ b/lang/hu.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "Előnyben részesített alaptérkép", "options:ui_lang": "Menü nyelve", "other": "Egyéb", + "repo-use-as-base": "", "save": "Mentés", "show details": "Részletek megjelenítése", "toggle_fullscreen": "Teljes képernyős nézet", diff --git a/lang/it.json b/lang/it.json index d3dfef45..288b59e7 100644 --- a/lang/it.json +++ b/lang/it.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Lingua dell'interfaccia", "other": "", + "repo-use-as-base": "", "save": "Salva", "show details": "", "toggle_fullscreen": "", diff --git a/lang/ja.json b/lang/ja.json index 18241d5a..e58773ac 100644 --- a/lang/ja.json +++ b/lang/ja.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "インタフェース表示", "other": "", + "repo-use-as-base": "", "save": "保存", "show details": "", "toggle_fullscreen": "", diff --git a/lang/nl.json b/lang/nl.json index 406accf4..a5907cdf 100644 --- a/lang/nl.json +++ b/lang/nl.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Interfacetaal", "other": "", + "repo-use-as-base": "", "save": "Opslaan", "show details": "", "toggle_fullscreen": "", diff --git a/lang/pl.json b/lang/pl.json index f111410c..fb7eefbd 100644 --- a/lang/pl.json +++ b/lang/pl.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Język interfejsu", "other": "", + "repo-use-as-base": "", "save": "Zapisz", "show details": "", "toggle_fullscreen": "", diff --git a/lang/pt-br.json b/lang/pt-br.json index a2564aa5..eb1c7e27 100644 --- a/lang/pt-br.json +++ b/lang/pt-br.json @@ -32,6 +32,7 @@ "options:preferredBaseMap": "Mapa-base preferido", "options:ui_lang": "Língua da interface", "other": "Outro", + "repo-use-as-base": "", "save": "Salvar", "show details": "mostrar detalhes", "toggle_fullscreen": "Alternar modo tela cheia", diff --git a/lang/pt.json b/lang/pt.json index 67fb7536..d08db50f 100644 --- a/lang/pt.json +++ b/lang/pt.json @@ -32,6 +32,7 @@ "options:preferredBaseMap": "Mapa-base preferido", "options:ui_lang": "Língua da interface", "other": "Outro", + "repo-use-as-base": "", "save": "Guardar", "show details": "mostrar detalhes", "toggle_fullscreen": "Alternar modo ecrã inteiro", diff --git a/lang/ro.json b/lang/ro.json index 22ad5094..af3e7694 100644 --- a/lang/ro.json +++ b/lang/ro.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Limba interfata", "other": "", + "repo-use-as-base": "", "save": "Salveaza", "show details": "", "toggle_fullscreen": "", diff --git a/lang/ru.json b/lang/ru.json index b9bb37aa..3b382cad 100644 --- a/lang/ru.json +++ b/lang/ru.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Язык интерфейса", "other": "", + "repo-use-as-base": "", "save": "Сохранить", "show details": "", "toggle_fullscreen": "", diff --git a/lang/sr.json b/lang/sr.json index 697e39e8..246db8fb 100644 --- a/lang/sr.json +++ b/lang/sr.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Језик интерфејса", "other": "", + "repo-use-as-base": "", "save": "Запамти", "show details": "", "toggle_fullscreen": "", diff --git a/lang/template.json b/lang/template.json index 4864f0fd..507a43a7 100644 --- a/lang/template.json +++ b/lang/template.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "", "other": "", + "repo-use-as-base": "", "save": "", "show details": "", "toggle_fullscreen": "", diff --git a/lang/uk.json b/lang/uk.json index c7fd08d4..5b9bfe4e 100644 --- a/lang/uk.json +++ b/lang/uk.json @@ -29,6 +29,7 @@ "options:preferredBaseMap": "", "options:ui_lang": "Мова інтерфейсу", "other": "", + "repo-use-as-base": "", "save": "Зберегти", "show details": "", "toggle_fullscreen": "", diff --git a/src/addCategories.js b/src/addCategories.js index 92ffe470..f0415126 100644 --- a/src/addCategories.js +++ b/src/addCategories.js @@ -67,6 +67,21 @@ function addCategoriesShow (repo) { }) } + let menu = document.createElement('ul') + menu.className = 'menu' + content.appendChild(menu) + + if (repo) { + let li = document.createElement('li') + menu.appendChild(li) + + let text = document.createElement('a') + text.innerHTML = lang('repo-use-as-base') + text.href = '#repo=' + repo + text.onclick = addCategoriesHide + li.appendChild(text) + } + if ('branches' in repoData) { let text = document.createElement('span') text.innerHTML = lang('available_branches') + ': '