CLASSROOMIO-T-97: UX again? 😇

This commit is contained in:
Rotimi Best
2023-08-05 08:02:42 +01:00
parent bb2f788a40
commit 94df4f3d7a
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -64,6 +64,7 @@ h6 {
.dark .prose h5, .dark .prose h5,
.dark .prose h6, .dark .prose h6,
.dark .prose li, .dark .prose li,
.dark .prose strong,
.dark .prose li::marker, .dark .prose li::marker,
.dark .prose p { .dark .prose p {
color: #fff; color: #fff;
+3 -3
View File
@@ -27,12 +27,12 @@
} }
} }
function getPathName(_isCoursePage = false) { function getPathName(_isCoursePage = false, slug = '') {
if (!_isCoursePage) { if (!_isCoursePage) {
return '/'; return '/';
} }
return $course.slug ? `${$page.url.host}/course/${$course.slug}` : `${$currentOrgPath}/courses`; return slug ? `/course/${slug}` : `${$currentOrgPath}/courses`;
} }
</script> </script>
@@ -50,7 +50,7 @@
</IconButton> </IconButton>
{/if} {/if}
<a <a
href={getPathName(isCoursePage)} href={getPathName(isCoursePage, $course.slug)}
target={isCoursePage && $course.slug ? '_blank' : ''} target={isCoursePage && $course.slug ? '_blank' : ''}
title="Go to {isCoursePage ? 'Courses' : 'ClassroomIO Home'}" title="Go to {isCoursePage ? 'Courses' : 'ClassroomIO Home'}"
id="logo" id="logo"