|
|
@ -1,56 +1,88 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<b-list-group> |
|
|
|
<b-sidebar |
|
|
|
<b-list-group-item :to="{ name: 'Index' }"> |
|
|
|
id="sidebar-1" |
|
|
|
Home |
|
|
|
title="Chamilo" |
|
|
|
</b-list-group-item> |
|
|
|
backdrop |
|
|
|
|
|
|
|
> |
|
|
|
<b-list-group-item |
|
|
|
<template |
|
|
|
v-if="isAuthenticated" |
|
|
|
v-slot:footer |
|
|
|
:to="{ name: 'MyCourses' }" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Courses |
|
|
|
|
|
|
|
</b-list-group-item> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<b-list-group-item |
|
|
|
|
|
|
|
v-if="isAuthenticated" |
|
|
|
|
|
|
|
:to="{ name: 'MySessions' }" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
Sessions |
|
|
|
<b-nav |
|
|
|
</b-list-group-item> |
|
|
|
v-if="!isAuthenticated" |
|
|
|
|
|
|
|
class="d-sm-none bg-dark text-light" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<b-nav-item to="/login"> |
|
|
|
|
|
|
|
Login |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
<b-nav-item to="/register"> |
|
|
|
|
|
|
|
Register |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
</b-nav> |
|
|
|
|
|
|
|
|
|
|
|
<b-list-group-item |
|
|
|
<p |
|
|
|
v-if="isAuthenticated" |
|
|
|
v-if="isAuthenticated" |
|
|
|
/> |
|
|
|
class="d-sm-none px-3 py-2 mb-0 bg-dark text-light" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ username }} |
|
|
|
|
|
|
|
</p> |
|
|
|
|
|
|
|
<b-nav |
|
|
|
|
|
|
|
v-if="isAuthenticated" |
|
|
|
|
|
|
|
class="d-sm-none bg-dark text-light" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<b-nav-item href="/main/messages/inbox.php"> |
|
|
|
|
|
|
|
Inbox |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
<b-nav-item href="/account/home"> |
|
|
|
|
|
|
|
Profile |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
<b-nav-item href="/logout"> |
|
|
|
|
|
|
|
Logout |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
</b-nav> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<b-list-group-item |
|
|
|
<b-nav vertical> |
|
|
|
v-if="isAuthenticated" |
|
|
|
<b-nav-item :to="{ name: 'Index' }"> |
|
|
|
:to="'/main/admin/user_list.php'" |
|
|
|
Home |
|
|
|
> |
|
|
|
</b-nav-item> |
|
|
|
Users |
|
|
|
<b-nav-item |
|
|
|
</b-list-group-item> |
|
|
|
v-if="isAuthenticated" |
|
|
|
|
|
|
|
:to="{ name: 'MyCourses' }" |
|
|
|
<b-list-group-item |
|
|
|
> |
|
|
|
v-if="isAuthenticated" |
|
|
|
Courses |
|
|
|
:to="'/main/admin/course_list.php'" |
|
|
|
</b-nav-item> |
|
|
|
> |
|
|
|
<b-nav-item |
|
|
|
Courses |
|
|
|
v-if="isAuthenticated" |
|
|
|
</b-list-group-item> |
|
|
|
:to="{ name: 'MySessions' }" |
|
|
|
|
|
|
|
> |
|
|
|
<b-list-group-item |
|
|
|
Sessions |
|
|
|
v-if="isAuthenticated" |
|
|
|
</b-nav-item> |
|
|
|
:to="'/main/session/session_list.php'" |
|
|
|
<b-nav-item |
|
|
|
> |
|
|
|
v-if="isAuthenticated" |
|
|
|
Sessions |
|
|
|
:to="'/main/admin/user_list.php'" |
|
|
|
</b-list-group-item> |
|
|
|
> |
|
|
|
|
|
|
|
Users |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
<b-list-group-item |
|
|
|
<b-nav-item |
|
|
|
v-if="isAuthenticated" |
|
|
|
v-if="isAuthenticated" |
|
|
|
:to="'/main/admin/index.php'" |
|
|
|
:to="'/main/admin/course_list.php'" |
|
|
|
> |
|
|
|
> |
|
|
|
Settings |
|
|
|
Courses |
|
|
|
</b-list-group-item> |
|
|
|
</b-nav-item> |
|
|
|
</b-list-group> |
|
|
|
<b-nav-item |
|
|
|
|
|
|
|
v-if="isAuthenticated" |
|
|
|
|
|
|
|
:to="'/main/session/session_list.php'" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Sessions |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
<b-nav-item |
|
|
|
|
|
|
|
v-if="isAuthenticated" |
|
|
|
|
|
|
|
:to="'/main/admin/index.php'" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Settings |
|
|
|
|
|
|
|
</b-nav-item> |
|
|
|
|
|
|
|
</b-nav> |
|
|
|
|
|
|
|
</b-sidebar> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
@ -59,6 +91,9 @@ export default { |
|
|
|
isAuthenticated() { |
|
|
|
isAuthenticated() { |
|
|
|
return this.$store.getters['security/isAuthenticated'] |
|
|
|
return this.$store.getters['security/isAuthenticated'] |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
username() { |
|
|
|
|
|
|
|
return this.$store.getters['security/getUser'].username |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|