Ignore:
Timestamp:
10/16/21 15:07:33 (3 years ago)
Author:
KostaFortumanov <kfortumanov@…>
Branches:
master
Children:
2d8c0e7
Parents:
7888b17
Message:

bug fix

Location:
src/main/resources/templates
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/main/resources/templates/post.html

    r7888b17 rb8a8d06  
    7777                Report
    7878            </button>
     79            <div id="error" class="text-danger" hidden>Donation error</div>
    7980
    8081            <!-- Modal -->
     
    197198</div>
    198199<script src="/js/bootstrap.min.js"></script>
     200<script>
     201    location.search
     202        .substr(1)
     203        .split("&")
     204        .forEach(function (item) {
     205            tmp = item.split("=");
     206            if (tmp[0] === "error") {
     207                document.getElementById("error").hidden = false;
     208            }
     209        });
     210</script>
    199211<script th:inline="javascript" th:unless="${notFound}" sec:authorize="isAuthenticated()">
    200212    /*<![CDATA[*/
  • src/main/resources/templates/reportPost.html

    r7888b17 rb8a8d06  
    7171
    7272                <div th:if="${report}">
    73                     <a class="btn btn-success" th:href="@{/moderator/dismiss(postid=${post.id})}">Dismiss</a>
     73                    <a class="btn btn-success" th:href="@{/moderator/dismiss(postid=${post.id})}">Dismiss reports</a>
    7474                    <button type="button" class="btn btn-danger" data-bs-toggle="modal"
    7575                            data-bs-target="#staticBackdrop">
  • src/main/resources/templates/upload.html

    r7888b17 rb8a8d06  
    1616<br/>
    1717<div class="row">
     18    <div th:if="${error}" class="text-danger">Error uploading post</div>
    1819    <div class="col-md-4" id="left">
    1920        <form th:action="@{/newPost}" method="post" id="myForm" enctype="multipart/form-data" class="row g-3">
Note: See TracChangeset for help on using the changeset viewer.