Skip to content
Snippets Groups Projects
Commit b80052eb authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

re meta#287 endret "definisjoner" til "betydning" etc., fjernet link fra underartikkel-oversksrift

parent c977fbc8
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
</ul> </ul>
</section> </section>
<section> <section>
<h3>Definisjoner</h3> <h3>{{def_label}}</h3>
<ol> <ol>
<Definition v-for="definition in article.body.definitions" :dictionary="dictionary" :level="1" :key="definition.id" :body='definition' @article-click="article_link_click" /> <Definition v-for="definition in article.body.definitions" :dictionary="dictionary" :level="1" :key="definition.id" :body='definition' @article-click="article_link_click" />
</ol> </ol>
...@@ -35,6 +35,9 @@ export default { ...@@ -35,6 +35,9 @@ export default {
computed: { computed: {
dictionary: function() { dictionary: function() {
return this.article.dictionary return this.article.dictionary
},
def_label: function() {
return this.dictionary == 'bob' ? 'Betydning' : 'Tyding'
} }
}, },
components: { components: {
......
<template> <template>
<li class="sub_article"> <li class="sub_article">
<span class="sub_article_header"> <span class="sub_article_header">
<router-link :to="'/' + dictionary + '/' + body.article_id" @click.native="article_link_click(body)"> {{body.lemmas[0]}}
{{body.lemmas[0]}}
</router-link>
</span> </span>
<ul> <ul>
<DefElement :body="body.intro" v-if="body.intro" :dictionary="dictionary" @article-click="article_link_click" /> <DefElement :body="body.intro" v-if="body.intro" :dictionary="dictionary" @article-click="article_link_click" />
...@@ -43,6 +41,7 @@ export default { ...@@ -43,6 +41,7 @@ export default {
<style scoped> <style scoped>
.sub_article_header { .sub_article_header {
font-weight: bold; font-weight: bold;
color: var(--v-primary-base);
} }
li.sub_article { li.sub_article {
......
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