mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-23 16:40:36 +00:00
Merge pull request #1833 from bookwyrm-social/links-admin-improvements
Links admin improvements
This commit is contained in:
commit
f769c42abe
3 changed files with 5 additions and 4 deletions
|
@ -722,6 +722,7 @@ ol.ordered-list li::before {
|
|||
|
||||
.overflow-wrap-anywhere {
|
||||
overflow-wrap: anywhere;
|
||||
min-width: 10em;
|
||||
}
|
||||
|
||||
/* Threads
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
<div class="column is-narrow">
|
||||
<button type="button" class="button" data-modal-open="{{ domain_modal }}">
|
||||
<span class="icon icon-pencil m-0-mobile" aria-hidden="treu"></span>
|
||||
<span>{% trans "Set display name" %}</span>
|
||||
<span class="is-sr-only-mobile">{% trans "Set display name" %}</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -20,9 +20,9 @@ class LinkDomain(View):
|
|||
def get(self, request, status="pending"):
|
||||
"""view pending domains"""
|
||||
data = {
|
||||
"domains": models.LinkDomain.objects.filter(status=status).prefetch_related(
|
||||
"links"
|
||||
),
|
||||
"domains": models.LinkDomain.objects.filter(status=status)
|
||||
.prefetch_related("links")
|
||||
.order_by("-created_date"),
|
||||
"counts": {
|
||||
"pending": models.LinkDomain.objects.filter(status="pending").count(),
|
||||
"approved": models.LinkDomain.objects.filter(status="approved").count(),
|
||||
|
|
Loading…
Reference in a new issue