mirror of
https://gitlab.com/brutaldon/brutaldon.git
synced 2024-12-04 14:46:24 -05:00
URL routes and stub view functions
This commit is contained in:
parent
0ccd1e60e8
commit
b719cce139
@ -28,6 +28,16 @@ Brutaldon - {{ timeline }} timelime
|
||||
<div class="content">
|
||||
{{ user.note | relink_toot | strip_html | safe }}
|
||||
</div>
|
||||
<div class="level">
|
||||
<div class="level-left">
|
||||
<span class="level-item">Follow</span>
|
||||
<span class="level-item">View on home site</span>
|
||||
</div>
|
||||
<div class="level-right">
|
||||
<span class="level-item">Mute</span>
|
||||
<span class="level-item">Block</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -45,6 +45,9 @@ urlpatterns = [
|
||||
path('fav/<int:id>', views.fav, name='fav'),
|
||||
path('boost/<int:id>', views.boost, name='boost'),
|
||||
path('delete/<int:id>', views.delete, name='delete'),
|
||||
path('follow/<int:id>', views.follow, name='follow'),
|
||||
path('block/<int:id>', views.block, name='block'),
|
||||
path('mute/<int:id>', views.follow, name='mute'),
|
||||
path('search', views.search, name='search'),
|
||||
path('search_results', views.search_results, name='search_results'),
|
||||
path('', views.home),
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user