-
Notifications
You must be signed in to change notification settings - Fork 82
setup a11y info pages on all three themes #4982
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
Open
StephDriver
wants to merge
17
commits into
master
Choose a base branch
from
b-4694-setup-a11y-info
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
e3c079f
a11y: #4694 a11y-info create templates
StephDriver 6c1a227
a11y: #4694 a11y-info link footers to a11y pages
StephDriver ac38db3
a11y: #4694 a11y-info theme pages include common a11y templates
StephDriver 48019c7
a11y: #4694 a11y-info press settings
StephDriver e60d1ca
a11y: #4694 a11y-info journal settings
StephDriver 30dc197
a11y: #4694 a11y-info press setting controls journal level
StephDriver fd50c1d
a11y: #4694 a11y-info olh a11y page layout updates
StephDriver 4d5c051
a11y: #4694 a11y-info journal name as a11y info heading
StephDriver d612d44
a11y: #4694 a11y-info remove journal migration
StephDriver 25365c7
a11y: #4694 a11y-info remove press migration
StephDriver 7e49121
a11y: #4694 a11y-info replace journal model as setting
StephDriver 08f6916
a11y: #4694 a11y-info typo replace ally with a11y
StephDriver f628120
a11y: #4694 a11y-info make journal setting press dependent
StephDriver c4cff55
a11y: #4694 a11y-info load settings on journal a11y template
StephDriver 27ccb18
a11y: #4694 a11y-info fix clean journal footer a11y link order
StephDriver 7684e02
a11y: #4694 a11y-info changes requested to press-dependent setting
StephDriver d6f408c
a11y: #4694 a11y-info migrate a11y info page settings
StephDriver File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
21 changes: 21 additions & 0 deletions
21
src/core/migrations/0110_setting_depends_on_press_field.py
This file contains hidden or 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,21 @@ | ||
# Generated by Django 4.2.20 on 2025-09-26 09:53 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("core", "0109_salutation_name_20250707_1420"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="setting", | ||
name="depends_on_press_field", | ||
field=models.CharField( | ||
blank=True, | ||
help_text="If set, this setting is only available when the specified press setting is enabled.", | ||
max_length=100, | ||
), | ||
), | ||
] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
31 changes: 31 additions & 0 deletions
31
src/press/migrations/0037_press_allow_journal_a11y_info_press_ally_info.py
This file contains hidden or 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,31 @@ | ||
# Generated by Django 4.2.20 on 2025-09-26 09:53 | ||
|
||
import core.model_utils | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("press", "0036_remove_press_password_reset_text_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="press", | ||
name="allow_journal_a11y_info", | ||
field=models.BooleanField( | ||
default=False, | ||
help_text="If enabled, journals can have their own accessibility information as well.", | ||
verbose_name="Allow Journal Accessibility Information", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="press", | ||
name="ally_info", | ||
field=core.model_utils.JanewayBleachField( | ||
blank=True, | ||
help_text="This is information about the accessiblity of user-content. It will appear on the accessibility page under the press name.", | ||
verbose_name="Press Accessibility Information", | ||
), | ||
), | ||
] |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
<h2> Janeway A11y Placeholder </h2> | ||
<p>janeway a11y text</p> |
This file contains hidden or 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,5 @@ | ||
{% load settings %} | ||
{% if request.press.allow_journal_a11y_info and request.journal|setting:'a11y_public_info'|safe %} | ||
<h2>{{ request.journal.name }}</h2> | ||
{{ request.journal|setting:'a11y_public_info'|safe }} | ||
{% endif %} |
This file contains hidden or 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,4 @@ | ||
{% if press.ally_info%} | ||
<h2>{{ press.name }}</h2> | ||
{{ press.ally_info|safe }} | ||
{% endif %} |
This file contains hidden or 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 @@ | ||
{% extends "core/base.html" %} | ||
|
||
{% block title %}{% trans "Accessibility" %}{% endblock %} | ||
|
||
{% block body %} | ||
<section id="content" aria-labelledby="cms-title"> | ||
<div class="row"> | ||
<div class="{% if page.display_toc %}border-right medium-8 small-12{% else %}medium-12{% endif %} columns"> | ||
<div id="main_article"> | ||
<h1 id="cms-title">{% trans "Accessibility" %} </h1> | ||
<hr aria-hidden="true" /> | ||
{% include "common/elements/a11y/janeway.html" %} | ||
{% include "common/elements/a11y/press.html" %} | ||
{% include "common/elements/a11y/journal.html" %} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
{% endblock body %} |
This file contains hidden or 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 hidden or 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,19 @@ | ||
{% extends "core/base.html" %} | ||
|
||
{% block title %}{% trans "Accessibility" %}{% endblock %} | ||
|
||
{% block body %} | ||
<section id="content" aria-labelledby="cms-title"> | ||
<div class="row"> | ||
<div class="{% if page.display_toc %}border-right medium-8 small-12{% else %}medium-12{% endif %} columns"> | ||
<div id="main_article"> | ||
<h1 id="cms-title">{% trans "Accessibility" %} </h1> | ||
<hr aria-hidden="true" /> | ||
{% include "common/elements/a11y/janeway.html" %} | ||
{% include "common/elements/a11y/press.html" %} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</section> | ||
{% endblock body %} |
This file contains hidden or 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 hidden or 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,15 @@ | ||
{% extends "core/base.html" %} | ||
|
||
{% load static %} | ||
{% load i18n %} | ||
|
||
{% block title %}{% trans "Accessibility" %}{% endblock %} | ||
|
||
{% block body %} | ||
<h1> {% trans "Accessibility" %} </h1> | ||
|
||
{% include "common/elements/a11y/janeway.html" %} | ||
{% include "common/elements/a11y/press.html" %} | ||
{% include "common/elements/a11y/journal.html" %} | ||
|
||
{% endblock body %} |
This file contains hidden or 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 hidden or 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 hidden or 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,14 @@ | ||
{% extends "core/base.html" %} | ||
|
||
{% load static %} | ||
{% load i18n %} | ||
|
||
{% block title %}{% trans "Accessibility" %}{% endblock %} | ||
|
||
{% block body %} | ||
<h1> {% trans "Accessibility" %} </h1> | ||
|
||
{% include "common/elements/a11y/janeway.html" %} | ||
{% include "common/elements/a11y/press.html" %} | ||
|
||
{% endblock body %} |
This file contains hidden or 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,16 @@ | ||
{% extends "core/base.html" %} | ||
|
||
{% load static %} | ||
{% load i18n %} | ||
{% load materializecss %} | ||
|
||
{% block title %}{% trans "Accessibility" %}{% endblock %} | ||
|
||
{% block body %} | ||
<h1> {% trans "Accessibility" %} </h1> | ||
|
||
{% include "common/elements/a11y/janeway.html" %} | ||
{% include "common/elements/a11y/press.html" %} | ||
{% include "common/elements/a11y/journal.html" %} | ||
|
||
{% endblock body %} |
This file contains hidden or 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 hidden or 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,15 @@ | ||
{% extends "core/base.html" %} | ||
|
||
{% load static %} | ||
{% load i18n %} | ||
{% load materializecss %} | ||
|
||
{% block title %}{% trans "Accessibility" %}{% endblock %} | ||
|
||
{% block body %} | ||
<h1> {% trans "Accessibility" %} </h1> | ||
|
||
{% include "common/elements/a11y/janeway.html" %} | ||
{% include "common/elements/a11y/press.html" %} | ||
|
||
{% endblock body %} |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.