Browse Source

addCategories: improve layout

master
parent
commit
06ad3e055e
  1. 2
      lang/ast.json
  2. 2
      lang/ca.json
  3. 2
      lang/cs.json
  4. 2
      lang/da.json
  5. 2
      lang/de.json
  6. 2
      lang/el.json
  7. 2
      lang/en.json
  8. 2
      lang/es.json
  9. 2
      lang/et.json
  10. 2
      lang/fr.json
  11. 2
      lang/hu.json
  12. 2
      lang/it.json
  13. 2
      lang/ja.json
  14. 2
      lang/nl.json
  15. 2
      lang/pl.json
  16. 2
      lang/pt-br.json
  17. 2
      lang/pt.json
  18. 2
      lang/ro.json
  19. 2
      lang/ru.json
  20. 2
      lang/sr.json
  21. 2
      lang/template.json
  22. 2
      lang/uk.json
  23. 11
      src/addCategories.js

2
lang/ast.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Llingua de la interfaz", "options:ui_lang": "Llingua de la interfaz",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Guardar", "save": "Guardar",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/ca.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "", "options:ui_lang": "",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Guardar", "save": "Guardar",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/cs.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Jazyk rozhraní", "options:ui_lang": "Jazyk rozhraní",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Uložit", "save": "Uložit",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/da.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Brugerfladesprog", "options:ui_lang": "Brugerfladesprog",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Gem", "save": "Gem",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/de.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "zurück", "back": "zurück",
"categories": "",
"category-info-tooltip": "Info & Legende", "category-info-tooltip": "Info & Legende",
"closed": "geschlossen", "closed": "geschlossen",
"default": "Standard", "default": "Standard",
@ -33,6 +34,7 @@
"options:ui_lang": "Anwendungssprache", "options:ui_lang": "Anwendungssprache",
"other": "Andere", "other": "Andere",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Speichern", "save": "Speichern",
"show details": "zeige Details", "show details": "zeige Details",
"toggle_fullscreen": "(De-)aktiviere Vollbildmodus", "toggle_fullscreen": "(De-)aktiviere Vollbildmodus",

2
lang/el.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Γλώσσα διεπαφής", "options:ui_lang": "Γλώσσα διεπαφής",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Αποθήκευση", "save": "Αποθήκευση",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/en.json

