Skip to content
Snippets Groups Projects
Commit f501524f authored by Thomas Hackl's avatar Thomas Hackl
Browse files

Resolve "Mangelnde Tastatur-Bedienbarkeit im Veranstaltungsverzeichnis"

Closes #4031

Merge request studip/studip!2886
parent 91384435
No related branches found
No related tags found
No related merge requests found
...@@ -91,9 +91,9 @@ ...@@ -91,9 +91,9 @@
<tbody> <tbody>
<tr v-for="(course) in courses" :key="course.id" class="studip-tree-child studip-tree-course"> <tr v-for="(course) in courses" :key="course.id" class="studip-tree-child studip-tree-course">
<td> <td>
<a :href="courseUrl(course.id)" <a :href="courseUrl(course.id)" tabindex="0"
:title="$gettextInterpolate($gettext('Zur Veranstaltung %{ course }'), :title="$gettextInterpolate($gettext('Zur Veranstaltung %{ title }'),
{ course: course.attributes.title })"> { title: course.attributes.title })">
<studip-icon shape="seminar" :size="26"></studip-icon> <studip-icon shape="seminar" :size="26"></studip-icon>
<template v-if="course.attributes['course-number']"> <template v-if="course.attributes['course-number']">
{{ course.attributes['course-number'] }} {{ course.attributes['course-number'] }}
......
...@@ -112,8 +112,8 @@ ...@@ -112,8 +112,8 @@
</td> </td>
<td> <td>
<a :href="courseUrl(course.id)" tabindex="0" <a :href="courseUrl(course.id)" tabindex="0"
:title="$gettextInterpolate($gettext('Zur Veranstaltung %{ course }'), :title="$gettextInterpolate($gettext('Zur Veranstaltung %{ title }'),
{ course: course.attributes.title })"> { title: course.attributes.title })">
<template v-if="course.attributes['course-number']"> <template v-if="course.attributes['course-number']">
{{ course.attributes['course-number'] }} {{ course.attributes['course-number'] }}
</template> </template>
......
...@@ -4,14 +4,16 @@ ...@@ -4,14 +4,16 @@
({{ details.semester }}) ({{ details.semester }})
</div> </div>
<div class="admission-state" v-if="details.admissionstate"> <div class="admission-state" v-if="details.admissionstate">
<studip-icon :shape="details.admissionstate.icon" :role="details.admissionstate.role" <studip-icon :shape="details.admissionstate.icon"
:title="details.admissionstate.info"></studip-icon> :role="details.admissionstate.role"
:alt="details.admissionstate.info"></studip-icon>
</div> </div>
<div class="course-lecturers"> <div class="course-lecturers">
<span v-for="(lecturer, index) in details.lecturers" :key="index"> <span v-for="(lecturer, index) in details.lecturers" :key="index">
<a :href="profileUrl(lecturer.username)" <a :href="profileUrl(lecturer.username)"
:title="$gettextInterpolate($gettext('Zum Profil von %{ user }'), :title="$gettextInterpolate($gettext('Zum Profil von %{ user }'),
{ user: lecturer.name })"> { user: lecturer.name })"
tabindex="0">
{{ lecturer.name }} {{ lecturer.name }}
</a><template v-if="details.lecturers.length > 1 && index < details.lecturers.length - 1">, </template> </a><template v-if="details.lecturers.length > 1 && index < details.lecturers.length - 1">, </template>
</span> </span>
......
<template> <template>
<div> <div>
<studip-icon shape="info-circle" @click="togglePathInfo"></studip-icon> <button type="button"
@click.prevent="togglePathInfo"
:title="showPaths
? $gettext('Pfad im Verzeichnis ausblenden')
: $gettext('Pfad im Verzeichnis anzeigen')">
<studip-icon shape="info-circle"></studip-icon>
</button>
<ul v-if="showPaths" class="studip-tree-course-path"> <ul v-if="showPaths" class="studip-tree-course-path">
<li v-for="(path, pindex) in paths" :key="pindex"> <li v-for="(path, pindex) in paths" :key="pindex">
<button @click.prevent="openNode(path[path.length - 1].id)"> <button @click.prevent="openNode(path[path.length - 1].id)">
......
...@@ -31,13 +31,14 @@ ...@@ -31,13 +31,14 @@
</td> </td>
<td> <td>
<a :href="courseUrl(course.id)" <a :href="courseUrl(course.id)"
:title="$gettextInterpolate($gettext('Zur Veranstaltung %{name}'), {name: + course.attributes.title})"> :title="$gettextInterpolate($gettext('Zur Veranstaltung %{title}'), {title: course.attributes.title})"
tabindex="0">
<template v-if="course.attributes['course-number']"> <template v-if="course.attributes['course-number']">
{{ course.attributes['course-number'] }} {{ course.attributes['course-number'] }}
</template> </template>
{{ course.attributes.title }} {{ course.attributes.title }}
<div :id="'course-dates-' + course.id" class="course-dates"></div>
</a> </a>
<div :id="'course-dates-' + course.id" class="course-dates"></div>
<tree-node-course-path :node-class="searchConfig.classname" <tree-node-course-path :node-class="searchConfig.classname"
:course-id="course.id"></tree-node-course-path> :course-id="course.id"></tree-node-course-path>
</td> </td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment