mirror of
https://github.com/boostorg/website-v2.git
synced 2026-01-19 04:42:17 +00:00
Remove leftover forum bits
This commit is contained in:
@@ -12,7 +12,7 @@ from versions.models import Version
|
||||
|
||||
class HomepageView(TemplateView):
|
||||
"""
|
||||
Our default homepage for Forum. We expect you to not use this view
|
||||
Our default homepage for temp-site. We expect you to not use this view
|
||||
after you start working on your project.
|
||||
"""
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
"""
|
||||
WSGI config for Forum.
|
||||
WSGI config for temp-site.
|
||||
"""
|
||||
|
||||
import os
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
{% endblock js %}
|
||||
|
||||
{% block body %}
|
||||
{# The forum content will go in this 'body' block #}
|
||||
{% endblock body %}
|
||||
|
||||
{% block extra_js %}
|
||||
|
||||
@@ -63,9 +63,6 @@
|
||||
{% block messages %}{% include "partials/messages.html" %}{% endblock messages %}
|
||||
</div>
|
||||
|
||||
{% comment %}body block is for use in forums{% endcomment %}
|
||||
{% block forum_body %}{% endblock %}
|
||||
|
||||
<div class="md:px-3 min-vh-110">
|
||||
{% block content_wrapper %}
|
||||
{% block subnav %}{% endblock %}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
{% extends "base.html" %}
|
||||
{% load static %}
|
||||
{% load i18n %}
|
||||
{% load forum_permission_tags %}
|
||||
|
||||
{% block title %}{{ MACHINA_FORUM_NAME|default:"Forum" }} — {% block sub_title %}{% endblock sub_title %}{% endblock title %}
|
||||
|
||||
{% block css %}
|
||||
{{ block.super }}
|
||||
<link rel="stylesheet" href="{% static 'css/machina.board_theme.vendor.min.css' %}" />
|
||||
<link rel="stylesheet" href="{% static 'css/machina.board_theme.min.css' %}" />
|
||||
{% endblock css %}
|
||||
|
||||
{% block forum_body %}
|
||||
|
||||
{# commented out because it's not in the designs #}
|
||||
{#{% block header %}#}
|
||||
{#<nav class="navbar navbar-expand-lg navbar-dark bg-primary">#}
|
||||
{# <a class="navbar-brand" href="{% url 'forum:index' %}">{% block brand %}{{ MACHINA_FORUM_NAME|default:"My forum" }}{% endblock %}</a>#}
|
||||
{# <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">#}
|
||||
{# <span class="navbar-toggler-icon"></span>#}
|
||||
{# </button>#}
|
||||
{# <div class="collapse navbar-collapse" id="navbarSupportedContent">#}
|
||||
{# {% block header_collapse %}#}
|
||||
{# <form class="my-2 ml-3 form-inline my-lg-0" role="search" action="{% url 'forum_search:search' %}">#}
|
||||
{# <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">#}
|
||||
{# <button class="my-2 btn btn-outline-light my-sm-0" type="submit">{% trans "Search" %}</button>#}
|
||||
{# </form>#}
|
||||
{# <div class="mr-auto navbar-nav">#}
|
||||
{# <a class="nav-item nav-link" href="{% url 'forum_search:search' %}">{% trans "Advanced search" %}</a>#}
|
||||
{# </div>#}
|
||||
{# {% endblock header_collapse %}#}
|
||||
{# </div>#}
|
||||
{#</nav>#}
|
||||
{#{% endblock header %}#}
|
||||
|
||||
<div class="container my-5" id="main_container">
|
||||
<div class="flex w-full">
|
||||
<div class="pl-11 w-1/2">
|
||||
{% block breadcrumb %}{% include "partials/breadcrumb.html" %}{% endblock breadcrumb %}
|
||||
</div>
|
||||
<div class="pr-11 w-1/2 text-right controls-link-wrapper">
|
||||
{% spaceless %}
|
||||
{% if not request.user.is_anonymous %}
|
||||
<a href="{% url 'forum_member:user_subscriptions' %}" class="text-sm uppercase"><img src="{% static 'img/icons/icon_subscription.svg' %}" class="inline mr-2" />{% trans "Subscriptions" %}</a>
|
||||
<a href="{% url 'forum_member:user_posts' request.user.id %}" class="ml-11 text-sm uppercase"><img src="{% static 'img/icons/icon_my_posts.svg' %}" class="inline mr-2" />{% trans "View my posts" %}</a>
|
||||
{% endif %}
|
||||
{% get_permission 'can_access_moderation_queue' request.user as can_access_moderation_queue %}
|
||||
{% if can_access_moderation_queue %}
|
||||
<a href="{% url 'forum_moderation:queue' %}" class="ml-11 text-sm uppercase"><img src="{% static 'img/icons/icon_gavel.svg' %}" class="inline mr-2" />{% trans "Moderation queue" %}</a>
|
||||
{% endif %}
|
||||
{% endspaceless %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock forum_body %}
|
||||
|
||||
{% block footer_js %}
|
||||
{{ block.super }}
|
||||
<script src="{% static 'js/machina.packages.min.js' %}" type="text/javascript" charset="utf-8"></script>
|
||||
<script src="{% static 'js/machina.min.js' %}" type="text/javascript" charset="utf-8"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
machina.init();
|
||||
{% block onbodyload %}{% endblock onbodyload %}
|
||||
});
|
||||
</script>
|
||||
{% endblock footer_js %}
|
||||
@@ -135,7 +135,7 @@
|
||||
<div class="py-5 px-4 my-4 bg-white rounded md:px-11 md:my-0 md:w-1/2 dark:bg-charcoal">
|
||||
<div class="flex justify-between items-center mb-6">
|
||||
<span class="inline py-1 px-3 w-auto text-sm uppercase rounded md:text-base text-green bg-green/10">Join the conversation</span>
|
||||
<span class="inline w-auto text-xs uppercase md:text-base text-orange"><a href="/forum/">Visit Forum ></a></span>
|
||||
<span class="inline w-auto text-xs uppercase md:text-base text-orange"></span>
|
||||
</div>
|
||||
<div class="space-y-8 divide-y divide-gray-200 dark:divide-slate">
|
||||
<div class="pt-6">
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
{% load forum_member_tags %}
|
||||
{% if profile.avatar %}
|
||||
<img class="avatar" src="{{ profile.avatar.url }}" alt="{{ profile.user|forum_member_display_name }}" />
|
||||
<img class="avatar" src="{{ profile.avatar.url }}" alt="{{ profile.user }}" />
|
||||
{% elif show_placeholder %}
|
||||
<span class="avatar empty">
|
||||
<i class="far fa-user fa-4x" ></i>
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
{% load i18n %}
|
||||
|
||||
<nav aria-label="breadcrumb">
|
||||
<ol class="inline-flex items-center space-x-2">
|
||||
<li class="breadcrumb-item"><a class="text-orange" href="{% url 'forum:index' %}"><i
|
||||
class="fas fa-home"> </i>{% trans "Forum index" %}</a></li>
|
||||
{% if forum %}
|
||||
{% for ancestor in forum.get_ancestors %}
|
||||
<svg class="flex-shrink-0 w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
|
||||
fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
<li class="breadcrumb-item"><a class="text-orange" href="{% url 'forum:forum' ancestor.slug ancestor.id %}">{{ ancestor.name }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
<svg class="flex-shrink-0 w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
|
||||
fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
<li class="breadcrumb-item"><a class="text-orange" href="{% url 'forum:forum' forum.slug forum.id %}">{{ forum.name }}</a></li>
|
||||
{% endif %}
|
||||
{% if topic %}
|
||||
<svg class="flex-shrink-0 w-5 h-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
|
||||
fill="currentColor" aria-hidden="true">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
<li class="breadcrumb-item"><a
|
||||
href="{% url 'forum_conversation:topic' forum.slug forum.id topic.slug topic.id %}">{{ topic.subject|truncatewords:4 }}</a></li>
|
||||
{% endif %}
|
||||
</ol>
|
||||
</nav>
|
||||
@@ -51,7 +51,7 @@ class CurrentUserAPIView(generics.RetrieveUpdateAPIView):
|
||||
class ProfileView(DetailView):
|
||||
"""
|
||||
ViewSet to show statistics about a user to include
|
||||
stats, badges, forum posts, reviews, etc.
|
||||
stats, badges, reviews, etc.
|
||||
"""
|
||||
|
||||
model = User
|
||||
|
||||
Reference in New Issue
Block a user