-
Notifications
You must be signed in to change notification settings - Fork 69
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
Added ARIA attributes to essential elements #232
Open
SisiVero
wants to merge
11
commits into
creativecommons:main
Choose a base branch
from
SisiVero:aria-attributes
base: main
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 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
d46d9a9
addingg aria attributes
SisiVero c6fd06f
updated 404 page
SisiVero be867f1
Merge branch 'main' changes into aria-attributes
SisiVero e408c20
conflict resolved.
SisiVero 640d151
restore unix line endings using dos2unix
TimidRobot 570fbbf
restore unix line endings using dos2unix
TimidRobot b70138c
restore unix line endings using dos2unix
TimidRobot a607b46
branch updated
SisiVero 70f1bdb
redundant aria attrbutes removed and support for translation added wh…
SisiVero 3a1f67e
faq file patched
SisiVero 1d779e8
django translation syntax errors corrected.
SisiVero 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 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,12 +1,12 @@ | ||
{% extends 'legal_db/base.html' %} | ||
|
||
{% block body_content %} | ||
<main class="hero"> | ||
<div class="hero-body has-text-centered"> | ||
<h1 class="hero-title-big">404</h1> | ||
<h2 class="b-header">Page Not Found!</h2> | ||
<p class="margin-vertical-normal">The page you are looking for doesn't exist.</p> | ||
<a href="{% url 'home' %}" class="button">Return Home</a> | ||
</div> | ||
</main> | ||
{% endblock %} | ||
{% extends 'legal_db/base.html' %} | ||
{% block body_content %} | ||
<main class="hero"> | ||
<div class="hero-body has-text-centered"> | ||
<h1 class="hero-title-big">404</h1> | ||
<h2 class="b-header">Page Not Found!</h2> | ||
<p class="margin-vertical-normal">The page you are looking for doesn't exist.</p> | ||
<a href="{% url 'home' %}" class="button" aria-label="Return to the home page">Return Home</a> | ||
</div> | ||
</main> | ||
{% endblock %} |
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,60 +1,60 @@ | ||
{% extends 'legal_db/base.html' %} | ||
|
||
{% block body_content %} | ||
<section class="hero case"> | ||
<div class="container"> | ||
{% include "legal_db/partials/_breadcrumb.html" %} | ||
<h2 class="hero-title b-header">{{ case.name }}</h2> | ||
</div> | ||
</section> | ||
<section class="details"> | ||
<div class="container"> | ||
<div class="columns"> | ||
<aside class="column is-one-third"> | ||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Country</h4> | ||
<p>{{ case.country.name }}</p> | ||
</div> | ||
|
||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Court(s)</h4> | ||
<p>{{ case.courts }}</p> | ||
</div> | ||
|
||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Year of resolution</h4> | ||
<p>{{ case.decision_year|default:'<span class="has-text-grey">Unknown</span>' }} | ||
</p> | ||
</div> | ||
|
||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Relevant materials</h4> | ||
<ul class="links-list"> | ||
{% for link in case.link_list %} | ||
<li class="margin-vertical-small"> | ||
{% if link.label %}<b>{{ link.label }}</b>:{% endif %} | ||
<a href="{{ link.url }}"> | ||
{% if link.title %} {{ link.title }} | ||
{% else %} {{ link.url }} | ||
{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</aside> | ||
<article class="column is-two-thirds"> | ||
<h3 class="b-header margin-bottom-small">Background information</h3> | ||
<p>{{ case.background }}</p> | ||
<br/> | ||
<h3 class="b-header margin-bottom-small">Case summary</h3> | ||
<p>{{ case.summary }}</p> | ||
<hr/> | ||
{% for tag in case.tags %} | ||
<a href="{% url 'case_index' %}?tags%5B%5D={{ tag }}" class="button tag case margin-horizontal-small">{{ tag }}</a> | ||
{% endfor %} | ||
</article> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} | ||
{% extends 'legal_db/base.html' %} | ||
{% block body_content %} | ||
<section class="hero case"> | ||
<div class="container"> | ||
{% include "legal_db/partials/_breadcrumb.html" %} | ||
<h2 class="hero-title b-header">{{ case.name }}</h2> | ||
</div> | ||
</section> | ||
<section class="details"> | ||
<div class="container"> | ||
<div class="columns"> | ||
<aside class="column is-one-third"> | ||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Country</h4> | ||
<p>{{ case.country.name }}</p> | ||
</div> | ||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Court(s)</h4> | ||
<p>{{ case.courts }}</p> | ||
</div> | ||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Year of resolution</h4> | ||
<p>{{ case.decision_year|default:'<span class="has-text-grey">Unknown</span>' }} | ||
</p> | ||
</div> | ||
<div class="margin-bottom-bigger"> | ||
<h4 class="b-header margin-bottom-small">Relevant materials</h4> | ||
<ul class="links-list"> | ||
{% for link in case.link_list %} | ||
<li class="margin-vertical-small"> | ||
{% if link.label %}<b>{{ link.label }}</b>:{% endif %} | ||
<a href="{{ link.url }}"> | ||
{% if link.title %} {{ link.title }} | ||
{% else %} {{ link.url }} | ||
{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</aside> | ||
<article class="column is-two-thirds"> | ||
<h3 class="b-header margin-bottom-small">Background information</h3> | ||
<p>{{ case.background }}</p> | ||
<br/> | ||
<h3 class="b-header margin-bottom-small">Case summary</h3> | ||
<p>{{ case.summary }}</p> | ||
<hr/> | ||
{% for tag in case.tags %} | ||
<a href="{% url 'case_index' %}?tags%5B%5D={{ tag }}" class="button tag case margin-horizontal-small">{{ tag }}</a> | ||
{% endfor %} | ||
</article> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
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
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,77 +1,79 @@ | ||
{% extends 'legal_db/base.html' %} | ||
{% load static %} | ||
|
||
{% block body_content %} | ||
<section class="hero case"> | ||
<div class="container"> | ||
{% include "legal_db/partials/_breadcrumb.html" %} | ||
<h1 class="hero-title title is-2">Cases</h1> | ||
<div class="contribute-card"> | ||
<article class="card entry-post link no-border is-hidden-touch"> | ||
<a href="{% url 'case_submit' %}" class="has-background-tomato"> | ||
<span class="card-content has-bottom-link"> | ||
<h2 class="card-title">Contribute</h2> | ||
<span class="content">Do you want to submit a legal dispute to the database?</span> | ||
<strong class="link-arrow">Submit a case <i class="icon chevron-right"></i></strong> | ||
</span> | ||
</a> | ||
</article> | ||
</div> | ||
<p class="hero-description body-big">Here you will find information on litigation that involves or directly affects Creative Commons legal tools. Click on the link to each case name for more details on the dispute.</p> | ||
</div> | ||
</section> | ||
|
||
<section class="cases"> | ||
<div class="container"> | ||
<form id="search" role="search" method="get"> | ||
{% include "legal_db/partials/_search.html" %} | ||
|
||
<div id="tags" aria-expanded="true"> | ||
{% for tag in tags %} | ||
<label for="tag-check-{{ forloop.counter }}" id="tag-label-{{ forloop.counter }}" | ||
class="button tag case margin-right-small margin-vertical-smaller{% if tag.checked %} selected{% endif %}"> | ||
{{ tag.name }} | ||
<input type="checkbox" class="tag__check" name="tags[]" | ||
id="tag-check-{{ forloop.counter }}" | ||
value="{{ tag.name }}" | ||
{% if tag.checked %} checked{% endif %} | ||
hidden> | ||
</label> | ||
{% endfor %} | ||
</div> | ||
</form> | ||
|
||
<div class="margin-vertical-big table-container"> | ||
<table class="table is-bordered is-striped is-fullwidth"> | ||
<thead> | ||
<tr> | ||
<th>Country</th> | ||
<th>Case name</th> | ||
<th>License</th> | ||
<th>Year of resolution</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for case in cases %} | ||
<tr> | ||
<td>{{ case.country.name }}</td> | ||
<td><a href="{% url 'case_detail' case.id %}" class="has-text-dark-slate-blue">{{ case.name }}</a> </td> | ||
<td class="is-narrow"> | ||
{% if not case.license %} <span class="has-text-grey">Unknown</span> | ||
{% else %} {{ case.license }} {% endif %} | ||
</td> | ||
<td class="number-cell">{{ case.decision_year|default:"" }}</td> | ||
</tr> | ||
{% empty %} | ||
<tr><td class="has-text-centered" colspan="4">No cases are available. Try different filters or search terms.</td></tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} | ||
|
||
{% block js_content %} | ||
<script src="{% static 'listing.js' %}" defer></script> | ||
{% endblock %} | ||
{% extends 'legal_db/base.html' %} | ||
{% load static %} | ||
|
||
{% block body_content %} | ||
<section class="hero case"> | ||
<div class="container"> | ||
{% include "legal_db/partials/_breadcrumb.html" %} | ||
<h1 class="hero-title title is-2">Cases</h1> | ||
<div class="contribute-card"> | ||
<article class="card entry-post link no-border is-hidden-touch"> | ||
<a href="{% url 'case_submit' %}" class="has-background-tomato" aria-label="Submit a legal dispute to the database"> | ||
<span class="card-content has-bottom-link"> | ||
<h2 class="card-title">Contribute</h2> | ||
<span class="content">Do you want to submit a legal dispute to the database?</span> | ||
<strong class="link-arrow">Submit a case <i class="icon chevron-right"></i></strong> | ||
</span> | ||
</a> | ||
</article> | ||
</div> | ||
<p class="hero-description body-big">Here you will find information on litigation that involves or directly affects Creative Commons legal tools. Click on the link to each case name for more details on the dispute.</p> | ||
</div> | ||
</section> | ||
|
||
<section class="cases"> | ||
<div class="container"> | ||
<form id="search" role="search" method="get"> | ||
{% include "legal_db/partials/_search.html" %} | ||
|
||
<div id="tags" aria-expanded="true"> | ||
{% for tag in tags %} | ||
<label for="tag-check-{{ forloop.counter }}" id="tag-label-{{ forloop.counter }}" | ||
class="button tag case margin-right-small margin-vertical-smaller{% if tag.checked %} selected{% endif %}" | ||
role="checkbox" aria-checked="{% if tag.checked %}true{% else %}false{% endif %}" | ||
> | ||
{{ tag.name }} | ||
<input type="checkbox" class="tag__check" name="tags[]" | ||
id="tag-check-{{ forloop.counter }}" | ||
value="{{ tag.name }}" | ||
{% if tag.checked %} checked{% endif %} | ||
hidden> | ||
</label> | ||
{% endfor %} | ||
</div> | ||
</form> | ||
|
||
<div class="margin-vertical-big table-container"> | ||
<table class="table is-bordered is-striped is-fullwidth"> | ||
<thead> | ||
<tr> | ||
<th>Country</th> | ||
<th>Case name</th> | ||
<th>License</th> | ||
<th>Year of resolution</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for case in cases %} | ||
<tr> | ||
<td>{{ case.country.name }}</td> | ||
<td><a href="{% url 'case_detail' case.id %}" class="has-text-dark-slate-blue">{{ case.name }}</a> </td> | ||
<td class="is-narrow"> | ||
{% if not case.license %} <span class="has-text-grey">Unknown</span> | ||
{% else %} {{ case.license }} {% endif %} | ||
</td> | ||
<td class="number-cell">{{ case.decision_year|default:"" }}</td> | ||
</tr> | ||
{% empty %} | ||
<tr><td class="has-text-centered" colspan="4">No cases are available. Try different filters or search terms.</td></tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} | ||
|
||
{% block js_content %} | ||
<script src="{% static 'listing.js' %}" defer></script> | ||
{% endblock %} |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put the string in translation tags: