#7 -- add organizers page

This commit is contained in:
Anton Romanov 2022-03-17 16:55:42 +04:00
parent 812b9c435d
commit 72b9dc2a90
5 changed files with 34 additions and 1 deletions

Binary file not shown.

View File

@ -24,6 +24,7 @@ public class MvcConfiguration implements WebMvcConfigurer {
registry.addViewController("/loginError");
registry.addViewController("/index");
registry.addViewController("/admin");
registry.addViewController("/organizers");
registry.addViewController("/docs");
registry.addViewController("/editNews");
}

View File

@ -45,7 +45,7 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
log.debug("Security enabled");
http.authorizeRequests()
.antMatchers("/").permitAll()
.antMatchers("/login", "/index", "/news/**", "/meetings/**", "/files/**", "/docs/**", "/webjars/**", "/h2-console/*", "/h2-console").permitAll()
.antMatchers("/login", "/index", "/news/**", "/meetings/**", "/files/**", "/docs/**", "/organizers", "/webjars/**", "/h2-console/*", "/h2-console").permitAll()
.antMatchers("/swagger-ui.html").hasAuthority(UserRoleConstants.ADMIN)
.anyRequest().authenticated()
.and()

View File

@ -38,6 +38,9 @@
<li class="nav-item">
<a class="nav-link" href="/meetings/meetings">Заседания</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/organizers">Организаторы</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/docs">Документы</a>
</li>

View File

@ -0,0 +1,29 @@
<!--
~ Copyright (C) 2021 Anton Romanov - All Rights Reserved
~ You may use, distribute and modify this code, please write to: romanov73@gmail.com.
~
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{default}">
<div class="container" layout:fragment="content">
<h3>Состав организаторов семинара</h3>
<ul>
<li>
Ярушкина Н.Г., профессор, д.т.н., профессор
</li>
<li>
Мошкин В.С., доцент, к.т.н.
</li>
<li>
Романов А.А., зав. кафедрой, доцент, к.т.н., доцент
</li>
<li>
Гуськов Г.Ю., доцент, к.т.н.
</li>
<li>
Филиппов А.А., доцент, к.т.н.
</li>
</ul>
</div>
</html>