Skip to content

Commit

Permalink
update/ simplify back buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
bduncan137 committed Nov 13, 2023
1 parent bee2e62 commit 5b45969
Show file tree
Hide file tree
Showing 14 changed files with 69 additions and 75 deletions.
4 changes: 1 addition & 3 deletions castle/cms/browser/controlpanel/templates/announcements.pt
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@
<metal:main metal:fill-slot="prefs_configlet_main">

<a
href=""
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate=""
>
Site Setup
</a>
Expand Down
11 changes: 6 additions & 5 deletions castle/cms/browser/controlpanel/templates/archives-manage.pt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

<metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="plone">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/@@overview-controlpanel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>

<h1 class="documentFirstHeading"
i18n:translate="">Archive Management</h1>

Expand Down
11 changes: 6 additions & 5 deletions castle/cms/browser/controlpanel/templates/archives-review.pt
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@

<metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="plone">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/@@overview-controlpanel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>

<h1 class="documentFirstHeading"
i18n:translate="">Archive Management</h1>

Expand Down
13 changes: 6 additions & 7 deletions castle/cms/browser/controlpanel/templates/audit.pt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@
tal:define="connected view/can_connect_to_index;
site_path python: '/'.join(context.getPhysicalPath())">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate=""
tal:condition="not: view/user">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
tal:condition="not: view/user">
>
Site Setup
</a>


<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

<div metal:use-macro="context/global_statusmessage/macros/portal_message">
Expand Down
11 changes: 6 additions & 5 deletions castle/cms/browser/controlpanel/templates/celery.pt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@

<metal:main metal:fill-slot="prefs_configlet_main" i18n:domain="plone">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/@@overview-controlpanel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>

<h1 class="documentFirstHeading"
i18n:translate="">Celery Tasks</h1>

Expand Down
11 changes: 5 additions & 6 deletions castle/cms/browser/controlpanel/templates/crawler.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

<div metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>


<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

<div metal:use-macro="context/global_statusmessage/macros/portal_message">
Expand Down
11 changes: 5 additions & 6 deletions castle/cms/browser/controlpanel/templates/links.pt
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,13 @@

<metal:main metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>


<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

<div metal:use-macro="context/global_statusmessage/macros/portal_message">
Expand Down
11 changes: 5 additions & 6 deletions castle/cms/browser/controlpanel/templates/sessions.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

<metal:main metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>


<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

<div metal:use-macro="context/global_statusmessage/macros/portal_message">
Expand Down
9 changes: 4 additions & 5 deletions castle/cms/browser/controlpanel/templates/social.pt
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@

<div metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>


<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

<div metal:use-macro="context/global_statusmessage/macros/portal_message">
Expand Down
10 changes: 4 additions & 6 deletions castle/cms/browser/controlpanel/templates/status.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,13 @@
<body>
<metal:main metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>



<h1 class="documentFirstHeading">CastleCMS Status</h1>
<p class="discreet">
Displays the status of components and subprocesses used by CastleCMS
Expand Down
9 changes: 5 additions & 4 deletions castle/cms/browser/controlpanel/templates/subscribers.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
<body>
<metal:main metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>

<div tal:content="python: view.get_page(1)">
</div>

Expand Down
12 changes: 6 additions & 6 deletions castle/cms/browser/controlpanel/templates/survey.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<body>

<div metal:fill-slot="prefs_configlet_main">
<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
Site Setup
</a> &rsaquo;
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>

<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

Expand Down
11 changes: 5 additions & 6 deletions castle/cms/browser/controlpanel/templates/tags.pt
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
<body>
<metal:main metal:fill-slot="prefs_configlet_main">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/plone_control_panel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>


<h1 class="documentFirstHeading" tal:content="view/label">View Title</h1>

<div metal:use-macro="context/global_statusmessage/macros/portal_message">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@

<article id="content">

<a href=""
id="setup-link"
tal:attributes="href string:$portal_url/@@overview-controlpanel"
i18n:translate="">
Site Setup
<a
href="${context/portal_url}/@@overview-controlpanel"
id="setup-link"
>
Site Setup
</a>

<h1 class="documentFirstHeading"
Expand Down

0 comments on commit 5b45969

Please sign in to comment.