REST Service for POPCORN - ILIAS
alex
2025-06-06 97e0f73d88d0b3ba3e905ec354a8490cfc79873f
vue/src/pages/KursDetail.vue
@@ -4,6 +4,7 @@
import {onMounted, reactive, ref} from "vue"
import {getKurs, getKursItems, getKursTn, iliasBase, routerBase} from "../lib/api.js"
import LinkExtern from "../components/LinkExtern.vue"
import dayjs from "dayjs"
const route = useRoute()
const kursId = route.params.kursId
@@ -101,7 +102,7 @@
         KursTn
         <small>({{ kursTn?.length }})</small>
      </h2>
      <div :style="{columns: kursTn?.length > 16 ? 2 : 1}">
      <div :style="{columns: kursTn?.length > 16 ? 1 : 1}">
         <table>
            <thead>
               <tr>
@@ -109,6 +110,9 @@
                  <th>login</th>
                  <th>firstname</th>
                  <th>lastname</th>
                  <th>passed</th>
                  <th>status</th>
                  <th>status_changed</th>
               </tr>
            </thead>
            <tbody>
@@ -119,6 +123,9 @@
                  <td>{{ tn.login }}</td>
                  <td>{{ tn.firstname }}</td>
                  <td>{{ tn.lastname }}</td>
                  <td>{{ tn.passed }}</td>
                  <td>{{ tn.status }}</td>
                  <td>{{ dayjs(tn.status_changed).format("DD.MM.YYYY HH:mm:ss") }}</td>
               </tr>
            </tbody>
         </table>