-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do recursive check and more verbose reporting
- Loading branch information
Showing
4 changed files
with
101 additions
and
46 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
97 changes: 62 additions & 35 deletions
97
plone/app/linkintegrity/browser/delete_confirmation_info.pt
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 |
---|---|---|
@@ -1,53 +1,80 @@ | ||
<tal:block | ||
tal:define="breaches python:view.breaches" | ||
tal:condition="breaches" | ||
tal:define="breaches python:view.breaches;" | ||
i18n:domain="plone"> | ||
|
||
<h2 i18n:translate="linkintegrity_breaches_title">Potential link breakage</h2> | ||
|
||
<h2 tal:condition="breaches" i18n:translate="linkintegrity_breaches_title">Potential link breakage</h2> | ||
|
||
<div id="content-core"> | ||
<p i18n:translate="linkintegrity_instructions"> | ||
|
||
<p tal:condition="breaches" i18n:translate="linkintegrity_instructions"> | ||
By deleting this item, you will break links that exist in the items listed | ||
below. If this is indeed what you want to do, we recommend that you remove | ||
these references first. | ||
</p> | ||
|
||
<div tal:define="token context/@@authenticator/token"> | ||
<article tal:repeat="breach breaches" class="breach-container"> | ||
|
||
<tal:target tal:define="target breach/target"> | ||
<header><a href="${target/url}" tal:content="target/title" /></header> | ||
<p> | ||
<span i18n:translate="linkintegrity_is_referenced"> | ||
This <span i18n:name="portal_type" tal:content="target/type_title" /> | ||
is referenced by the following items: | ||
</span> | ||
</p> | ||
</tal:target> | ||
|
||
<ul> | ||
<li tal:repeat="source python:breach['sources']" class="breach-item"> | ||
<tal:visible condition="source/accessible"> | ||
<a tal:attributes="href source/url" tal:content="source/title" /> | ||
[<a tal:attributes="href string:${source/url}/edit?_authenticator=${token}" | ||
i18n:translate="linkintegrity_edit_in_new_window" | ||
target="_blank">Edit in new window</a>] | ||
</tal:visible> | ||
<tal:private condition="not: source/accessible" | ||
i18n:translate="linkintegrity_item_not_accessible"> | ||
The item is not accessible. | ||
</tal:private> | ||
</li> | ||
</ul> | ||
|
||
</article> | ||
|
||
<br /> | ||
<article tal:repeat="breach breaches" class="breach-container"> | ||
|
||
<tal:target tal:define="target breach/target"> | ||
<header><a href="${target/url}" tal:content="target/title" /></header> | ||
<p> | ||
<span i18n:translate="linkintegrity_is_referenced"> | ||
This <span i18n:name="portal_type" tal:content="target/type_title" /> | ||
is referenced by the following items: | ||
</span> | ||
</p> | ||
</tal:target> | ||
|
||
<ul> | ||
<li tal:repeat="source python:breach['sources']" class="breach-item"> | ||
<tal:visible condition="source/accessible"> | ||
<a tal:attributes="href source/url" tal:content="source/title" /> | ||
[<a tal:attributes="href string:${source/url}/edit?_authenticator=${token}" | ||
i18n:translate="linkintegrity_edit_in_new_window" | ||
target="_blank">Edit in new window</a>] | ||
</tal:visible> | ||
<tal:private condition="not: source/accessible" | ||
i18n:translate="linkintegrity_item_not_accessible"> | ||
The item is not accessible. | ||
</tal:private> | ||
</li> | ||
</ul> | ||
|
||
</article> | ||
|
||
<div tal:define="breach_count view/breach_count" tal:condition="breach_count"> | ||
|
||
<h2 i18n:translate="deleting_overview" >Deleting overview</h2> | ||
<p> | ||
<span tal:define="refs python:len(breach_count)" | ||
i18n:translate="selected_folders_with_content"> | ||
Number of selected, non-empty folders: <strong><span tal:replace="refs" i18n:name="refs" /></strong> | ||
</span> | ||
</p> | ||
<ul> | ||
<li tal:repeat="content python:breach_count"> | ||
<span i18n:translate="deleting_contents"> Following content within | ||
<strong><span tal:replace="content" i18n:name="content" /></strong> will also be deleted: | ||
</span><br> | ||
<ul> | ||
<li tal:define="objects python:['Objects in all', 'Folders', 'Published objects'] " | ||
tal:repeat="item python:range(3) " | ||
i18n:translate="" > | ||
<span tal:replace="python: breach_count[content][item]" /> | ||
<span i18n:translate="" tal:replace="python: objects[item]" /> | ||
</li> | ||
</ul> | ||
</li> | ||
</ul> | ||
|
||
|
||
|
||
</div> | ||
|
||
<p i18n:translate="linkintegrity_delete_anyway"> | ||
Would you like to delete it anyway? | ||
</p> | ||
|
||
</div> | ||
</div> | ||
</tal:block> |
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