[+] Display content according to staticpage
This commit is contained in:
+19
-15
@@ -1,23 +1,27 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app" class="theme-default">
|
<div id="app" class="theme-default">
|
||||||
<login v-if="showLogin" v-on:login:user="onLogin"/>
|
<div id="app-inner" v-if="staticPage === ''">
|
||||||
<navigation v-if="user != null"
|
<login v-if="showLogin" v-on:login:user="onLogin"/>
|
||||||
:courses="gradedCourses"
|
<navigation v-if="user != null"
|
||||||
:user="user"
|
:courses="gradedCourses"
|
||||||
:nav="nav"
|
:user="user"
|
||||||
@sign-out="signOut" @select-time="selectTime">
|
:nav="nav"
|
||||||
</navigation>
|
@sign-out="signOut" @select-time="selectTime">
|
||||||
|
</navigation>
|
||||||
|
|
||||||
<div id="app-content" v-if="assignmentsReady && loading === ''">
|
<div id="app-content" v-if="assignmentsReady && loading === ''">
|
||||||
<overall v-if="nav.id === 'overall'"
|
<overall v-if="nav.id === 'overall'"
|
||||||
:courses="gradedCourses">
|
:courses="gradedCourses">
|
||||||
</overall>
|
</overall>
|
||||||
<course-page v-if="nav.id === 'course'"
|
<course-page v-if="nav.id === 'course'"
|
||||||
:course="gradedCourses.find(c => +c.id === +nav.info.id)">
|
:course="gradedCourses.find(c => +c.id === +nav.info.id)">
|
||||||
</course-page>
|
</course-page>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<loading v-if="loading !== ''" :text="loading" :error="loadingError"/>
|
<Info v-if="staticPage === 'info'"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user