- Добавил возможность подписаться на пользователя и отписаться от него.
- Добавил вывод списка подписчиков/подписок. https://www.youtube.com/watch?v=JpF0MwdJzO4&list=PLU2ftbIeotGpAYRP9Iv2KLIwK36-o_qYk&index=19
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<#include "security.ftl">
|
||||
<#macro login path isRegistrationForm=false>
|
||||
<form action="${path}" method="post" xmlns="http://www.w3.org/1999/html">
|
||||
<div class="row mb-3">
|
||||
@@ -74,6 +75,6 @@
|
||||
<#macro logout>
|
||||
<form action="/logout" method="post">
|
||||
<input type="hidden" name="_csrf" value="${_csrf.token}"/>
|
||||
<button type="submit" class="btn btn-primary">Sign Out</button>
|
||||
<button class="btn btn-primary" type="submit"><#if user??>Sign Out<#else>Log in</#if></button>
|
||||
</form>
|
||||
</#macro>
|
||||
Reference in New Issue
Block a user