mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-08 22:17:34 +01:00
Add warning about favorites being public
This commit is contained in:
parent
ef18f255be
commit
1b5174621d
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user