Skip to content

Commit

Permalink
Merge pull request #108 from acmauth/recentResults
Browse files Browse the repository at this point in the history
Recent results
  • Loading branch information
neron-png authored Mar 7, 2024
2 parents 0a8d920 + 4c0990f commit b564151
Show file tree
Hide file tree
Showing 11 changed files with 395 additions and 320 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,31 @@
var interval = seconds / 31536000;
if (interval > 1) {
return Math.floor(interval) + " years";
return Math.floor(interval) + " χρόνια";
}
interval = seconds / 2592000;
if (interval > 1) {
return Math.floor(interval) + " months";
return Math.floor(interval) + " μήνες";
}
interval = seconds / 86400;
if (interval > 1) {
return Math.floor(interval) + " days";
return Math.floor(interval) + " μέρες";
}
interval = seconds / 3600;
if (interval > 1) {
return Math.floor(interval) + " hours";
return Math.floor(interval) + " ώρες";
}
interval = seconds / 60;
if (interval > 1) {
return Math.floor(interval) + " minutes";
return Math.floor(interval) + " λεπτά";
}
return Math.floor(seconds) + " seconds";
return Math.floor(seconds) + " δευτερόλεπτα";
}
</script>

<AppCard onClick={() => {inlineModalOpen = true}} class="ion-padding">

<div aria-hidden on:click ={() => {inlineModalOpen = true}} class="card-link">
<div class="top">
<img alt="Service logo" src={notification.type == "universis" ? universisLogo : elearningLogo} />

Expand All @@ -50,10 +51,10 @@
<ion-item lines="none" class="ion-no-padding">
<ion-label>
<h2>{notification.subject}</h2>
<p>{notification.body}</p>
</ion-label>
</ion-item>
</AppCard>
</div>


<ion-modal
is-open={inlineModalOpen}
Expand Down Expand Up @@ -133,4 +134,8 @@
object-fit: contain;
height: 100%;
}
.card-link {
text-decoration: none;
}
</style>
166 changes: 0 additions & 166 deletions src/lib/components/recentGrades/recentGrades.svelte

This file was deleted.

140 changes: 0 additions & 140 deletions src/lib/components/recentGrades/recentGradesCard.svelte

This file was deleted.

Loading

0 comments on commit b564151

Please sign in to comment.