@ -1,6 +1,7 @@
{ {
"available_branches": "Available branches", "available_branches": "Available branches",
"back": "back", "back": "back",
"categories": "Categories",
"category-info-tooltip": "Info & Map key", "category-info-tooltip": "Info & Map key",
"closed": "closed", "closed": "closed",
"default": "default", "default": "default",
@ -33,6 +34,7 @@
"options:ui_lang": "Interface language", "options:ui_lang": "Interface language",
"other": "Other", "other": "Other",
"repo-use-as-base": "Use this repository as base repository", "repo-use-as-base": "Use this repository as base repository",
"repositories": "Repositories",
"save": "Save", "save": "Save",
"show details": "show details", "show details": "show details",
"toggle_fullscreen": "Toggle full screen mode", "toggle_fullscreen": "Toggle full screen mode",

2
lang/es.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Idioma de interfaz", "options:ui_lang": "Idioma de interfaz",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Guardar", "save": "Guardar",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/et.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Kasutajaliidese keel", "options:ui_lang": "Kasutajaliidese keel",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Salvesta", "save": "Salvesta",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/fr.json

@ -1,6 +1,7 @@
{ {
"available_branches": "Branches disponibles", "available_branches": "Branches disponibles",
"back": "Retour", "back": "Retour",
"categories": "",
"category-info-tooltip": "Info & Légende", "category-info-tooltip": "Info & Légende",
"closed": "Fermé", "closed": "Fermé",
"default": "Par défaut", "default": "Par défaut",
@ -30,6 +31,7 @@
"options:ui_lang": "Langue de l'interface", "options:ui_lang": "Langue de l'interface",
"other": "Autres", "other": "Autres",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Sauvegarder", "save": "Sauvegarder",
"show details": "montrer les détails", "show details": "montrer les détails",
"toggle_fullscreen": "Basculer en plein écran", "toggle_fullscreen": "Basculer en plein écran",

2
lang/hu.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "Vissza", "back": "Vissza",
"categories": "",
"category-info-tooltip": "Információk és jelmagyarázat", "category-info-tooltip": "Információk és jelmagyarázat",
"closed": "Lezárva", "closed": "Lezárva",
"default": "Alapértelmezett", "default": "Alapértelmezett",
@ -30,6 +31,7 @@
"options:ui_lang": "Menü nyelve", "options:ui_lang": "Menü nyelve",
"other": "Egyéb", "other": "Egyéb",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Mentés", "save": "Mentés",
"show details": "Részletek megjelenítése", "show details": "Részletek megjelenítése",
"toggle_fullscreen": "Teljes képernyős nézet", "toggle_fullscreen": "Teljes képernyős nézet",

2
lang/it.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Lingua dell'interfaccia", "options:ui_lang": "Lingua dell'interfaccia",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Salva", "save": "Salva",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/ja.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "インタフェース表示", "options:ui_lang": "インタフェース表示",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "保存", "save": "保存",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/nl.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Interfacetaal", "options:ui_lang": "Interfacetaal",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Opslaan", "save": "Opslaan",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/pl.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Język interfejsu", "options:ui_lang": "Język interfejsu",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Zapisz", "save": "Zapisz",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/pt-br.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "voltar", "back": "voltar",
"categories": "",
"category-info-tooltip": "Info & Legenda", "category-info-tooltip": "Info & Legenda",
"closed": "fechado", "closed": "fechado",
"default": "padrão", "default": "padrão",
@ -33,6 +34,7 @@
"options:ui_lang": "Língua da interface", "options:ui_lang": "Língua da interface",
"other": "Outro", "other": "Outro",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Salvar", "save": "Salvar",
"show details": "mostrar detalhes", "show details": "mostrar detalhes",
"toggle_fullscreen": "Alternar modo tela cheia", "toggle_fullscreen": "Alternar modo tela cheia",

2
lang/pt.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "voltar", "back": "voltar",
"categories": "",
"category-info-tooltip": "Info & Legenda", "category-info-tooltip": "Info & Legenda",
"closed": "fechado", "closed": "fechado",
"default": "padrão", "default": "padrão",
@ -33,6 +34,7 @@
"options:ui_lang": "Língua da interface", "options:ui_lang": "Língua da interface",
"other": "Outro", "other": "Outro",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Guardar", "save": "Guardar",
"show details": "mostrar detalhes", "show details": "mostrar detalhes",
"toggle_fullscreen": "Alternar modo ecrã inteiro", "toggle_fullscreen": "Alternar modo ecrã inteiro",

2
lang/ro.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Limba interfata", "options:ui_lang": "Limba interfata",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Salveaza", "save": "Salveaza",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/ru.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Язык интерфейса", "options:ui_lang": "Язык интерфейса",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Сохранить", "save": "Сохранить",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/sr.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Језик интерфејса", "options:ui_lang": "Језик интерфејса",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Запамти", "save": "Запамти",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/template.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "", "options:ui_lang": "",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "", "save": "",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

2
lang/uk.json

@ -1,6 +1,7 @@
{ {
"available_branches": "", "available_branches": "",
"back": "", "back": "",
"categories": "",
"category-info-tooltip": "", "category-info-tooltip": "",
"closed": "", "closed": "",
"default": "", "default": "",
@ -30,6 +31,7 @@
"options:ui_lang": "Мова інтерфейсу", "options:ui_lang": "Мова інтерфейсу",
"other": "", "other": "",
"repo-use-as-base": "", "repo-use-as-base": "",
"repositories": "",
"save": "Зберегти", "save": "Зберегти",
"show details": "", "show details": "",
"toggle_fullscreen": "", "toggle_fullscreen": "",

11
src/addCategories.js

@ -96,9 +96,12 @@ function addCategoriesShow (repo, options={}) {
} }
if ('branches' in repoData) { if ('branches' in repoData) {
let li = document.createElement('li')
menu.appendChild(li)
let text = document.createElement('span') let text = document.createElement('span')
text.innerHTML = lang('available_branches') + ': ' text.innerHTML = lang('available_branches') + ': '
content.appendChild(text)
li.appendChild(text)
let branchSelector = document.createElement('select') let branchSelector = document.createElement('select')
@ -121,9 +124,13 @@ function addCategoriesShow (repo, options={}) {
branchSelector.appendChild(option) branchSelector.appendChild(option)
} }
) )
content.appendChild(branchSelector)
li.appendChild(branchSelector)
} }
let header = document.createElement('h3')
header.innerHTML = lang(repo ? 'repositories' : 'categories') + ':'
content.appendChild(header)
var ul = document.createElement('ul') var ul = document.createElement('ul')
for (var id in list) { for (var id in list) {

Loading…
Cancel
Save