Ignore:
Timestamp:
09/04/21 11:14:25 (3 years ago)
Author:
NikolaCenevski <cenevskinikola@…>
Branches:
master
Children:
ab49338
Parents:
194776a
Message:

Dodadeno posts to be approved

Location:
src/main/resources/templates
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/common/navbar.html

    r194776a r5306751  
    99    <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
    1010        <div class="container-fluid">
    11             <a class="navbar-brand" href="#">
    12                 <img th:src="@{image/charity.png}" class="bi me-2" width="40" height="32" />
     11            <a class="navbar-brand" th:href="@{/}">
     12                <img th:src="@{/image/charity.png}" class="bi me-2" width="40" height="32" />
    1313                <span class="fs-4">Charitable</span>
    1414            </a>
     
    2020                <ul class="navbar-nav me-auto mb-2 mb-md-0">
    2121                    <li class="nav-item">
    22                         <a th:href="@{/}" class="nav-link px-2 text-white">Home</a>
     22                        <a sec:authorize="isAnonymous() or hasAuthority('USER')" th:href="@{/}" class="nav-link px-2 text-white">Home</a>
    2323                    </li>
    2424                    <li class="nav-item">
    25                         <a th:href="@{/album?page=1}" class="nav-link px-2 text-white">Posts</a>
     25                        <a sec:authorize="isAnonymous() or hasAuthority('USER')" th:href="@{/album?page=1}" class="nav-link px-2 text-white">Posts</a>
     26                        <a sec:authorize="hasAuthority('MODERATOR')" th:href="@{/moderator/approval}" class="nav-link px-2 text-white">Posts for approval</a>
    2627                    </li>
    2728                    <li class="nav-item">
    28                         <a th:href="@{/upload}" class="nav-link px-2 text-white">Upload</a>
     29                        <a sec:authorize="hasAuthority('USER')" th:href="@{/upload}" class="nav-link px-2 text-white">Upload</a>
     30                        <a sec:authorize="hasAuthority('MODERATOR')" th:href="@{/moderator/report}" class="nav-link px-2 text-white">Reported posts</a>
    2931                    </li>
    3032                </ul>
Note: See TracChangeset for help on using the changeset viewer.