Skip to content

Commit 8bbb54f

Browse files
committed
refactor(admin): change admin page
1 parent e3b0c2d commit 8bbb54f

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

src/main/webapp/WEB-INF/i18n/messages.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ home.create.new.post = Crear Art\u00edculo
3636
home.not.article.user.not.login.subtitle = No se han encontrado art\u00edculos
3737
home.not.article.user.not.login.text = Iniciar sesi\u00f3n para poder contribuir al blog.
3838
home.login = Iniciar Sesi\u00f3n
39+
###### Admin Page #######
40+
admin.home.title = Bienvenido al Admin {0}!
41+
admin.home.posts = En la secci\u00f3n "Art\u00edculos" podr\u00e1s ver los art\u00edculos que has creado, pudi\u00e9ndolos modificar o eliminar.
42+
admin.home.users = En la secci\u00f3n "Usuarios" podras editar los roles y deshabilitar cuentas de usuario que est\u00e9n haciendo un mal uso del sitio.
3943
##### About Page #######
4044
about.title = Acerca de este blog.
4145
about.subtitle = Apasionados de la programaci\u00f3n en general.
Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
<!DOCTYPE html>
2-
<html layout:decorator="admin/layout">
2+
<html xmlns="http://www.w3.org/1999/xhtml"
3+
xmlns:th="http://www.thymeleaf.org"
4+
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
5+
layout:decorator="admin/layout">
36
<head>
47
<title th:text="#{admin.home.title}">Admin</title>
58
</head>
69
<body>
7-
<div layout:fragment="content">
8-
<h1>Welcome to Admin</h1>
10+
<div layout:fragment="main-content">
11+
<div class="content-box-large">
12+
<div class="panel-heading">
13+
<div class="panel-title text-capitalize" th:text="#{admin.home.title(${#authentication.name})}">Welcome to Admin User!</div>
14+
</div>
15+
<div class="panel-body">
16+
<p th:text="#{admin.home.posts}">Post Section</p>
17+
<p sec:authorize="hasRole('BLOG_ADMIN')" th:text="#{admin.home.users}">Users Section</p>
18+
</div>
19+
</div>
920
</div>
1021
</body>
1122
</html>

0 commit comments

Comments
 (0)