Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Markus Opolka
vue-cdbp
Commits
ca7e6522
Commit
ca7e6522
authored
Dec 18, 2018
by
Markus Opolka
Browse files
Add display of note tags in Letter component
parent
ee5c67be
Changes
1
Show whitespace changes
Inline
Side-by-side
src/components/Letter.vue
View file @
ca7e6522
...
...
@@ -44,7 +44,10 @@
<li
v-for=
"(value, key) in letter.text.body.l"
:class=
"value._attributes.no"
v-if=
"hasText(formatText(value._text))"
>
{{
value
.
_attributes
.
no
}}
:
{{
formatText
(
value
.
_text
)
}}
<div
class=
"teal--text"
v-if=
"value.note && showComments"
>
<span
v-for=
"elem in value.note"
>
{{
elem
.
_attributes
.
text
}}
</span>
<div
v-for=
"note in value.note"
>
<span
v-if=
"note._attributes"
>
{{
note
.
_text
}}
:
{{
note
.
_attributes
.
text
}}
</span>
<span
v-else
>
{{
note
.
text
}}
</span>
</div>
</div>
</li>
</ul>
...
...
@@ -135,6 +138,8 @@ export default {
// Do this last for progress bar
this
.
letter
=
data
.
body
.
TEI
console
.
log
(
data
.
body
.
TEI
.
text
.
body
.
l
[
0
].
note
)
})
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment