From e3d5e4e595e38a9cc6c0f9877a63413807bfa436 Mon Sep 17 00:00:00 2001 From: Anton Romanov Date: Thu, 10 Mar 2022 10:14:42 +0400 Subject: [PATCH] #3 -- fix buttons visibility --- data/db.mv.db | Bin 49152 -> 45056 bytes .../configuration/TemplateConfiguration.java | 7 +++---- src/main/resources/templates/default.html | 11 +++++++++-- src/main/resources/templates/index.html | 8 ++++---- 4 files changed, 16 insertions(+), 10 deletions(-) diff --git a/data/db.mv.db b/data/db.mv.db index 185885d226a55b3495ff230c9d3cfce300bdcf45..07fbdd344e7fa5609578eaf31df93e107f926799 100644 GIT binary patch literal 45056 zcmeHQYj7Labp~ldkts_S9ls>m?lt0v9tgas$0Q@sGEg5fn%kFr_Ehn9ntsDkG9j`vo=+xWe8o5FL=;?w-N8cG4 zj?B&P+dWbndgZprWb~EWo@T)N2Ztu3?;m^`g&rLJhv;x*-|k^nWRBh7^*kYXd1TM+ zk)ff;@NeS&3SuU7_BYA?n(S|C7k!=*mo$em{9^G-mS1dsDf5fNFD}3E)_Lu;#-3$(BN>Zz zW3#_y_SfkdllJ`~!G7K9V}H$Cbx(u$TAbdUVcgeLp{VFmC~PSdX)Y92B@l|NYh}!M zr`~Dd^azs?O&4IUeNG-6(cM69fJq=Xzvts84yQl@sdy$CR-59Nw5k$8*GJHy7+NXI z@uk*Ir45PEHW4f<2nGan1Ob5>n?G9;FuQ(MWjFzQXI0tiB_Jjlr>9E5szN|V!S4@! z0=fb}YrFWRlUls)KHDD8ipg(CGG_SfH>#FT#&WV;sqBo;u7c*PKAKg5X10&dhV7`L z2;ox{R5Ar#Gh8utCaQYUN0#&4a!dtTXG1AeiC9&zyNBw5@y3cK5eh~_j7LbA*E1O9HWwApRvtfVy}gU!GSAw%xc|x-iK}sdM`E9 zp!cG_JjS)IeNo>URG+^$2I42)55$l6Zw)-fr7Hh1U_YY!XJy zPQB8YZY(AAzSeB5+FPI>U0c^4P`H)st6$+S`B?jhB3|-=ru%CSr_zzg@GtIsHS$=b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X1CY3N{ zFvsV3Cg3&S?UpkEGVJBkGZBy(VCg3?5fDu11lFm4zGR4;@d=$fnKSg)d~n;bf1;wQ z*b{YHQBPE8M|-@Z?N3JJ2PZ44CcYbq$%<~X)>>?B#S;Swa;YO;@uB^H?f-uk2B?}w hjetf#BcKsD5(K3GANb#a|8EEWe=-OE|0v@B{|}3i4^037 diff --git a/src/main/java/ru/ulstu/configuration/TemplateConfiguration.java b/src/main/java/ru/ulstu/configuration/TemplateConfiguration.java index ca7591b..f9ab6a7 100644 --- a/src/main/java/ru/ulstu/configuration/TemplateConfiguration.java +++ b/src/main/java/ru/ulstu/configuration/TemplateConfiguration.java @@ -7,11 +7,9 @@ package ru.ulstu.configuration; import nz.net.ultraq.thymeleaf.LayoutDialect; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.context.MessageSource; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.context.support.ReloadableResourceBundleMessageSource; +import org.thymeleaf.extras.springsecurity5.dialect.SpringSecurityDialect; import org.thymeleaf.spring5.SpringTemplateEngine; import org.thymeleaf.templateresolver.ITemplateResolver; @@ -19,10 +17,11 @@ import org.thymeleaf.templateresolver.ITemplateResolver; public class TemplateConfiguration { @Bean - public SpringTemplateEngine templateEngine(ITemplateResolver templateResolver) { + public SpringTemplateEngine templateEngine(ITemplateResolver templateResolver, SpringSecurityDialect sec) { final SpringTemplateEngine templateEngine = new SpringTemplateEngine(); templateEngine.addTemplateResolver(templateResolver); templateEngine.addDialect(new LayoutDialect()); + templateEngine.addDialect(sec); return templateEngine; } } diff --git a/src/main/resources/templates/default.html b/src/main/resources/templates/default.html index 819bd2a..5d978bd 100644 --- a/src/main/resources/templates/default.html +++ b/src/main/resources/templates/default.html @@ -5,8 +5,9 @@ --> - + app-name @@ -43,6 +44,12 @@ +
  • + + +
  • diff --git a/src/main/resources/templates/index.html b/src/main/resources/templates/index.html index 4b18b01..ec7f651 100644 --- a/src/main/resources/templates/index.html +++ b/src/main/resources/templates/index.html @@ -5,9 +5,9 @@ --> - +
    @@ -19,7 +19,7 @@
    -
    +