Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SkuciSe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tim 2 - 2022
SkuciSe
Commits
9a9f26ec
Commit
9a9f26ec
authored
Sep 20, 2022
by
Bogdan Andjelkovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lajkovi na fornut dodati, uradjen ceo back, dodata prosecna ocena korisnika
parent
aff4a65a
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
SkuciSe/src/main/java/com/example/SkuciSe/controller/ProfileController.java
+1
-0
SkuciSe/src/main/resources/templates/korisnik.html
+2
-1
SkuciSe/src/main/resources/templates/oglas.html
+7
-0
SkuciSe/src/main/resources/templates/profile.html
+1
-1
No files found.
SkuciSe/src/main/java/com/example/SkuciSe/controller/ProfileController.java
View file @
9a9f26ec
...
@@ -108,6 +108,7 @@ public class ProfileController
...
@@ -108,6 +108,7 @@ public class ProfileController
}
}
model
.
addAttribute
(
"komentari"
,
komentari
);
model
.
addAttribute
(
"komentari"
,
komentari
);
model
.
addAttribute
(
"korisniciKomentari"
,
korisniciKomentari
);
model
.
addAttribute
(
"korisniciKomentari"
,
korisniciKomentari
);
model
.
addAttribute
(
"avgOcena"
,
komRepo
.
averageOcenaByKorisnikId
(
korisnikId
));
return
"korisnik"
;
return
"korisnik"
;
}
}
}
}
SkuciSe/src/main/resources/templates/korisnik.html
View file @
9a9f26ec
...
@@ -108,7 +108,8 @@
...
@@ -108,7 +108,8 @@
alt=
"slika korisnika"
>
alt=
"slika korisnika"
>
</div>
</div>
<div
class=
"filter-content"
>
<div
class=
"filter-content"
>
<p
class=
"fw-bold h4 mt-3"
><span
th:text=
"${korisnik.getIme()}"
></span></p>
<p
class=
"fw-bold h4 mt-3"
><span
th:text=
"${korisnik.ime + ' ' + korisnik.prezime}"
></span></p>
<p
th:object=
"${avgOcena}"
th:text=
"${'Prosecna ocena korisnika: ' + avgOcena}"
></p>
</div>
</div>
</article>
</article>
</div>
</div>
...
...
SkuciSe/src/main/resources/templates/oglas.html
View file @
9a9f26ec
...
@@ -146,6 +146,13 @@
...
@@ -146,6 +146,13 @@
<h1
th:text=
"${oglas.naslov}"
class=
"oglas-naslov"
></h1>
<h1
th:text=
"${oglas.naslov}"
class=
"oglas-naslov"
></h1>
</div>
</div>
<div
class=
"row w-100 border-bottom-grey my-3 flex-row justify-content-end align-items-center pb-3"
>
<div
class=
"row w-100 border-bottom-grey my-3 flex-row justify-content-end align-items-center pb-3"
>
<div
class=
"col d-flex justify-content-evenly"
style=
"color: #777;"
>
<p
th:object=
"${likesCount}"
>
<span
th:text=
"${likesCount}"
></span>
<a
th:if=
"${(loggedUser!=null)&&(!liked)}"
th:href=
"@{/lajkuj-oglas/{oglasId}(oglasId=${oglas.oglasId})}"
style=
"text-decoration: none; color: red;"
>
☺
<!--<i class="bi bi-heart" style="display: inline-block; height: 1rem; width: 1rem; color: red;"></i>-->
</a>
<a
th:if=
"${(loggedUser!=null)&&(liked)}"
th:href=
"@{/lajkuj-oglas/{oglasId}(oglasId=${oglas.oglasId})}"
style=
"text-decoration: none; color: red;"
>
☻
<!--<i class="bi bi-heart-fill" style="display: inline-block; height: 1rem; width: 1rem; color: red;"></i>-->
</a>
</p>
</div>
<a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${vlasnik.korisnikId})}"
<a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${vlasnik.korisnikId})}"
th:text=
"${vlasnik.ime + ' '+ vlasnik.prezime}"
class=
"text-right w-50"
th:text=
"${vlasnik.ime + ' '+ vlasnik.prezime}"
class=
"text-right w-50"
style=
"color:#495056;text-decoration: none"
></a>
style=
"color:#495056;text-decoration: none"
></a>
...
...
SkuciSe/src/main/resources/templates/profile.html
View file @
9a9f26ec
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</div>
</div>
</div>
</div>
</a>
</a>
<p
class=
"fw-bold h4 mt-3"
><
span
th:text=
"${loggedUser.getKorisnik().getIme()}"
></span
></p>
<p
class=
"fw-bold h4 mt-3"
><
a
th:href=
"@{/korisnik/{korisnikId}(korisnikId=${loggedUser.getKorisnik().korisnikId})}"
><span
th:text=
"${loggedUser.getKorisnik().getIme()}"
></span></a
></p>
<p
class=
"text-muted"
th:object=
"${profileRole}"
th:text=
"${profileRole}"
></p>
<p
class=
"text-muted"
th:object=
"${profileRole}"
th:text=
"${profileRole}"
></p>
<div
class=
"d-flex justify-content-around w-75"
>
<div
class=
"d-flex justify-content-around w-75"
>
<a
th:href=
"@{/profile/edit}"
>
<a
th:href=
"@{/profile/edit}"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment