Skip to content

Commit

Permalink
fix unpublishing of content
Browse files Browse the repository at this point in the history
  • Loading branch information
biodiv committed Jan 10, 2022
1 parent 80e4c9f commit 060151e
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% if success %}
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{% trans 'Close' %}</button>
{% else %}
<form method="POST" class="xhr" action="{% url 'unpublish_template_content' request.app.uid template_content.id %}" ajax-target="ModalContent">
<form method="POST" class="xhr" action="{% url 'unpublish_template_content' app.uid template_content.id %}" ajax-target="ModalContent">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{% trans 'Cancel' %}</button>
<button type="submit" class="btn btn-danger">{% trans 'Unpublish' %}</button>
</form>
Expand Down
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion localcosmos_server.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: localcosmos-server
Version: 0.8.5
Version: 0.8.6
Summary: LocalCosmos Private Server. Run your own server for localcosmos.org apps.
Home-page: https://github.com/SiSol-Systems/localcosmos-server
Author: Thomas Uher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{% if success %}
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{% trans 'Close' %}</button>
{% else %}
<form method="POST" class="xhr" action="{% url 'unpublish_template_content' request.app.uid template_content.id %}" ajax-target="ModalContent">
<form method="POST" class="xhr" action="{% url 'unpublish_template_content' app.uid template_content.id %}" ajax-target="ModalContent">
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{% trans 'Cancel' %}</button>
<button type="submit" class="btn btn-danger">{% trans 'Unpublish' %}</button>
</form>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

setup(
name='localcosmos_server',
version='0.8.5',
version='0.8.6',
description='LocalCosmos Private Server. Run your own server for localcosmos.org apps.',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 060151e

Please sign in to comment.