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