Skip to content
Snippets Groups Projects
Commit 1eeafc16 authored by Kai Ott's avatar Kai Ott
Browse files

Merge branch 'codingweekendfs18' of https://gitlab.ethz.ch/amiv/amiv-admintool...

Merge branch 'codingweekendfs18' of https://gitlab.ethz.ch/amiv/amiv-admintool into codingweekendfs18
parents 635b1a72 3cb1f50c
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,9 @@ const viewLayout = [ ...@@ -20,6 +20,9 @@ const viewLayout = [
}, },
'.eventViewRight': { '.eventViewRight': {
'grid-column': 2, 'grid-column': 2,
},
'.eventViewRight h4': {
'margin-top': '0px',
} }
} }
]; ];
...@@ -73,26 +76,32 @@ export default class viewEvent extends ItemView { ...@@ -73,26 +76,32 @@ export default class viewEvent extends ItemView {
console.log(Object.keys(this)); console.log(Object.keys(this));
console.log(this['data']); console.log(this['data']);
let displayCatchphraseDe = null; let displayCatchphrase = null;
let displayCatchphraseEn = null; let displayDescription = null;
let displayDescriptionDe = null;
let displayDescriptionEn = null;
let displayPriority = null; let displayPriority = null;
if(this.data.catchphrase_de) { /*if(this.data.catchphrase_de) {
displayCatchphraseDe = m("t3", {class: "text"}, this.data.catchphrase_de); displayCatchphraseDe = m("t3", {class: "text"}, "de: " + this.data.catchphrase_de);
} }
if(this.data.catchphrase_en) { if(this.data.catchphrase_en) {
displayCatchphraseEn = m("t3", {class: "text"}, this.data.catchphrase_en); displayCatchphraseEn = m("t3", {class: "text"}, "en: " + this.data.catchphrase_en);
} }*/
if(this.data.description_de) { if(this.data.catchphrase_de && this.data.catchphrase_en) {
displayDescriptionDe = m("t3", {class: "text"}, this.data.description_de); displayCatchphrase = m("t3", {class: "text"}, "de: " + this.data.catchphrase_de + " / en: " + this.data.catchphrase_en);
} else if(this.data.catchphrase_de) {
displayCatchphrase = m("t3", {class: "text"}, "de: " + this.data.catchphrase_de);
} else if(this.data.catchphrase_en) {
displayCatchphrase = m("t3", {class: "text"}, "en: " + this.data.catchphrase_en);
} }
if(this.data.description_en) { if(this.data.description_de && this.data.description_en) {
displayDescriptionEn = m("t3", {class: "text"}, this.data.description_en); displayDescription = m("t3", {class: "text"}, "de: " + this.data.description_de + " / en: " + this.data.description_en);
} else if(this.data.catchphrase_de) {
displayDescription = m("t3", {class: "text"}, "de: " + this.data.description_de);
} else if(this.data.catchphrase_en) {
displayDescription = m("t3", {class: "text"}, "en: " + this.data.description_en);
} }
if(this.data.priority) { if(this.data.priority) {
...@@ -127,14 +136,8 @@ export default class viewEvent extends ItemView { ...@@ -127,14 +136,8 @@ export default class viewEvent extends ItemView {
content: [ content: [
{ {
primary: { primary: {
title: "Catchphrase DE", title: "Catchphrase",
subtitle: displayCatchphraseDe subtitle: displayCatchphrase,
}
},
{
primary: {
title: "Catchphrase EN",
subtitle: displayCatchphraseEn
} }
}, },
{ {
...@@ -149,15 +152,8 @@ export default class viewEvent extends ItemView { ...@@ -149,15 +152,8 @@ export default class viewEvent extends ItemView {
}, },
{ {
primary: { primary: {
title: "Description DE", title: "Description",
subtitle: displayDescriptionDe subtitle: displayDescription
}
},
{
primary: {
title: "Description EN",
subtitle: displayDescriptionEn
} }
}, },
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment