diff --git a/translations/ar.json b/translations/ar.json
index d9500e6d..a182cd42 100644
--- a/translations/ar.json
+++ b/translations/ar.json
@@ -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": "حدد رمز التحرير لإضافة روابط الويب"
}
diff --git a/translations/ca.json b/translations/ca.json
index 77f53cc8..09ffe3bc 100644
--- a/translations/ca.json
+++ b/translations/ca.json
@@ -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"
}
diff --git a/translations/cy.json b/translations/cy.json
index c45ec9f0..b8fa4dac 100644
--- a/translations/cy.json
+++ b/translations/cy.json
@@ -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"
}
diff --git a/translations/de.json b/translations/de.json
index 60c2370e..a9780286 100644
--- a/translations/de.json
+++ b/translations/de.json
@@ -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"
}
diff --git a/translations/en.json b/translations/en.json
index 45b650d2..c00fce8b 100644
--- a/translations/en.json
+++ b/translations/en.json
@@ -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"
}
diff --git a/translations/es.json b/translations/es.json
index 9a093a94..a7ba512b 100644
--- a/translations/es.json
+++ b/translations/es.json
@@ -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"
}
diff --git a/translations/fr.json b/translations/fr.json
index 9143941a..da6f7620 100644
--- a/translations/fr.json
+++ b/translations/fr.json
@@ -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"
}
diff --git a/translations/ga.json b/translations/ga.json
index 99fdb623..b76a7df5 100644
--- a/translations/ga.json
+++ b/translations/ga.json
@@ -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"
}
diff --git a/translations/hi.json b/translations/hi.json
index 9de81af5..ddfc2d8e 100644
--- a/translations/hi.json
+++ b/translations/hi.json
@@ -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": "वेब लिंक जोड़ने के लिए संपादन आइकन का चयन करें"
}
diff --git a/translations/it.json b/translations/it.json
index f2f4b889..e3b79e5f 100644
--- a/translations/it.json
+++ b/translations/it.json
@@ -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"
}
diff --git a/translations/ja.json b/translations/ja.json
index fb4be472..3e41eb99 100644
--- a/translations/ja.json
+++ b/translations/ja.json
@@ -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リンクを追加します"
}
diff --git a/translations/oc.json b/translations/oc.json
index 58391f8d..dc9520ed 100644
--- a/translations/oc.json
+++ b/translations/oc.json
@@ -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"
}
diff --git a/translations/pt.json b/translations/pt.json
index 6d24c7e6..808456c6 100644
--- a/translations/pt.json
+++ b/translations/pt.json
@@ -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"
}
diff --git a/translations/ru.json b/translations/ru.json
index 4af05f5e..a70e3d46 100644
--- a/translations/ru.json
+++ b/translations/ru.json
@@ -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": "Щелкните значок редактирования, чтобы добавить веб-ссылки"
}
diff --git a/translations/zh.json b/translations/zh.json
index 9196c1f2..a467275b 100644
--- a/translations/zh.json
+++ b/translations/zh.json
@@ -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链接"
}
diff --git a/webapp_column_left.py b/webapp_column_left.py
index 928c89df..5417e81a 100644
--- a/webapp_column_left.py
+++ b/webapp_column_left.py
@@ -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) + ''
- 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 += '
\n'
+ htmlStr += '