kopia lustrzana https://github.com/jointakahe/takahe
pass page index to identities edit
rodzic
e3723ad6f8
commit
cedf8d216d
|
@ -22,7 +22,7 @@
|
|||
{% for identity in page_obj %}
|
||||
<tr>
|
||||
<td class="icon">
|
||||
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
|
||||
<a href="{{ identity.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
||||
<img
|
||||
src="{{ identity.local_icon_url.relative }}"
|
||||
class="icon"
|
||||
|
@ -33,7 +33,7 @@
|
|||
>
|
||||
</td>
|
||||
<td class="name">
|
||||
<a href="{{ identity.urls.admin_edit }}" class="overlay"></a>
|
||||
<a href="{{ identity.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
||||
{{ identity.html_name_or_handle }}
|
||||
<small>@{{ identity.handle }}</small>
|
||||
</td>
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
<div class="buttons">
|
||||
<a href="{{ identity.urls.admin }}" class="button secondary left">Back</a>
|
||||
<a href="{{ identity.urls.admin }}?page={{ page }}" class="button secondary left">Back</a>
|
||||
<a href="{{ identity.urls.view }}" class="button secondary">View Profile</a>
|
||||
<button>Save Notes</button>
|
||||
</div>
|
||||
|
|
|
@ -90,4 +90,5 @@ class IdentityEdit(FormView):
|
|||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context["identity"] = self.identity
|
||||
context["page"] = self.request.GET.get("page")
|
||||
return context
|
||||
|
|
Ładowanie…
Reference in New Issue