-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adapt viewlet styles to Plone 6 * add button css vclasses * add plone.app.layout as dependency * wrap messages in container * zpretty --------- Co-authored-by: Philip Bauer <bauer@starzel.de>
- Loading branch information
1 parent
975b5d4
commit f37417f
Showing
8 changed files
with
90 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Adapt viewlet styles to Plone 6 [pbauer] |
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
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
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,40 +1,47 @@ | ||
<div class="portalMessage warning" | ||
tal:define=" | ||
working_copy view/working_copy; | ||
isAnon context/@@plone_portal_state/anonymous; | ||
" | ||
tal:condition="python: not isAnon" | ||
i18n:domain="plone" | ||
> | ||
<div class="container"> | ||
<div class="portalMessage ${python:display_info['cssclass']}" | ||
role="alert" | ||
tal:define=" | ||
working_copy view/working_copy; | ||
isAnon context/@@plone_portal_state/anonymous; | ||
display_info python:view.display_info_for_mtype('warning'); | ||
icons nocall: context/@@iconresolver; | ||
" | ||
tal:condition="python: not isAnon" | ||
i18n:domain="plone" | ||
> | ||
|
||
<tal:icon tal:replace="structure python:icons.tag(display_info['icon'], tag_alt=display_info['msg'], tag_class='statusmessage-icon mb-1 me-2')" /> | ||
|
||
<strong i18n:translate="">Warning</strong> | ||
<tal:block i18n:translate="working_copy_info"> | ||
<strong>${python:display_info['msg']}</strong> | ||
<tal:block i18n:translate="working_copy_info"> | ||
This item is being edited by | ||
<a tal:content="view/creator_name" | ||
tal:omit-tag="not: view/creator_url" | ||
tal:attributes=" | ||
href view/creator_url; | ||
" | ||
i18n:name="creator" | ||
>john smith</a> | ||
<a tal:content="view/creator_name" | ||
tal:omit-tag="not: view/creator_url" | ||
tal:attributes=" | ||
href view/creator_url; | ||
" | ||
i18n:name="creator" | ||
>john smith</a> | ||
in | ||
<a tal:attributes=" | ||
href working_copy/@@plone_context_state/view_url; | ||
title working_copy/Description; | ||
" | ||
i18n:name="working_copy" | ||
i18n:translate="label_working_copy" | ||
>a working copy</a> | ||
<a tal:attributes=" | ||
href working_copy/@@plone_context_state/view_url; | ||
title working_copy/Description; | ||
" | ||
i18n:name="working_copy" | ||
i18n:translate="label_working_copy" | ||
>a working copy</a> | ||
created on | ||
<span tal:content="view/created" | ||
i18n:name="created" | ||
></span>. | ||
<span tal:content="view/created" | ||
i18n:name="created" | ||
></span>. | ||
|
||
</tal:block> | ||
</tal:block> | ||
|
||
(<a tal:attributes=" | ||
href string:${context/absolute_url}/@@iterate_diff; | ||
" | ||
i18n:translate="label_view_changes" | ||
>View changes</a>) | ||
(<a tal:attributes=" | ||
href string:${context/absolute_url}/@@iterate_diff; | ||
" | ||
i18n:translate="label_view_changes" | ||
>View changes</a>) | ||
</div> | ||
</div> |
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,40 +1,46 @@ | ||
<div class="portalMessage info" | ||
tal:define=" | ||
baseline view/baseline; | ||
" | ||
i18n:domain="plone" | ||
> | ||
<div class="container"> | ||
<div class="portalMessage ${python:display_info['cssclass']}" | ||
tal:define=" | ||
baseline view/baseline; | ||
display_info python:view.display_info_for_mtype('warning'); | ||
icons nocall: context/@@iconresolver; | ||
" | ||
i18n:domain="plone" | ||
> | ||
|
||
<tal:icon tal:replace="structure python:icons.tag(display_info['icon'], tag_alt=display_info['msg'], tag_class='statusmessage-icon mb-1 me-2')" /> | ||
|
||
<strong i18n:translate="">Warning</strong> | ||
<tal:block i18n:translate="checkout_info"> | ||
<strong>${python:display_info['msg']}</strong> | ||
<tal:block i18n:translate="checkout_info"> | ||
|
||
This is a working copy of | ||
<a tal:content="baseline/Title" | ||
tal:attributes=" | ||
href baseline/@@plone_context_state/view_url; | ||
title baseline/Description; | ||
" | ||
i18n:name="baseline_title" | ||
></a>, made by | ||
<a tal:content="baseline/Title" | ||
tal:attributes=" | ||
href baseline/@@plone_context_state/view_url; | ||
title baseline/Description; | ||
" | ||
i18n:name="baseline_title" | ||
></a>, made by | ||
|
||
<a tal:content="view/creator_name" | ||
tal:omit-tag="not: view/creator_url" | ||
tal:attributes=" | ||
href view/creator_url; | ||
" | ||
i18n:name="creator" | ||
>john smith</a> | ||
<a tal:content="view/creator_name" | ||
tal:omit-tag="not: view/creator_url" | ||
tal:attributes=" | ||
href view/creator_url; | ||
" | ||
i18n:name="creator" | ||
>john smith</a> | ||
|
||
on | ||
|
||
<span tal:content="view/created" | ||
i18n:name="created" | ||
></span>. | ||
</tal:block> | ||
<span tal:content="view/created" | ||
i18n:name="created" | ||
></span>. | ||
</tal:block> | ||
|
||
(<a tal:attributes=" | ||
href string:${context/absolute_url}/@@iterate_diff; | ||
" | ||
i18n:translate="view_changes" | ||
>View changes</a>) | ||
(<a tal:attributes=" | ||
href string:${context/absolute_url}/@@iterate_diff; | ||
" | ||
i18n:translate="view_changes" | ||
>View changes</a>) | ||
</div> | ||
</div> |
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