File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
templates/components/anchor Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 29
29
// the result is expected to be the same as on the content flow.
30
30
const contentLeft = this . element . getBoundingClientRect ( ) . x ;
31
31
32
- // ** 1) if a section does not have [data-uid] parameter,
33
- // ** we don't want to show anchors;
34
- // ** 2) show anchors only for sections: has [node-role="section"]:
35
- const anchors = [ ...this . element . querySelectorAll ( 'sdoc-anchor[data-uid][node-role="section"]' ) ] ;
32
+ // ** 1) if a node does not have [data-uid] parameter,
33
+ // ** we don't want to show anchors
34
+ const anchors = [ ...this . element . querySelectorAll ( 'sdoc-anchor[data-uid]' ) ] ;
36
35
37
36
anchors . forEach ( anchor => {
38
37
Original file line number Diff line number Diff line change 5
5
data-uid =" {{ sdoc_entity.reserved_uid }}"
6
6
{%- endif -%}
7
7
>
8
- {% - if sdoc_entity .is_section -%}
9
- {% - set section = sdoc_entity %}
10
- {% - set incoming_links = view_object .traceability_index .get_incoming_links (section ) %}
8
+ {% - set incoming_links = view_object .traceability_index .get_incoming_links (sdoc_entity ) %}
11
9
{% - if incoming_links is not none and incoming_links |length > 0 -%}
12
10
<template >
13
11
Incoming link{% if incoming_links |length > 1 -%} s{% - endif %} from:
20
18
{% endfor -%}
21
19
</template >
22
20
{% - endif -%}
23
- {% - endif -%}
24
21
</sdoc-anchor >
You can’t perform that action at this time.
0 commit comments