mirror of
https://github.com/Mistake35/Cedar-Django.git
synced 2026-07-17 16:11:14 +10:00
CSS changes, stupid ass typo fixed, ban history is sorted properly.
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
{% endif %}
|
||||
{% if post.creator.banned %}
|
||||
<div class="hidden-content"><p>Content hidden because {{ post.creator.username }} was banned. </p>
|
||||
{% if post.creator.active_ban %}
|
||||
{% if post.creator.active_ban.reason %}
|
||||
<p>Reason: {{post.creator.active_ban.reason }}
|
||||
{% endif %}
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
{% endif %}
|
||||
{% if comment.creator.banned %}
|
||||
<div class="hidden-content"><p>Content hidden because {{ comment.creator.username }} was banned. </p>
|
||||
{% if comment.creator.active_ban %}
|
||||
{% if comment.creator.active_ban.reason %}
|
||||
<p>Reason: {{comment.creator.active_ban.reason }}
|
||||
{% endif %}
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
{% endif %}
|
||||
{% if post.creator.banned %}
|
||||
<div class="hidden-content"><p>Content hidden because {{ post.creator.username }} was banned. </p>
|
||||
{% if post.creator.active_ban %}
|
||||
{% if post.creator.active_ban.reason %}
|
||||
<p>Reason: {{post.creator.active_ban.reason }}
|
||||
{% endif %}
|
||||
<button type="button" class="hidden-content-button">View Anyway</button>
|
||||
|
||||
@@ -42,7 +42,7 @@ urlpatterns = [
|
||||
url(r'users/'+ username +'/tools$', views.user_tools, name='user-tools'),
|
||||
url(r'users/'+ username +'/tools/meta$', views.user_tools_meta, name='user-tools-meta'),
|
||||
url(r'users/'+ username +'/tools/warn$', views.user_tools_warnings, name='user-tools-warnings'),
|
||||
url(r'users/'+ username +'/tools/ban$', views.user_tools_bams, name='user-tools-bans'),
|
||||
url(r'users/'+ username +'/tools/ban$', views.user_tools_bans, name='user-tools-bans'),
|
||||
url(r'users/'+ username +'/block$', views.user_addblock, name='user-addblock'),
|
||||
url(r'users/'+ username +'/block_rm$', views.user_rmblock, name='user-rmblock'),
|
||||
url(r'my_blacklist$', views.user_blocklist, name='block-list'),
|
||||
|
||||
@@ -1729,7 +1729,7 @@ def user_tools_warnings(request, username):
|
||||
warning.save()
|
||||
return redirect('main:user-view', user)
|
||||
unread_warnings = Notification.objects.filter(type=5, to=user, read=False)[:3]
|
||||
all_warnings = Warning.objects.filter(to=user)[:8]
|
||||
all_warnings = Warning.objects.filter(to=user).order_by('-id')[:8]
|
||||
form = Give_warning_form()
|
||||
return render(request, 'closedverse_main/man/manage_warnings.html', {
|
||||
'user': user,
|
||||
@@ -1740,7 +1740,7 @@ def user_tools_warnings(request, username):
|
||||
})
|
||||
|
||||
@login_required
|
||||
def user_tools_bams(request, username):
|
||||
def user_tools_bans(request, username):
|
||||
user = get_object_or_404(User, username__iexact=username)
|
||||
profile = user.profile()
|
||||
profile.setup(request)
|
||||
|
||||
Reference in New Issue
Block a user