mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 22:42:16 +00:00
update(StudiengangInformation.js): adds the general moodle link for the Studiengang informations to the component using a static link
This commit is contained in:
@@ -4,6 +4,7 @@ import StudiengangInformation from "./StudiengangInformation/StudiengangInformat
|
||||
export default {
|
||||
components: {
|
||||
Pagination,
|
||||
StudiengangInformation,
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -26,15 +26,20 @@ components:{
|
||||
StudiengangVertretung,
|
||||
},
|
||||
template:/*html*/`
|
||||
|
||||
<template v-if="studiengang?.bezeichnung && semester">
|
||||
<div class="card card-body mb-3">
|
||||
<div class="mb-3">
|
||||
<h2 >Studiengang:</h2>
|
||||
{{studiengang.bezeichnung}}
|
||||
<div class="mb-1">
|
||||
<h2 class="mb-1 pb-0">Studiengang:</h2>
|
||||
<span class="mb-1">{{studiengang.bezeichnung}}</span>
|
||||
</div>
|
||||
<div :class="{'mb-3':studiengang?.zusatzinfo_html}">
|
||||
<h2 >Semester: </h2>
|
||||
{{semester}}
|
||||
<div class="mb-1">
|
||||
<h2 class="mb-1 pb-0">Moodle:</h2>
|
||||
<a class="mb-1" target="_blank" :href="moodleLink">{{studiengang.kurzbzlang}}</a>
|
||||
</div>
|
||||
<div :class="{'mb-1':studiengang?.zusatzinfo_html}">
|
||||
<h2 class="mb-1 pb-0">Semester: </h2>
|
||||
<span class="mb-1">{{semester}}</span>
|
||||
</div>
|
||||
<div v-if="studiengang?.zusatzinfo_html" v-html="studiengang?.zusatzinfo_html"></div>
|
||||
</div>
|
||||
@@ -96,6 +101,12 @@ computed:{
|
||||
|
||||
return returnData;
|
||||
},
|
||||
moodleLink: function(){
|
||||
// early return if the studiengang information is not available
|
||||
if(!this.studiengang || !this.studiengang.studiengang_kz) return;
|
||||
|
||||
return `https://moodle.technikum-wien.at/course/view.php?idnumber=dl` + this.studiengang.studiengang_kz;
|
||||
},
|
||||
},
|
||||
mounted(){
|
||||
this.$fhcApi.factory.studiengang.studiengangInformation()
|
||||
|
||||
Reference in New Issue
Block a user