Changeset b8dc761 for src/main/resources
- Timestamp:
- 01/05/22 15:57:29 (3 years ago)
- Branches:
- master
- Children:
- 6fa3d09
- Parents:
- 881a233
- Location:
- src/main/resources
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/resources/application.properties
r881a233 rb8dc761 19 19 20 20 server.port=9091 21 22 spring.security.oauth2.client.registration.google.client-id=365912873832-mqicpsq1fbbi8e01ghslpulgblkngk3l.apps.googleusercontent.com 23 spring.security.oauth2.client.registration.google.client-secret=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 24 spring.security.oauth2.client.registration.google.scope=profile,email 25 26 spring.security.oauth2.client.registration.facebook.client-id=429047632308553 27 spring.security.oauth2.client.registration.facebook.client-secret=c13280b6c116663c5bdd85c5b7a986e1 28 spring.security.oauth2.client.registration.facebook.scope=public_profile,email -
src/main/resources/templates/album.html
r881a233 rb8dc761 1 1 <!DOCTYPE html> 2 <html lang="en" xmlns :th="http://www.w3.org/1999/xhtml">2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="https://www.thymeleaf.org"> 3 3 <head> 4 4 <meta charset="UTF-8"/> … … 7 7 <!-- Bootstrap core CSS --> 8 8 <link href="css/bootstrap.min.css" rel="stylesheet"/> 9 <link rel="stylesheet" href="css/risk.css"/> 9 10 </head> 10 11 <body> … … 26 27 <option value="dateDue">Date due</option> 27 28 <option value="fundsNeeded">Funds needed</option> 29 <option value="riskFactor">Chance to collect funds</option> 28 30 </select> 29 31 </div> … … 47 49 <div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 g-3"> 48 50 <div class="col" th:each="post : ${postList}"> 49 <div class="card shadow-sm" >51 <div class="card shadow-sm" th:classappend="${post.riskFactor < 25 ? 'red' : (post.riskFactor < 50 ? 'orange' : (post.riskFactor < 75 ? 'yellow' : (post.riskFactor < 100 ? 'light-yellow' : (post.riskFactor == 100 ? 'green' : '') )))}"> 50 52 <img class="card-img" style="object-fit: contain" width="100%" height="225" 51 53 th:src="${post.imagesPath[0]}"> … … 53 55 <h4 th:text="${post.title}" style="height: 60px"></h4> 54 56 <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> 55 59 <div class="d-flex justify-content-between align-items-center"> 56 60 <div class="btn-group"> 57 <a class="btn btn-sm btn-outline-secondary" th:href="@{/post(postid=${post.id})}">Open</a>61 <a class="btn btn-sm btn-outline-secondary" style="color: black" th:href="@{/post(postid=${post.id})}">Open</a> 58 62 </div> 59 <span class=" text-muted">Date due: <small th:text="${post.dateDue}"></small></span>63 <span class="" style="color: black">Date due: <small th:text="${post.dateDue}"></small></span> 60 64 </div> 61 65 </div> -
src/main/resources/templates/login.html
r881a233 rb8dc761 27 27 <button class="w-100 btn btn-lg btn-primary" type="submit">Sign in</button> 28 28 </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 31 <p th:if="${param.error != null}" class="text-danger">Incorrect username or password</p> 30 32 <p th:if="${successValidation}" class="text-success">Account validated</p> -
src/main/resources/templates/post.html
r881a233 rb8dc761 50 50 <p th:text="${post.description}"></p> 51 51 <h5>Funds needed:</h5> 52 <p><span th:text="${ total}"></span>/<span th:text="${post.fundsNeeded}"></span> - <span th:text="${post.currency}"></span></p>52 <p><span th:text="${post.totalFundsCollected}"></span>/<span th:text="${post.fundsNeeded}"></span> - <span th:text="${post.currency}"></span></p> 53 53 <h5>Date due:</h5> 54 54 <p th:text="${post.dateDue}"></p>
Note:
See TracChangeset
for help on using the changeset viewer.