forked from mirrors/bookwyrm
fix local_path for groups
This commit is contained in:
parent
c87712c995
commit
df5a5f94a1
3 changed files with 43 additions and 41 deletions
|
@ -24,6 +24,10 @@ class Group(BookWyrmModel):
|
||||||
related_name="members"
|
related_name="members"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def get_remote_id(self):
|
||||||
|
"""don't want the user to be in there in this case"""
|
||||||
|
return f"https://{DOMAIN}/group/{self.id}"
|
||||||
|
|
||||||
class GroupMember(models.Model):
|
class GroupMember(models.Model):
|
||||||
"""Users who are members of a group"""
|
"""Users who are members of a group"""
|
||||||
|
|
||||||
|
|
|
@ -54,10 +54,8 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% include "snippets/pagination.html" with page=items %}
|
{% include "snippets/pagination.html" with page=items %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% spaceless %}
|
{% spaceless %}
|
||||||
|
|
||||||
{% if list.curation == 'group' %}
|
{% if list.curation == 'group' %}
|
||||||
{% blocktrans with username=list.user.display_name userpath=list.user.local_path groupname=list.group.name grouppath=list.group.local_path %}Created by <a href="{{ userpath }}">{{ username }}</a> and managed by <a href="{{ path }}">{{ groupname }}</a>{% endblocktrans %}
|
{% blocktrans with username=list.user.display_name userpath=list.user.local_path groupname=list.group.name grouppath=list.group.local_path %}Created by <a href="{{ userpath }}">{{ username }}</a> and managed by <a href="{{ grouppath }}">{{ groupname }}</a>{% endblocktrans %}
|
||||||
{% elif list.curation != 'open' %}
|
{% elif list.curation != 'open' %}
|
||||||
{% blocktrans with username=list.user.display_name path=list.user.local_path %}Created and curated by <a href="{{ path }}">{{ username }}</a>{% endblocktrans %}
|
{% blocktrans with username=list.user.display_name path=list.user.local_path %}Created and curated by <a href="{{ path }}">{{ username }}</a>{% endblocktrans %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Reference in a new issue