Delete unuseful html pages
This commit is contained in:
1 parent
e46e304975
commit
2064ed5abc
16 files changed
-300
No files matched your search
@@ -1,17 +0,0 @@
|
|||||||
package site.easystartup.web.controller;
|
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
|
|
||||||
@Controller
|
|
||||||
public class MainController {
|
|
||||||
@GetMapping("/")
|
|
||||||
public String home() {
|
|
||||||
return "home";
|
|
||||||
}
|
|
||||||
|
|
||||||
@GetMapping("/about")
|
|
||||||
public String about() {
|
|
||||||
return "about";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>403</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>You have hot permissions for this!</p>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>О нас</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<p>О нас</p>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Title</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,17 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Создание обсуждения</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Создание обсуждения</p>
|
|
||||||
<form th:action="'/forum/' + ${topic_id} '/edit'" method="post">
|
|
||||||
<p>Название</p>
|
|
||||||
<input type="text" name="title">
|
|
||||||
<input type="submit" th:text="Отправить">
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,21 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>403</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Создание обсуждения</p>
|
|
||||||
<form th:action="'/forum/discussion/' + ${discussion.id} '/create'" method="post">
|
|
||||||
<p>Название</p>
|
|
||||||
<input type="text" th:value="${discussion.title}" name="title">
|
|
||||||
<label>
|
|
||||||
<p>Статус обсуждения</p>
|
|
||||||
<input name="type" type="radio" value="OPEN" th:text="Открыто" checked>
|
|
||||||
<input name="type" type="radio" value="CLOSED" th:text="Закрыто">
|
|
||||||
</label>
|
|
||||||
<input type="submit" th:text="Отправить">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Новое сообщение</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<p>Отправка сообщения</p>
|
|
||||||
<form th:action="'/forum/discussion/' + ${discussion_id} '/add'" method="post">
|
|
||||||
<p>Сообщение</p>
|
|
||||||
<input type="text" name="title">
|
|
||||||
<input type="submit" th:text="Отправить">
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Whitespace-only changes.
@@ -1,21 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Discussion</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div>
|
|
||||||
<h1 th:text="${discussion.title} + ' (созданно ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
<p th:text="'Автор: ' + ${discussion.author}"/>
|
|
||||||
</div>
|
|
||||||
<h2>Сообщения</h2>
|
|
||||||
<div th:each="el : ${messages}">
|
|
||||||
<h2 th:text="${el.text}"/>
|
|
||||||
<p th:text="'Автор: ' + ${el.author}"/>
|
|
||||||
<p th:text="'Дата создания: ' + ${#dates.format(el.date, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
<p th:text="'Последнее обновление: ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Форум</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<p>Форум</p>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Главная</title>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<p>Главня страница</p>
|
|
||||||
<form th:action="@{/logout}" method="post"><button sec:authorize="isAuthenticated()" type="submit">Выйти</button></form>
|
|
||||||
<a sec:authorize="isAnonymous()" href="/login">Вход</a>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Вход</title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<p>Мои обсуждения</p>
|
|
||||||
<div th:each="el : ${discussions}">
|
|
||||||
<h2 th:text="${el.title}"/>
|
|
||||||
<p th:text="'Автор: ' + ${el.author}"/>
|
|
||||||
<p th:text="'Дата создания: ' + ${#dates.format(el.date, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
<p th:text="'Последнее обновление: ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</main>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
<title>Title</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,28 +0,0 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title th:text="'Обсуждение. Страница' + ${page_index}"></title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<h2>Сообщения</h2>
|
|
||||||
<div th:each="el : ${discussions}">
|
|
||||||
<h2 th:text="${el.title}"/>
|
|
||||||
<p th:text="'Автор: ' + ${el.author}"/>
|
|
||||||
<p th:text="'Дата создания: ' + ${#dates.format(el.date, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
<p th:text="'Последнее обновление: ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
|
|
||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Обсуждение</title>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
<h2>Закреплённые сообщения</h2>
|
|
||||||
<div th:each="el : ${pinned_discussions}">
|
|
||||||
<h2 th:text="${el.title}"/>
|
|
||||||
<p th:text="'Автор: ' + ${el.author}"/>
|
|
||||||
<p th:text="'Дата создания: ' + ${#dates.format(el.date, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
<p th:text="'Последнее обновление: ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
</div>
|
|
||||||
<h2>Остальные сообщения</h2>
|
|
||||||
<div th:each="el : ${discussions}">
|
|
||||||
<h2 th:text="${el.title}"/>
|
|
||||||
<p th:text="'Автор: ' + ${el.author}"/>
|
|
||||||
<p th:text="'Дата создания: ' + ${#dates.format(el.date, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
<p th:text="'Последнее обновление: ' + ${#dates.format(el.last_update, 'hh:mm dd MMM yyyy')}"/>
|
|
||||||
</div>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"
|
|
||||||
xmlns:sec="https://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<title>Новая тема</title>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<main>
|
|
||||||
|
|
||||||
<form th:action="/forum/new" method="post">
|
|
||||||
<h1>Пожалуйста, введите данные новой темы</h1>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
<input type="text" name="title" id="title" size="3" maxlength="15" required placeholder="Новая тема">
|
|
||||||
<label for="title">Титул</label>
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<input type="text" name="description" id="description" placeholder="Описание">
|
|
||||||
<label for="description">Описание</label>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<button type="submit">Создать тему</button>
|
|
||||||
|
|
||||||
<input type="hidden" name="_csrf" th:value="${_csrf.token}">
|
|
||||||
<p>© 2022</p>
|
|
||||||
</form>
|
|
||||||
</main>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Reference in new issue
Block a user