Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/new features in footer #1669

Merged
merged 12 commits into from
Sep 20, 2023
1 change: 1 addition & 0 deletions app/articles/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"terms": {"en": "/terms", "fr": "/conditions-dutilisation"},
"whynotify": {"en": "/why-gc-notify", "fr": "/pourquoi-notification-gc"},
"incidents": {"en": "/system-status", "fr": "/etat-du-systeme"},
"new_features": {"en": "/new-features", "fr": "/nouvelles-fonctionnalites"},
}


Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/scheduler.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/stylesheets/index.css

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions app/assets/stylesheets/tailwind/toolkit/wp.css
Original file line number Diff line number Diff line change
Expand Up @@ -211,5 +211,29 @@
margin-top: -0.5rem;
}

/** Block
wp-block-post-template
after page-content
*/
ul.wp-block-post-template {
@apply list-none p-0;
}

.wp-block-post-template > li {
@apply flex flex-col;
}

.wp-block-post-template h2.wp-block-post-title {
@apply mb-0;
}

.wp-block-post-date {
@apply mb-gutterHalf text-small text-gray-700;
}

.wp-block-post-content p + ul {
margin-top: -0.5rem;
}

/*! purgecss end ignore */
}
1 change: 1 addition & 0 deletions app/templates/partials/nav/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
{% else %}
{{ nav_link_dark(id_key='nav-footer-primary-why-notify', label=_('Why GC Notify'), href=gca_url_for('whynotify'), class="-ml-2") }}
{{ nav_link_dark(id_key='nav-footer-primary-features', label=_('Features'), href=gca_url_for('features'), class="-ml-2") }}
{{ nav_link_dark(id_key='nav-footer-primary-new-features', label=_('New features'), href=gca_url_for('new_features'), class="-ml-2") }}
{{ nav_link_dark(id_key='nav-footer-primary-activity', label=_('Activity on GC Notify'), href=url_for('main.activity'), class="-ml-2") }}
{% endif %}
</div>
Expand Down
3 changes: 2 additions & 1 deletion app/translations/csv/fr.csv
Original file line number Diff line number Diff line change
Expand Up @@ -1759,4 +1759,5 @@
"Daily usage","Utilisation quotidienne"
"Message limits reset each night at 7pm Eastern Time","Les limites d’envoi sont réinitialisées chaque soir à 19 h, heure de l’Est"
"Maximum 612 characters. Some messages may be too long due to custom content.","612 caractères au maximum. Certains messages peuvent être trop longs en raison de leur contenu personnalisé."
"Too many characters","Limite de caractère atteinte"
"Too many characters","Limite de caractère atteinte"
"New features","Nouvelles fonctionnalités"
1 change: 1 addition & 0 deletions tests_cypress/cypress/e2e/admin/a11y/gca_pages.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const fullPageList = [
{ en: '/updating-contact-information', fr: '/maintenir-a-jour-les-coordonnees' },
{ en: '/using-a-spreadsheet', fr: '/utiliser-une-feuille-de-calcul' },
{ en: '/why-gc-notify', fr: '/pourquoi-notification-gc' },
{ en: '/new-features', fr: '/nouvelles-fonctionnalites' },
];

describe('GCA static pages', () => {
Expand Down