mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
Update app.py
This commit is contained in:
parent
018e9624c7
commit
59fecb7d1d
1 changed files with 3 additions and 2 deletions
|
@ -291,6 +291,7 @@ def add_to_wishlist():
|
||||||
new_wishlist = toml.loads(current_wishlist_rawtoml)
|
new_wishlist = toml.loads(current_wishlist_rawtoml)
|
||||||
|
|
||||||
if slug in new_wishlist:
|
if slug in new_wishlist:
|
||||||
|
url = f"https://apps.yunohost.org/wishlist?search={slug}"
|
||||||
return render_template(
|
return render_template(
|
||||||
"wishlist_add.html",
|
"wishlist_add.html",
|
||||||
locale=get_locale(),
|
locale=get_locale(),
|
||||||
|
@ -298,8 +299,8 @@ def add_to_wishlist():
|
||||||
csrf_token=csrf_token,
|
csrf_token=csrf_token,
|
||||||
successmsg=None,
|
successmsg=None,
|
||||||
errormsg=_(
|
errormsg=_(
|
||||||
"An entry with the name %(slug) already exists in the wishlist, instead, you can <a href='https://apps.yunohost.org/wishlist?search=%(slug)s'>add a star to the app to show your interest</a>.",
|
"An entry with the name %(slug) already exists in the wishlist, instead, you can <a href='%(url)s'>add a star to the app to show your interest</a>.",
|
||||||
slug=slug,
|
slug=slug, url=url,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue