Skip to content

Commit e0f5e09

Browse files
committed
style: update pages
1 parent f82afc7 commit e0f5e09

File tree

8 files changed

+9
-8
lines changed

8 files changed

+9
-8
lines changed

src/main/resources/templates/form-news-page.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 th:text="${subtitle}"></h2>
3838
<textarea th:field="*{body}" id="content" name="content" rows="10" class="input-item" required></textarea>
3939
</div>
4040
<p class="input-item-annotation">
41-
Ingrese como máximo 1000 caracteres
41+
Ingrese como máximo 2500 caracteres
4242
</p>
4343
</div>
4444
</div>
@@ -71,7 +71,7 @@ <h2 th:text="${subtitle}"></h2>
7171
</section>
7272
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
7373

74-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
74+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
7575
<script th:src="@{/scripts/show-image.js}"></script>
7676
</body>
7777
</html>

src/main/resources/templates/fragments/fragment-layout.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,6 @@
4141
© <span th:text="${T(java.time.LocalDate).now().year}"></span> Learning and Programming | Coded by <a href="https://github.com/misicode/Globant-EggNews" target="_blank" rel="noreferrer">MISICODE</a>
4242
</p>
4343
</footer>
44+
<script th:fragment="menu-script" sec:authorize="isAuthenticated()" th:src="@{/scripts/dropdown-menu.js}"></script>
4445
</body>
4546
</html>

src/main/resources/templates/home-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ <h3 th:text="${news.title}"></h3>
3434
</section>
3535
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
3636

37-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
37+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
3838
</body>
3939
</html>

src/main/resources/templates/my-news-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ <h2>Mis Noticias</h2>
6969
</section>
7070
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
7171

72-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
72+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
7373
</body>
7474
</html>

src/main/resources/templates/news-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ <h3 th:text="${news.title}"></h3>
2525
</section>
2626
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
2727

28-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
28+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
2929
</body>
3030
</html>

src/main/resources/templates/profile-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ <h2>Mi Perfil</h2>
6565
</section>
6666
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
6767

68-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
68+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
6969
</body>
7070
</html>

src/main/resources/templates/signin-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ <h2>BIENVENIDO</h2>
4646
</section>
4747
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
4848

49-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
49+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
5050
</body>
5151
</html>

src/main/resources/templates/signup-page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@ <h2>BIENVENIDO</h2>
6262
</section>
6363
<footer th:replace="~{fragments/fragment-layout :: footer}"></footer>
6464

65-
<script th:src="@{/scripts/dropdown-menu.js}"></script>
65+
<script th:replace="~{fragments/fragment-layout :: menu-script}"></script>
6666
</body>
6767
</html>

0 commit comments

Comments
 (0)