Show More
@@ -7,6 +7,9 b'' | |||
|
7 | 7 | <div class="post-info"> |
|
8 | 8 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> |
|
9 | 9 | <span class="title">{{ post.title }}</span> |
|
10 | {% if perms.boards.change_post %} | |
|
11 | <a href="{% url 'feed' %}?ip={{ post.poster_ip }}">*</a> | |
|
12 | {% endif %} | |
|
10 | 13 | <span class="pub_time" |
|
11 | 14 | {% if perms.boards.change_post %} |
|
12 | 15 | style="border-bottom: solid 2px #{{ post.get_ip_color }};" title="{{ post.poster_ip }}" |
@@ -26,6 +26,7 b' class FeedView(PostMixin, BaseBoardView)' | |||
|
26 | 26 | page = request.GET.get('page', DEFAULT_PAGE) |
|
27 | 27 | tripcode = request.GET.get('tripcode', None) |
|
28 | 28 | favorites = 'favorites' in request.GET |
|
29 | ip = request.GET.get('ip', None) | |
|
29 | 30 | |
|
30 | 31 | params = self.get_context_data(request=request) |
|
31 | 32 | |
@@ -40,6 +41,8 b' class FeedView(PostMixin, BaseBoardView)' | |||
|
40 | 41 | fav_thread_ops = Post.objects.filter(id__in=settings_manager.get_fav_threads().keys()) |
|
41 | 42 | fav_threads = [op.get_thread() for op in fav_thread_ops] |
|
42 | 43 | posts = posts.filter(threads__in=fav_threads) |
|
44 | if ip and request.user.has_perm('post_delete'): | |
|
45 | posts = posts.filter(poster_ip=ip) | |
|
43 | 46 | |
|
44 | 47 | paginator = get_paginator(posts, POSTS_PER_PAGE) |
|
45 | 48 | paginator.current_page = int(page) |
General Comments 0
You need to be logged in to leave comments.
Login now