First time user prompt

merge-requests/30/head
Bob Mottram 2020-11-29 11:31:16 +00:00
parent 774219c7ce
commit 745035f647
16 changed files with 50 additions and 21 deletions

View File

@ -336,5 +336,6 @@
"editor": "محرر",
"delegator": "المفوض",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "حدد رمز التحرير لإضافة موجز ويب لـ RSS"
"Select the edit icon to add RSS feeds": "حدد رمز التحرير لإضافة موجز ويب لـ RSS",
"Select the edit icon to add web links": "حدد رمز التحرير لإضافة روابط الويب"
}

View File

@ -336,5 +336,6 @@
"editor": "editor",
"delegator": "delegador",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Seleccioneu la icona d'edició per afegir canals RSS"
"Select the edit icon to add RSS feeds": "Seleccioneu la icona d'edició per afegir canals RSS",
"Select the edit icon to add web links": "Seleccioneu la icona d'edició per afegir enllaços web"
}

View File

@ -336,5 +336,6 @@
"editor": "golygydd",
"delegator": "dirprwy",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Dewiswch yr eicon golygu i ychwanegu porthwyr RSS"
"Select the edit icon to add RSS feeds": "Dewiswch yr eicon golygu i ychwanegu porthwyr RSS",
"Select the edit icon to add web links": "Dewiswch yr eicon golygu i ychwanegu dolenni gwe"
}

View File

@ -336,5 +336,6 @@
"editor": "Editor",
"delegator": "Delegator",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Wählen Sie das Bearbeitungssymbol, um RSS-Feeds hinzuzufügen"
"Select the edit icon to add RSS feeds": "Wählen Sie das Bearbeitungssymbol, um RSS-Feeds hinzuzufügen",
"Select the edit icon to add web links": "Wählen Sie das Bearbeitungssymbol, um Weblinks hinzuzufügen"
}

View File

@ -336,5 +336,6 @@
"editor": "editor",
"delegator": "delegator",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Select the edit icon to add RSS feeds"
"Select the edit icon to add RSS feeds": "Select the edit icon to add RSS feeds",
"Select the edit icon to add web links": "Select the edit icon to add web links"
}

View File

@ -336,5 +336,6 @@
"editor": "editor",
"delegator": "delegador",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Seleccione el icono de edición para agregar fuentes RSS"
"Select the edit icon to add RSS feeds": "Seleccione el icono de edición para agregar fuentes RSS",
"Select the edit icon to add web links": "Seleccione el icono de edición para agregar enlaces web"
}

View File

@ -336,5 +336,6 @@
"editor": "éditeur",
"delegator": "délégant",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Sélectionnez l'icône d'édition pour ajouter des flux RSS"
"Select the edit icon to add RSS feeds": "Sélectionnez l'icône d'édition pour ajouter des flux RSS",
"Select the edit icon to add web links": "Sélectionnez l'icône de modification pour ajouter des liens Web"
}

View File

@ -336,5 +336,6 @@
"editor": "eagarthóir",
"delegator": "toscaire",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Roghnaigh an deilbhín eagar chun fothaí RSS a chur leis"
"Select the edit icon to add RSS feeds": "Roghnaigh an deilbhín eagar chun fothaí RSS a chur leis",
"Select the edit icon to add web links": "Roghnaigh an deilbhín eagar chun naisc ghréasáin a chur leis"
}

View File

@ -336,5 +336,6 @@
"editor": "संपादक",
"delegator": "डैलिगेटर",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "RSS फ़ीड जोड़ने के लिए संपादन आइकन का चयन करें"
"Select the edit icon to add RSS feeds": "RSS फ़ीड जोड़ने के लिए संपादन आइकन का चयन करें",
"Select the edit icon to add web links": "वेब लिंक जोड़ने के लिए संपादन आइकन का चयन करें"
}

View File

@ -336,5 +336,6 @@
"editor": "editore",
"delegator": "delegatore",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Seleziona l'icona di modifica per aggiungere feed RSS"
"Select the edit icon to add RSS feeds": "Seleziona l'icona di modifica per aggiungere feed RSS",
"Select the edit icon to add web links": "Seleziona l'icona di modifica per aggiungere link web"
}

View File

@ -336,5 +336,6 @@
"editor": "編集者",
"delegator": "委任者",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "編集アイコンを選択してRSSフィードを追加します"
"Select the edit icon to add RSS feeds": "編集アイコンを選択してRSSフィードを追加します",
"Select the edit icon to add web links": "編集アイコンを選択してWebリンクを追加します"
}

View File

@ -332,5 +332,6 @@
"editor": "editor",
"delegator": "delegator",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Select the edit icon to add RSS feeds"
"Select the edit icon to add RSS feeds": "Select the edit icon to add RSS feeds",
"Select the edit icon to add web links": "Select the edit icon to add web links"
}

View File

@ -336,5 +336,6 @@
"editor": "editor",
"delegator": "delegador",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Selecione o ícone de edição para adicionar feeds RSS"
"Select the edit icon to add RSS feeds": "Selecione o ícone de edição para adicionar feeds RSS",
"Select the edit icon to add web links": "Selecione o ícone de edição para adicionar links da web"
}

View File

@ -336,5 +336,6 @@
"editor": "редактор",
"delegator": "делегат",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "Щелкните значок редактирования, чтобы добавить RSS-каналы"
"Select the edit icon to add RSS feeds": "Щелкните значок редактирования, чтобы добавить RSS-каналы",
"Select the edit icon to add web links": "Щелкните значок редактирования, чтобы добавить веб-ссылки"
}

View File

@ -336,5 +336,6 @@
"editor": "编辑",
"delegator": "委托人",
"Debian": "Debian",
"Select the edit icon to add RSS feeds": "选择编辑图标以添加RSS feed"
"Select the edit icon to add RSS feeds": "选择编辑图标以添加RSS feed",
"Select the edit icon to add web links": "选择编辑图标以添加Web链接"
}

View File

@ -21,6 +21,13 @@ from webapp_utils import htmlFooter
from webapp_utils import getBannerFile
def linksExist(baseDir: str) -> bool:
"""Returns true if links have been created
"""
linksFilename = baseDir + '/accounts/links.txt'
return os.path.isfile(linksFilename)
def getLeftColumnContent(baseDir: str, nickname: str, domainFull: str,
httpPrefix: str, translate: {},
iconsPath: str, editor: bool,
@ -232,12 +239,19 @@ def htmlLinksMobile(cssCache: {}, baseDir: str,
headerButtonsFrontScreen(translate, nickname,
'links', authorized,
iconsAsButtons, iconsPath) + '</center>'
htmlStr += \
getLeftColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate,
iconsPath, editor,
False, timelinePath,
rssIconAtTop, False, False)
if linksExist(baseDir):
htmlStr += \
getLeftColumnContent(baseDir, nickname, domainFull,
httpPrefix, translate,
iconsPath, editor,
False, timelinePath,
rssIconAtTop, False, False)
else:
if editor:
htmlStr += '<br><br><br>\n'
htmlStr += '<center>\n '
htmlStr += translate['Select the edit icon to add web links']
htmlStr += '\n</center>\n'
# end of col-left-mobile
htmlStr += '</div>\n'