From d45b1f860ffce7c85f5b34766fdafe4a1a3aca86 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Wed, 11 Oct 2017 15:04:39 +0530 Subject: [PATCH] ttrss: Add description about availability of /tt-rss-app path Signed-off-by: Sunil Mohan Adapa --- plinth/modules/ttrss/__init__.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/plinth/modules/ttrss/__init__.py b/plinth/modules/ttrss/__init__.py index 96e589d48..98e4f3c1c 100644 --- a/plinth/modules/ttrss/__init__.py +++ b/plinth/modules/ttrss/__init__.py @@ -49,7 +49,11 @@ description = [ _('When enabled, Tiny Tiny RSS will be available from /tt-rss path on the web server. It can be accessed by ' 'any user with a {box_name} login.'), - box_name=_(cfg.box_name)) + box_name=_(cfg.box_name)), + + format_lazy( + _('When using a mobile or desktop application for Tiny Tiny RSS, use ' + 'the URL /tt-rss-app for connecting.')) ] service = None @@ -58,7 +62,8 @@ service = None def init(): """Intialize the module.""" menu = main_menu.get('apps') - menu.add_urlname(name, 'glyphicon-envelope', 'ttrss:index', short_description) + menu.add_urlname(name, 'glyphicon-envelope', 'ttrss:index', + short_description) global service setup_helper = globals()['setup_helper'] @@ -88,8 +93,9 @@ def setup(helper, old_version=None): def add_shortcut(): - frontpage.add_shortcut('ttrss', name, short_description=short_description, url='/tt-rss', - login_required=True) + """Add a shortcut to the front page.""" + frontpage.add_shortcut('ttrss', name, short_description=short_description, + url='/tt-rss', login_required=True) def is_enabled():