Verified Commit f38986dd authored by Sandro Lutz's avatar Sandro Lutz
Browse files

Add link to old studydocuments website

parent 36770dcb
......@@ -247,6 +247,8 @@ export default {
createNewEntryLabel: 'neuer Eintrag',
accessDenied: 'Studienunterlagen sind nur für ETH Studenten verfügbar.',
selectTextHelp: 'Kreuze «erstellen» an, um einen neuen Eintrag zu erstellen.',
legacyText:
'Du hast das gesuchte Dokument nicht gefunden? Schau auf der <a href="https://legacy.amiv.ethz.ch/studium/unterlagen" target="_blank">alten Webseite</a>.',
rules: {
title: 'Regeln',
one:
......
......@@ -247,6 +247,9 @@ export default {
createNewEntryLabel: 'new entry',
accessDenied: 'Study documents are available only for ETH students.',
selectTextHelp: 'Tick «create» to create a new entry.',
legacyText:
'You didn\'t find the document you were looking for? Take a look at the <a href="https://legacy.amiv.ethz.ch/studium/unterlagen" target="_blank">old website</a>.',
legactLink: 'Try your luck',
rules: {
title: 'Rules',
one:
......
......@@ -100,6 +100,11 @@ h1 {
margin: 2em 0;
}
a {
color: @color-red;
text-decoration: none;
}
.centered {
text-align: center;
}
......
......@@ -11,6 +11,8 @@ import { i18n, currentLanguage } from '../../models/language';
import { FilteredListDataStore, FilteredListPage } from '../filteredListPage';
import mimeTypeToIcon from '../../images/mimeTypeToIcon';
import StudydocQuickFilter from './studydocQuickFilter';
import { Infobox } from '../errors';
import icons from '../../images/icons';
const controller = new StudydocsController();
const dataStore = new FilteredListDataStore();
......@@ -228,6 +230,15 @@ export default class StudydocList extends FilteredListPage {
name: 'quickfilter',
items: [m(StudydocQuickFilter, { controller, dataStore })],
},
{
name: 'notice',
items: [
m(Infobox, {
icon: m(Icon, { svg: { content: m.trust(icons.info) } }),
label: m.trust(i18n('studydocs.legacyText')),
}),
],
},
{
name: FilteredListPage.pinnedListIdentifier,
},
......@@ -241,7 +252,7 @@ export default class StudydocList extends FilteredListPage {
// eslint-disable-next-line class-methods-use-this
_renderItem(item, list, selectedId) {
if (list === 'quickfilter') {
if (list === 'quickfilter' || list === 'notice') {
return item;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment