kopia lustrzana https://github.com/jointakahe/takahe
pass page index to report view page
rodzic
fe1c22c675
commit
38aa65399e
|
@ -77,7 +77,7 @@
|
|||
</table>
|
||||
</fieldset>
|
||||
<div class="buttons">
|
||||
<a href="{{ report.urls.admin }}" class="button secondary left">Back</a>
|
||||
<a href="{{ report.urls.admin }}?page={{ page }}" class="button secondary left">Back</a>
|
||||
<a href="{{ report.subject_identity.urls.view }}" class="button secondary">View Profile</a>
|
||||
<a href="{{ report.subject_identity.urls.admin_edit }}" class="button secondary">Identity Admin</a>
|
||||
<button>Save Notes</button>
|
||||
|
|
|
@ -15,11 +15,11 @@
|
|||
{% for report in page_obj %}
|
||||
<tr>
|
||||
<td class="icon">
|
||||
<a href="{{ report.urls.admin_view }}" class="overlay"></a>
|
||||
<a href="{{ report.urls.admin_view }}?page={{ page_obj.number }}" class="overlay"></a>
|
||||
<img src="{{ report.subject_identity.local_icon_url.relative }}" class="icon" alt="Avatar for {{ report.subject_identity.name_or_handle }}">
|
||||
</td>
|
||||
<td class="name">
|
||||
<a href="{{ report.urls.admin_view }}" class="overlay"></a>
|
||||
<a href="{{ report.urls.admin_view }}?page={{ page_obj.number }}" class="overlay"></a>
|
||||
{{ report.subject_identity.html_name_or_handle }}
|
||||
{% if report.subject_post %}
|
||||
<small>
|
||||
|
|
|
@ -77,4 +77,5 @@ class ReportView(FormView):
|
|||
def get_context_data(self, **kwargs):
|
||||
context = super().get_context_data(**kwargs)
|
||||
context["report"] = self.report
|
||||
context["page"] = self.request.GET.get("page")
|
||||
return context
|
||||
|
|
Ładowanie…
Reference in New Issue