[+] Display content according to staticpage

This commit is contained in:
Hykilpikonna
2020-01-05 16:22:56 -05:00
parent 1d404b4f51
commit d56d985734
+19 -15
View File
@@ -1,23 +1,27 @@
<template>
<div id="app" class="theme-default">
<login v-if="showLogin" v-on:login:user="onLogin"/>
<navigation v-if="user != null"
:courses="gradedCourses"
:user="user"
:nav="nav"
@sign-out="signOut" @select-time="selectTime">
</navigation>
<div id="app-inner" v-if="staticPage === ''">
<login v-if="showLogin" v-on:login:user="onLogin"/>
<navigation v-if="user != null"
:courses="gradedCourses"
:user="user"
:nav="nav"
@sign-out="signOut" @select-time="selectTime">
</navigation>
<div id="app-content" v-if="assignmentsReady && loading === ''">
<overall v-if="nav.id === 'overall'"
:courses="gradedCourses">
</overall>
<course-page v-if="nav.id === 'course'"
:course="gradedCourses.find(c => +c.id === +nav.info.id)">
</course-page>
<div id="app-content" v-if="assignmentsReady && loading === ''">
<overall v-if="nav.id === 'overall'"
:courses="gradedCourses">
</overall>
<course-page v-if="nav.id === 'course'"
:course="gradedCourses.find(c => +c.id === +nav.info.id)">
</course-page>
</div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
</div>
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
<Info v-if="staticPage === 'info'"/>
</div>
</template>