Skip to content

Commit

Permalink
modul z ocenjevanji
Browse files Browse the repository at this point in the history
  • Loading branch information
mytja committed Nov 1, 2024
1 parent 3c17c91 commit 8b0fce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ClassUser.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
</script>

{#if userData}
<h1>{userData.Name}</h1>
<h1>{userData.Name} {userData.Surname}</h1>
{/if}
{#if localStorage.getItem("role") === "admin" || localStorage.getItem("role") === "principal" || localStorage.getItem("role") === "principal assistant" || localStorage.getItem("role") === "school psychologist"}
<Button on:click={async () => {
Expand Down Expand Up @@ -178,7 +178,7 @@
<div style="display:inline-block; width: 5px;"/>
{#each period.Grades as grade}
<Wrapper>
<span style="color: {gradeColors[grade.Grade - 1]}; display:inline-block; font-size: 20px;">{grade.Grade}</span>
<span style="color: {grade.Counts ? gradeColors[grade.Grade - 1] : 'gray'}; display:inline-block; font-size: {grade.Counts ? 20 : 15}px;">{grade.Grade}</span>
<Tooltip>
{#if grade.Description !== ''}
Opis ocene: {grade.Description}<br>
Expand Down
4 changes: 2 additions & 2 deletions src/Widgets/GradesTable.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
{#each grades["Users"] as user}
<Row>
<Cell class="sameline">
<div style="display:inline-block;">{user.Name}</div>
<div style="display:inline-block;">{user.Name} {user.Surname}</div>
<div style="display:inline-block; font-size: 20px; float:right; color: gray;">{user.Average.toFixed(2)}</div>
</Cell>
{#each user.Periods as period, i}
Expand All @@ -201,7 +201,7 @@
<div class="sameline">
<div style="display:inline-block; width: 5px;"/>
{#each period.Grades as grade}
<div style="color: {gradeColors[grade.Grade - 1]}; display:inline-block; font-size: 20px;" on:click={(e) => {
<div style="color: {grade.Counts ? gradeColors[grade.Grade - 1] : 'gray'}; display:inline-block; font-size: {grade.Counts ? 20 : 15}px;" on:click={(e) => {
e.stopPropagation();
if (user.Final === 0 && grade.CanPatch === true) {
toPatch = grade.ID;
Expand Down

0 comments on commit 8b0fce3

Please sign in to comment.