Make follows a top-level activity. (#94)
This commit is contained in:
parent
45b91e1a0e
commit
6ce05296b0
|
@ -11,7 +11,7 @@ class FollowsPage(TemplateView):
|
||||||
Shows followers/follows.
|
Shows followers/follows.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
template_name = "settings/follows.html"
|
template_name = "activities/follows.html"
|
||||||
|
|
||||||
def get_context_data(self):
|
def get_context_data(self):
|
||||||
# Gather all identities with a following relationship with us
|
# Gather all identities with a following relationship with us
|
|
@ -3,10 +3,10 @@ from django.contrib import admin as djadmin
|
||||||
from django.urls import path, re_path
|
from django.urls import path, re_path
|
||||||
from django.views.static import serve
|
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 core import views as core
|
||||||
from stator import views as stator
|
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 = [
|
urlpatterns = [
|
||||||
path("", core.homepage),
|
path("", core.homepage),
|
||||||
|
@ -19,6 +19,12 @@ urlpatterns = [
|
||||||
path("tags/<hashtag>/", timelines.Tag.as_view(), name="tag"),
|
path("tags/<hashtag>/", timelines.Tag.as_view(), name="tag"),
|
||||||
path("explore/", explore.Explore.as_view(), name="explore"),
|
path("explore/", explore.Explore.as_view(), name="explore"),
|
||||||
path("explore/tags/", explore.ExploreTag.as_view(), name="explore-tag"),
|
path("explore/tags/", explore.ExploreTag.as_view(), name="explore-tag"),
|
||||||
|
path(
|
||||||
|
"follows/",
|
||||||
|
follows.FollowsPage.as_view(),
|
||||||
|
name="follows",
|
||||||
|
),
|
||||||
|
# Settings views
|
||||||
path(
|
path(
|
||||||
"settings/",
|
"settings/",
|
||||||
settings.SettingsRoot.as_view(),
|
settings.SettingsRoot.as_view(),
|
||||||
|
@ -34,11 +40,6 @@ urlpatterns = [
|
||||||
settings.ProfilePage.as_view(),
|
settings.ProfilePage.as_view(),
|
||||||
name="settings_profile",
|
name="settings_profile",
|
||||||
),
|
),
|
||||||
path(
|
|
||||||
"settings/follows/",
|
|
||||||
follows.FollowsPage.as_view(),
|
|
||||||
name="settings_follows",
|
|
||||||
),
|
|
||||||
path(
|
path(
|
||||||
"settings/interface/",
|
"settings/interface/",
|
||||||
settings.InterfacePage.as_view(),
|
settings.InterfacePage.as_view(),
|
||||||
|
|
|
@ -18,6 +18,9 @@
|
||||||
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %} title="Federated">
|
<a href="{% url "federated" %}" {% if current_page == "federated" %}class="selected"{% endif %} title="Federated">
|
||||||
<i class="fa-solid fa-globe"></i> Federated
|
<i class="fa-solid fa-globe"></i> Federated
|
||||||
</a>
|
</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>
|
<h3></h3>
|
||||||
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %} title="Compose">
|
<a href="{% url "compose" %}" {% if top_section == "compose" %}class="selected"{% endif %} title="Compose">
|
||||||
<i class="fa-solid fa-feather"></i> Compose
|
<i class="fa-solid fa-feather"></i> Compose
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{% extends "settings/base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
{% block subtitle %}Follows{% endblock %}
|
{% block subtitle %}Follows{% endblock %}
|
||||||
|
|
|
@ -6,9 +6,6 @@
|
||||||
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %} title="Interface">
|
<a href="{% url "settings_interface" %}" {% if section == "interface" %}class="selected"{% endif %} title="Interface">
|
||||||
<i class="fa-solid fa-display"></i> Interface
|
<i class="fa-solid fa-display"></i> Interface
|
||||||
</a>
|
</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>
|
<h3>Account</h3>
|
||||||
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login & Security">
|
<a href="{% url "settings_security" %}" {% if section == "security" %}class="selected"{% endif %} title="Login & Security">
|
||||||
<i class="fa-solid fa-key"></i> Login & Security
|
<i class="fa-solid fa-key"></i> Login & Security
|
||||||
|
|
Loading…
Reference in New Issue