This is an automated email from the ASF dual-hosted git repository.

niallp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git


The following commit(s) were added to refs/heads/main by this push:
     new 92c58dc  "Improve this page" changes:   - consitently point to 
templates   - add alternative "button" on Sidebar (above conference image)   - 
add a "Improve the data" button to project pages
92c58dc is described below

commit 92c58dc41967f5c9afacad93f3dfd8a8e59b92f3
Author: Niall Pemberton <niall.pember...@gmail.com>
AuthorDate: Mon May 5 14:37:57 2025 +0100

    "Improve this page" changes:
      - consitently point to templates
      - add alternative "button" on Sidebar (above conference image)
      - add a "Improve the data" button to project pages
---
 _includes/footer_custom.html     | 8 +++-----
 _includes/nav_footer_custom.html | 7 +++++++
 _layouts/project-layout.html     | 4 ++++
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/_includes/footer_custom.html b/_includes/footer_custom.html
index cb79763..78e3b3a 100644
--- a/_includes/footer_custom.html
+++ b/_includes/footer_custom.html
@@ -19,11 +19,9 @@ limitations under the License.
 Licensed under the <a 
href="https://www.apache.org/licenses/LICENSE-2.0";>Apache License, Version 
2.0</a>.
 <br />Apache and the Apache feather logo are trademarks of The Apache Software 
Foundation.</p>
 
-{% if page.layout == 'project-layout' -%}
-  {% capture path %}{{ page.path | replace: "html", "yaml" | prepend: 
"_data/"}}{% endcapture %}
-{% elsif page.layout == 'project-templates-layout' %}
-  {% assign path = '_layouts/project-templates-layout.html' -%} 
+{% if page.layout == 'project-layout' or page.layout == 
'project-templates-layout' -%}
+  {% capture path %}{{  page.layout  | prepend: "_layouts/" | append: 
".html"}}{% endcapture %}
 {% else -%}
-  {% assign path = page.path -%} 
+  {% assign path = page.path %} 
 {% endif -%}
 <div class="d-flex mt-2"> <p class="text-small text-grey-dk-000 mb-0"> <a 
href="{{ site.repo }}/edit/main/{{ path }}" id="edit-this-page">Improve this 
page</a> </p> </div>
diff --git a/_includes/nav_footer_custom.html b/_includes/nav_footer_custom.html
index 0e2cb44..27bcb43 100644
--- a/_includes/nav_footer_custom.html
+++ b/_includes/nav_footer_custom.html
@@ -15,8 +15,15 @@ See the License for the specific language governing 
permissions and
 limitations under the License.
 {% endcomment %}
 
+{%- if page.layout == 'project-layout' or page.layout == 
'project-templates-layout' %}
+  {% capture path %}{{  page.layout  | prepend: "_layouts/" | append: 
".html"}}{% endcapture %}
+{%- else %}
+  {% assign path = page.path %} 
+{%- endif %}
 <nav aria-label="Main" id="site-nav-custom" class="site-nav">
 <ul class="nav-list">
+       <li class="nav-list-item"><button class="btn"><a href="{{ site.repo 
}}/edit/main/{{ path }}" id="edit-this-page">Improve this page</a></button></li>
+       <li class="nav-list-item">&nbsp;</li>
        <li class="nav-list-item"><a class="acevent" data-format="square"> 
</a></li>
 </ul>
 </nav>
diff --git a/_layouts/project-layout.html b/_layouts/project-layout.html
index 751e959..924bffa 100644
--- a/_layouts/project-layout.html
+++ b/_layouts/project-layout.html
@@ -179,6 +179,10 @@ limitations under the License.
 </table>
 </p>
 
+<p>
+<button class="btn"><a href="{{ site.repo }}/edit/main/{{ page.project_id  | 
prepend: "_data/projects/" | append: ".yaml" }}">Improve the 
{{page.project_name}} data</a></button>
+</p>
+
 <p>
 As with any project in the Attic - if you should choose to fork {{ 
project_name }} outside of Apache, please
 let us know so we can link to your project

Reply via email to