forked from wet-boew/GCWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minor - Page details: remove share this page (wet-boew#2377)
- Loading branch information
Showing
20 changed files
with
492 additions
and
382 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,20 @@ | ||
<!-- Default Page details --> | ||
<div id="default"> | ||
<section class="pagedetails"> | ||
<h2 class="wb-inv">Page details</h2> | ||
[Date modified component] | ||
</section> | ||
</div> | ||
|
||
<!-- Page details with Page feedback tool --> | ||
<div id="pft"> | ||
<section class="pagedetails"> | ||
<h2 class="wb-inv">Page details</h2> | ||
<div class="row"> | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
[Page feedback tool component version 2.0 or newer] | ||
</div> | ||
</div> | ||
[Date modified component] | ||
</section> | ||
</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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- Default Détails de la page --> | ||
<div id="default"> | ||
<section class="pagedetails"> | ||
<h2 class="wb-inv">Détails de la page</h2> | ||
[Composant Date de modification] | ||
</section> | ||
</div> | ||
|
||
<!-- Détails de la page with Page feedback tool --> | ||
<div id="pft"> | ||
<section class="pagedetails"> | ||
<h2 class="wb-inv">Détails de la page</h2> | ||
<div class="row"> | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
[Composant Outil de rétroaction sur la page version 2.0 ou plus récente] | ||
</div> | ||
</div> | ||
[Composant Date de modification] | ||
</section> | ||
</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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
{ | ||
"layout": null, | ||
"title": "Content page including complete page details version 3.0 (demoted)", | ||
"language": "en", | ||
"altLangPage": "page-details-v3-fr.html", | ||
"secondlevel": false, | ||
"dateModified": "2024-06-21", | ||
"share": "true", | ||
"feedback": "true" | ||
} | ||
--- | ||
{%- include variable-core.liquid -%} | ||
{%- capture page-title -%} | ||
{%- if page.title -%} | ||
{{ page.title }} | ||
{%- else -%} | ||
Page untitled | ||
{%- endif -%} | ||
{%- endcapture -%} | ||
<!DOCTYPE html> | ||
<html class="no-js" lang="{{ i18nText-lang | default: 'en' }}" dir="{{ i18nText-langDir | default: 'ltr' }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
{% include license.html %} | ||
<title>{{ page-title }} - {{ i18nText-siteTitle }}</title> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
{% include metadata.html %} | ||
{% include resources-inc/head.html %} | ||
</head> | ||
<body {% if page.pageclass %}class="{{ page.pageclass }}" {% endif %}vocab="http://schema.org/" typeof="WebPage"> | ||
{% include skiplinks/skiplinks.html %} | ||
{% include header/header.html %} | ||
<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement"> | ||
<div class="wb-prettify all-pre hidden"></div> | ||
<h1 id="wb-cont" property="name">{{ page-title }}</h1> | ||
<p>This is version 3.0 (demoted) of the page details.</p> | ||
<pre><code><section class="pagedetails"> | ||
<h2 class="wb-inv">Page details</h2> | ||
<div class="row"> | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
<div data-ajax-replace="https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-en.html" class="wb-disable-allow"><!-- Will always be replaced by data-ajax --></div> | ||
</div> | ||
<div class="wb-share col-sm-4 col-md-3" data-wb-share='{"lnkClass": "btn btn-default btn-block"}'></div> | ||
<div class="col-xs-12"> | ||
<dl id="wb-dtmd"> | ||
<dt>Date modified:</dt> | ||
<dd><time property="dateModified">2024-06-21</time></dd> | ||
</dl> | ||
</div> | ||
</div> | ||
</section></code></pre> | ||
{% include page-details/footer-3.0.html %} | ||
</main> | ||
{% include footers/footer.html %} | ||
{% include resources-inc/footer.html %} | ||
</body> | ||
</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,58 @@ | ||
--- | ||
{ | ||
"layout": null, | ||
"title": "Page de contenu comprenant les détails de la page version 3.0 (rétrogradé)", | ||
"language": "fr", | ||
"altLangPage": "page-details-v3-en.html", | ||
"secondlevel": false, | ||
"dateModified": "2024-06-21", | ||
"share": "true", | ||
"feedback": "true" | ||
} | ||
--- | ||
{%- include variable-core.liquid -%} | ||
{%- capture page-title -%} | ||
{%- if page.title -%} | ||
{{ page.title }} | ||
{%- else -%} | ||
Page untitled | ||
{%- endif -%} | ||
{%- endcapture -%} | ||
<!DOCTYPE html> | ||
<html class="no-js" lang="{{ i18nText-lang | default: 'en' }}" dir="{{ i18nText-langDir | default: 'ltr' }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
{% include license.html %} | ||
<title>{{ page-title }} - {{ i18nText-siteTitle }}</title> | ||
<meta content="width=device-width, initial-scale=1" name="viewport"> | ||
{% include metadata.html %} | ||
{% include resources-inc/head.html %} | ||
</head> | ||
<body {% if page.pageclass %}class="{{ page.pageclass }}" {% endif %}vocab="http://schema.org/" typeof="WebPage"> | ||
{% include skiplinks/skiplinks.html %} | ||
{% include header/header.html %} | ||
<main class="container" property="mainContentOfPage" resource="#wb-main" typeof="WebPageElement"> | ||
<div class="wb-prettify all-pre hidden"></div> | ||
<h1 id="wb-cont" property="name">{{ page-title }}</h1> | ||
<p>Il s'agit de la version 3.0 (rétrogradée) des détails de la page.</p> | ||
<pre><code><section class="pagedetails"> | ||
<h2 class="wb-inv">Détails de la page</h2> | ||
<div class="row"> | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
<div data-ajax-replace="https://www.canada.ca/etc/designs/canada/wet-boew/assets/feedback/page-feedback-fr.html" class="wb-disable-allow"><!-- Sera toujours remplacé par data-ajax --></div> | ||
</div> | ||
<div class="wb-share col-sm-4 col-md-3" data-wb-share='{"lnkClass": "btn btn-default btn-block"}'></div> | ||
<div class="col-xs-12"> | ||
<dl id="wb-dtmd"> | ||
<dt>Date de modification :</dt> | ||
<dd><time property="dateModified">2024-06-21</time></dd> | ||
</dl> | ||
</div> | ||
</div> | ||
</section></code></pre> | ||
{% include page-details/footer-3.0.html %} | ||
</main> | ||
{% include footers/footer.html %} | ||
{% include resources-inc/footer.html %} | ||
</body> | ||
</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,30 @@ | ||
<section class="pagedetails{% if include.addContainer %} container{% endif %}"> | ||
<h2 class="wb-inv">{{ i18nText-pageDetails }}</h2> | ||
|
||
{% assign col-modified = "col-xs-12" %} | ||
{%- if page.feedback and page.feedback != "" -%} | ||
{%- if page.share -%} | ||
{% assign col-share = "col-sm-4 col-md-3" %} | ||
{%- endif -%} | ||
{%- else -%} | ||
{%- if page.share -%} | ||
{% assign col-share = "col-sm-4 col-md-3 col-sm-push-8 col-md-push-9" %} | ||
{% assign col-modified = "col-sm-6 col-md-5 col-lg-4 col-sm-pull-4 col-md-pull-3" %} | ||
{%- endif -%} | ||
{%- endif -%} | ||
|
||
<div class="row"> | ||
{%- if page.feedback and page.feedback != "" -%} | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
{% include feedback/feedback.html %} | ||
</div> | ||
{%- endif -%} | ||
{%- if page.share -%} | ||
<div class="wb-share {{ col-share }}" data-wb-share='{"lnkClass": "btn btn-default btn-block"}'></div> | ||
{%- endif -%} | ||
|
||
<div class="{{ col-modified }}"> | ||
{%- include date-modified/date-modified.html -%} | ||
</div> | ||
</div> | ||
</section> |
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,30 +1,12 @@ | ||
<section class="pagedetails{% if include.addContainer %} container{% endif %}"> | ||
<h2 class="wb-inv">{{ i18nText-pageDetails }}</h2> | ||
|
||
{% assign col-modified = "col-xs-12" %} | ||
{%- if page.feedback and page.feedback != "" -%} | ||
{%- if page.share -%} | ||
{% assign col-share = "col-sm-4 col-md-3" %} | ||
{%- endif -%} | ||
{%- else -%} | ||
{%- if page.share -%} | ||
{% assign col-share = "col-sm-4 col-md-3 col-sm-push-8 col-md-push-9" %} | ||
{% assign col-modified = "col-sm-6 col-md-5 col-lg-4 col-sm-pull-4 col-md-pull-3" %} | ||
{%- endif -%} | ||
{%- endif -%} | ||
|
||
<div class="row"> | ||
{%- if page.feedback and page.feedback != "" -%} | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
{% include feedback/feedback.html %} | ||
</div> | ||
{%- endif -%} | ||
{%- if page.share -%} | ||
<div class="wb-share {{ col-share }}" data-wb-share='{"lnkClass": "btn btn-default btn-block"}'></div> | ||
{%- endif -%} | ||
|
||
<div class="{{ col-modified }}"> | ||
{%- include date-modified/date-modified.html -%} | ||
<div class="col-sm-8 col-md-9 col-lg-9"> | ||
{% include feedback/feedback.html %} | ||
</div> | ||
</div> | ||
{%- endif -%} | ||
{%- include date-modified/date-modified.html -%} | ||
</section> |
Oops, something went wrong.