-
Notifications
You must be signed in to change notification settings - Fork 1
/
definitionref.html
30 lines (30 loc) · 1.47 KB
/
definitionref.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<div class="definitionref">
<div class="btn-group">
{%- if include.status -%}
<button type="button" disabled="disabled" class="status btn btn-{% case include.status %}{% when 'Keskeneräinen' %}danger{% when 'Luonnos' %}warning{% when 'Ehdotus' %}warning{% when 'Muutosehdotus' %}warning{% when 'Hyväksytty' %}success{% else %}info{% endcase %}">{{ include.status }}</button>
{%- endif -%}
</div>
{%- if include.dict -%}
<h1>Yhteentoimivuusalustan sanasto: <a href="http://uri.suomi.fi/terminology/{{ include.dict }}/terminological-vocabulary-0">{{ include.dictname }}</a></h1>
{%- else -%}
<h1>Paikallinen sanasto: {{ include.dictname }}</h1>
{%- endif -%}
<dl class="definition">
<dt class="definition-concept">Termi: {{ include.name }}</dt>
{% if include.def %}
<dd class="definition-text">Määritelmä: {{ include.def }}</dd>
{% else %}
<dd class="definition-text">Ei määritelmää</dd>
{% endif %}
{% if include.note %}
<dd class="definition-note">Huomautus: {{ include.note }}</dd>
{% endif %}
</dl>
<p>
{%- if include.dict and include.id -%}
<a href="http://uri.suomi.fi/terminology/{{ include.dict }}/{{ include.id }}" class="definition-uri">http://uri.suomi.fi/terminology/{{ include.dict }}/{{ include.id }}</a> <i class="fas fa-external-link-alt"></i>
{%- else -%}
(viittaus sanaston termiin puuttuu)
{%- endif -%}
</p>
</div>