Add warning about favorites being public

This commit is contained in:
rubenwardy 2023-08-20 23:04:09 +01:00
parent ef18f255be
commit 1b5174621d
2 changed files with 6 additions and 2 deletions

@ -303,7 +303,11 @@ def package_toggle_favorite(package):
db.session.add(collection)
if toggle_package(collection, package):
flash(gettext("Added package to favorites collection"), "success")
msg = gettext("Added package to favorites collection")
if not collection.private:
msg += " " + gettext("(Public, change from Profile > My Collections)")
flash(msg, "success")
else:
flash(gettext("Removed package from favorites collection"), "success")

@ -53,7 +53,7 @@
{% endif %}
{{ _("A collection by %(author)s", author=self.author_link()) }}
</p>
<p>
<p class="lead mb-5">
{{ collection.short_description }}
</p>
{% if collection.long_description %}