kopia lustrzana https://github.com/jointakahe/takahe
pass page index to hashtags edit
rodzic
ae11f6e987
commit
e3723ad6f8
|
@ -38,7 +38,7 @@
|
|||
</div>
|
||||
</fieldset>
|
||||
<div class="buttons">
|
||||
<a href="{{ hashtag.urls.admin }}" class="button secondary left">Back</a>
|
||||
<a href="{{ hashtag.urls.admin }}?page={{ page }}" class="button secondary left">Back</a>
|
||||
<a href="{{ hashtag.urls.timeline }}" class="button secondary">View Posts</a>
|
||||
<button>Save</button>
|
||||
</div>
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
{% for hashtag in page_obj %}
|
||||
<tr>
|
||||
<td class="icon">
|
||||
<a href="{{ hashtag.urls.admin_edit }}" class="overlay"></a>
|
||||
<a href="{{ hashtag.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
||||
<i class="fa-solid fa-hashtag"></i>
|
||||
</td>
|
||||
<td class="name">
|
||||
<a href="{{ hashtag.urls.admin_edit }}" class="overlay"></a>
|
||||
<a href="{{ hashtag.urls.admin_edit }}?page={{ page_obj.number }}" class="overlay"></a>
|
||||
{{ hashtag.display_name }}
|
||||
<small>{% if hashtag.public %}Public{% elif hashtag.public is None %}Unreviewed{% else %}Private{% endif %}</small>
|
||||
</td>
|
||||
|
|
|
@ -64,6 +64,7 @@ class HashtagEdit(FormView):
|
|||
def get_context_data(self, *args, **kwargs):
|
||||
context = super().get_context_data(*args, **kwargs)
|
||||
context["hashtag"] = self.hashtag
|
||||
context["page"] = self.request.GET.get("page")
|
||||
return context
|
||||
|
||||
def form_valid(self, form):
|
||||
|
|
Ładowanie…
Reference in New Issue