Ignore:
Timestamp:
01/05/22 21:51:57 (3 years ago)
Author:
NikolaCenevski <cenevskinikola@…>
Branches:
master
Children:
a64f926
Parents:
b8dc761
Message:

part 3

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

Legend:

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

    rb8dc761 r6fa3d09  
    5555                            <h4 th:text="${post.title}" style="height: 60px"></h4>
    5656                            <p class="card-text text-truncate" style="height: 45px" th:text="${post.description}"></p>
    57                             <span th:if="${post.riskFactor < 101}" class="" style="color: black; margin-left: 62%;">Chance: <small th:text="${post.riskFactor}"></small></span>
    58                             <span th:unless="${post.riskFactor < 101}" style="color: black; margin-left: 62%;">Chance: unavailable</span>
     57                            <span th:if="${post.riskFactor == 100}" class="" style="color: black; margin-left: 62%;">Chance: <small th:text="${post.riskFactor+'+'}"></small></span>
     58                            <span th:if="${post.riskFactor < 100}" class="" style="color: black; margin-left: 62%;">Chance: <small th:text="${post.riskFactor}"></small></span>
     59                            <span th:if="${post.riskFactor == 101}" style="color: black; margin-left: 46%;">Chance: too early to calculate</span>
     60                            <span th:if="${post.riskFactor == 102}" style="color: black; margin-left: 61%;">Donation completed!</span>
    5961                            <div class="d-flex justify-content-between align-items-center">
    6062                                <div class="btn-group">
  • src/main/resources/templates/login.html

    rb8dc761 r6fa3d09  
    2727        <button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button>
    2828    </form>
    29     <a th:href="@{/oauth2/authorization/google}" class="btn btn-primary">Continue with google</a>
    30     <a th:href="@{/oauth2/authorization/facebook}" class="btn btn-primary">Continue with facebook</a>
     29    <a th:href="@{/oauth2/authorization/google}" class="btn btn-warning" style="width:200px; margin-top:20px;">Continue with Google</a>
     30    <a th:href="@{/oauth2/authorization/facebook}" class="btn btn-info"style="width:200px; margin-top:20px;">Continue with Facebook</a>
    3131    <p th:if="${param.error != null}" class="text-danger">Incorrect username or password</p>
    3232    <p th:if="${successValidation}" class="text-success">Account validated</p>
  • src/main/resources/templates/post.html

    rb8dc761 r6fa3d09  
    5353            <h5>Date due:</h5>
    5454            <p th:text="${post.dateDue}"></p>
     55            <h5>Chance:</h5>
     56            <p th:if="${post.riskFactor<100}" th:text="${post.riskFactor}"></p>
     57            <p th:if="${post.riskFactor==100}" th:text="${post.riskFactor+'+'}"></p>
     58            <p th:if="${post.riskFactor==101}">too early to calculate</p>
     59            <p th:if="${post.riskFactor==102}">Donation completed!</p>
    5560            <h5>Bank account:</h5>
    5661            <p th:text="${post.bankAccount}"></p>
Note: See TracChangeset for help on using the changeset viewer.