From b719cce139b6ae7b4ca5a57e13dd4f1fa62c276a Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Mon, 11 Jun 2018 14:34:38 -0400 Subject: [PATCH] URL routes and stub view functions --- brutaldon/templates/main/user.html | 10 ++++++++++ brutaldon/urls.py | 3 +++ brutaldon/views.py | 11 +++++++++++ 3 files changed, 24 insertions(+) diff --git a/brutaldon/templates/main/user.html b/brutaldon/templates/main/user.html index 8dfca82..e5bc78e 100644 --- a/brutaldon/templates/main/user.html +++ b/brutaldon/templates/main/user.html @@ -28,6 +28,16 @@ Brutaldon - {{ timeline }} timelime
{{ user.note | relink_toot | strip_html | safe }}
+
+
+ Follow + View on home site +
+
+ Mute + Block +
+
diff --git a/brutaldon/urls.py b/brutaldon/urls.py index 30706ac..191c4cc 100644 --- a/brutaldon/urls.py +++ b/brutaldon/urls.py @@ -45,6 +45,9 @@ urlpatterns = [ path('fav/', views.fav, name='fav'), path('boost/', views.boost, name='boost'), path('delete/', views.delete, name='delete'), + path('follow/', views.follow, name='follow'), + path('block/', views.block, name='block'), + path('mute/', views.follow, name='mute'), path('search', views.search, name='search'), path('search_results', views.search_results, name='search_results'), path('', views.home), diff --git a/brutaldon/views.py b/brutaldon/views.py index 9942eff..c511b00 100644 --- a/brutaldon/views.py +++ b/brutaldon/views.py @@ -418,6 +418,17 @@ def delete(request, id): {"toot": toot, 'confirm_page': True, "fullbrutalism": fullbrutalism_p(request)}) +@never_cache +def follow(request, id): + pass + +@never_cache +def block(request, id): + pass + +@never_cache +def mute(request, id): + pass def search(request): return render(request, 'main/search.html',