-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: Merge pull request #132 from DSD-DBS/fix-mixed-authority-mode
Fix mixed authority mode
- Loading branch information
Showing
5 changed files
with
130 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/data/documents/mixed_authority_doc_workitem_inserted.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!-- | ||
~ Copyright DB InfraGO AG and contributors | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
|
||
<h1 id="polarion_wiki macro name=module-workitem;params=id=ATSY-18306"></h1> | ||
<p id="polarion_1">Some intro</p> | ||
<p id="polarion_3">Additional Content -> This is kept</p> | ||
<div id="polarion_editor_html_block2" class="polarion-dle-wiki-block"> | ||
<div id="polarion_editor_html_block_content" contenteditable="false"></div> | ||
<pre id="polarion_editor_html_block_source" class="polarion-dle-wiki-block-source" contenteditable="false"><div class="c2pAreaStart" id="section1">#if ($document.getStatus().id == "draft")<span style="font-weight: bold;background-color: #FFFF00;">↓↓↓Below this point all content is autogenerated and will be overwritten ↓↓↓</span>#end</div></pre> | ||
</div> | ||
<div id="polarion_editor_html_block4" class="polarion-dle-wiki-block"> | ||
<div id="polarion_editor_html_block_content" contenteditable="false"></div> | ||
<pre id="polarion_editor_html_block_source" class="polarion-dle-wiki-block-source" contenteditable="false"><div class="c2pAreaEnd" id="section1">#if ($document.getStatus().id == "draft")<span style="font-weight: bold;background-color: #FFFF00;">↑↑↑Above this point all content is autogenerated and will be overwritten ↑↑↑</span>#end</div></pre> | ||
</div> | ||
<p id="polarion_5">This will be kept.</p> | ||
<div id="polarion_editor_html_block6" class="polarion-dle-wiki-block"> | ||
<div id="polarion_editor_html_block_content" contenteditable="false"></div> | ||
<pre id="polarion_editor_html_block_source" class="polarion-dle-wiki-block-source" contenteditable="false"><div class="c2pAreaStart" id="section2">#if ($document.getStatus().id == "draft")<span style="font-weight: bold;background-color: #FFFF00;">↓↓↓Below this point all content is autogenerated and will be overwritten ↓↓↓</span>#end</div></pre> | ||
</div> | ||
<h2 id="polarion_wiki macro name=module-workitem;params=id=ATSY-18305"></h2> | ||
<p>This will be removed</p> | ||
<div id="polarion_editor_html_block8" class="polarion-dle-wiki-block"> | ||
<div id="polarion_editor_html_block_content" contenteditable="false"></div> | ||
<pre id="polarion_editor_html_block_source" class="polarion-dle-wiki-block-source" contenteditable="false"><div class="c2pAreaEnd" id="section2">#if ($document.getStatus().id == "draft")<span style="font-weight: bold;background-color: #FFFF00;">↑↑↑Above this point all content is autogenerated and will be overwritten ↑↑↑</span>#end</div></pre> | ||
</div> | ||
<p id="polarion_9">Some postfix stuff</p> | ||
<div id="polarion_wiki macro name=module-workitem;params=id=ATSY-1234|layout=0|external=true"></div> |
7 changes: 7 additions & 0 deletions
7
tests/data/documents/sections/section_with_work_items.html.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{# | ||
Copyright DB InfraGO AG and contributors | ||
SPDX-License-Identifier: Apache-2.0 | ||
#} | ||
|
||
{% set element = model.by_uuid(element) %} | ||
{{ insert_work_item(element, session) }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters