Make follows a top-level activity. (#94)

This commit is contained in:
Tyler Kennedy 2022-12-04 11:41:41 -05:00 committed by GitHub
parent 45b91e1a0e
commit 6ce05296b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 12 deletions

View file

@ -11,7 +11,7 @@ class FollowsPage(TemplateView):
Shows followers/follows.
"""
template_name = "settings/follows.html"
template_name = "activities/follows.html"
def get_context_data(self):
# Gather all identities with a following relationship with us

View file

@ -3,10 +3,10 @@ from django.contrib import admin as djadmin
from django.urls import path, re_path
from django.views.static import serve
from activities.views import compose, explore, posts, search, timelines
from activities.views import compose, explore, follows, posts, search, timelines
from core import views as core
from stator import views as stator
from users.views import activitypub, admin, auth, follows, identity, settings
from users.views import activitypub, admin, auth, identity, settings
urlpatterns = [
path("", core.homepage),
@ -19,6 +19,12 @@ urlpatterns = [
path("tags/<hashtag>/", timelines.Tag.as_view(), name="tag"),
path("explore/", explore.Explore.as_view(), name="explore"),
path("explore/tags/", explore.ExploreTag.as_view(), name="explore-tag"),
path(
"follows/",
follows.FollowsPage.as_view(),
name="follows",
),
# Settings views
path(
"settings/",
settings.SettingsRoot.as_view(),
@ -34,11 +40,6 @@ urlpatterns = [
settings.ProfilePage.as_view(),
name="settings_profile",
),
path(
"settings/follows/",
follows.FollowsPage.as_view(),
name="settings_follows",
),
path(
"settings/interface/",
settings.InterfacePage.as_view(),

View file

@ -18,6 +18,9 @@
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %} title="Federated">
<i class="fa-solid fa-globe"></i> Federated
</a>
<a href="{% url "follows" %}" {% if section == "follows" %}class="selected"{% endif %} title="Follows">
<i class="fa-solid fa-arrow-right-arrow-left"></i> Follows
</a>
<h3></h3>
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %} title="Compose">
<i class="fa-solid fa-feather"></i> Compose

View file

@ -1,4 +1,4 @@
{% extends "settings/base.html" %}
{% extends "base.html" %}
{% block subtitle %}Follows{% endblock %}

View file

@ -6,9 +6,6 @@
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %} title="Interface">
<i class="fa-solid fa-display"></i> Interface
</a>
<a href="{% url "settings_follows" %}" {% if section == "follows" %}class="selected"{% endif %} title="Follows">
<i class="fa-solid fa-arrow-right-arrow-left"></i> Follows
</a>
<h3>Account</h3>
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login &amp; Security">
<i class="fa-solid fa-key"></i> Login &amp; Security