Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,8 @@ repos:
rev: 0.2.2
hooks:
- id: checkmake
- repo: https://github.com/adamchainz/djade-pre-commit
rev: 1.6.0
hooks:
- id: djade
args: [--target-version, "5.2"]
9 changes: 5 additions & 4 deletions dashboard/templates/base_dashboard.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{% extends "base.html" %}
{% load i18n %}
{% load static %}
{% load i18n static %}

{% block sectionid %}dashboard{% endblock %}

{% block title %}{% translate 'Development dashboard' %}{% endblock %}

{% block layout_class %}full-width{% endblock %}

{% block header %}
<h1>Development <em>dashboard</em></h1>
{% endblock %}
{% endblock header %}

{% block javascript %}
<script src="{% static "js/lib/jquery.min.js" %}"></script>
<script src="{% static "js/lib/jquery.flot.min.js" %}"></script>
<script src="{% static "js/dashboard/utils.js" %}"></script>
{% endblock %}
{% endblock javascript %}
4 changes: 2 additions & 2 deletions dashboard/templates/dashboard/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ <h2><a href="{{ metric.link }}">{{ metric }}</a></h2>
</div>
<a class="link-readmore back-link" href="{% url "dashboard-index" host "dashboard" %}">{% translate "All metrics" %}</a>
</div>
{% endblock %}
{% endblock content %}

{% block javascript %}
{{ block.super }}

<script src="{% static "js/dashboard/detail.js" %}"></script>
{% endblock %}
{% endblock javascript %}
7 changes: 3 additions & 4 deletions dashboard/templates/dashboard/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends "base_dashboard.html" %}
{% load i18n %}
{% load static %}
{% load i18n static %}

{% block content %}
<div>
Expand All @@ -23,10 +22,10 @@ <h3><a href="{{ report.metric.link }}">{{ report.metric.name }}</a></h3>
{% blocktranslate with timestamp=data.0.latest.timestamp|timesince %}Updated {{ timestamp }} ago.{% endblocktranslate %}
</p>
</div>
{% endblock %}
{% endblock content %}

{% block javascript %}
{{ block.super }}

<script src="{% static "js/dashboard/index.js" %}"></script>
{% endblock %}
{% endblock javascript %}
2 changes: 1 addition & 1 deletion djangoproject/templates/400.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
<h2>{% translate "Bad request" %}</h2>

<p>{% translate "Yikes, this was a bad request. Not sure why, but it sure was bad." %}</p>
{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/403.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
<h2>{% translate "Permission denied" %}</h2>

<p>{% translate "Apologies, but it seems as if you're not allowed to access this page. We honestly hope this is just a mistake." %}</p>
{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ <h2>{% translate "Page not found" %}</h2>
Here's a link to the <a href="{{ homepage_url }}">homepage</a>. You know, just in case.
{% endblocktranslate %}</p>

{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/410.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ <h2>{% translate "Page removed." %}</h2>
{% endblocktranslate %}
</p>

{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/500.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ <h2>{% translate "Page unavailable" %}</h2>
<p>{% translate "We're messing around with things internally, and the server had a bit of a hiccup." %}</p>

<p>{% translate "Please try again later." %}</p>
{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/accounts/delete_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ <h2>{% translate "Are you sure?" %}</h2>
</div>
</form>
{% endif %}
{% endblock %}
{% endblock content %}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ <h2>{% translate "Account deleted" %}</h2>
around on our <a href="{{ community_index_url }}">various community spaces</a>, online and off.
{% endblocktranslate %}
</p>
{% endblock %}
{% endblock content %}
4 changes: 2 additions & 2 deletions djangoproject/templates/accounts/edit_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1>{% translate "Edit your profile" %}</h1>
<input class="cta" type="submit" value="{% translate "Save" %}"/>
</div>
</form>
{% endblock %}
{% endblock content %}

{% block content-related %}
<div role="complementary">
Expand All @@ -56,4 +56,4 @@ <h2 id="aside-header">{% translate "Help" %}</h2>
</a>
</p>
</div>
{% endblock %}
{% endblock content-related %}
4 changes: 2 additions & 2 deletions djangoproject/templates/accounts/user_profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ <h2 id="aside-header">
</li>
</ul>
</div>
{% endblock %}
{% endblock content-related %}

{% block content %}
<div class="user-info">
Expand All @@ -54,7 +54,7 @@ <h2>{% translate "Statistics on Django core contributions:" %}</h2>
</ul>
{% endif %}

{% with user_obj.owned_feeds.all as feeds %}
{% with feeds=user_obj.owned_feeds.all %}
{% if feeds %}
<h2>{% translate "Community feeds:" %}</h2>
<ul>
Expand Down
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/delete-confirm.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ <h2 class="deck">{% blocktranslate %}Really delete {{ feed }}?{% endblocktransla
{% csrf_token %}
<p class="submit"><input class="cta" type="submit" value="{% translate "Yes, delete the feed." %}"></p>
</form>
{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/denied.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
<h1>{% translate "Community" %}</h1>

<h2>{% translate "Sorry, you can't do that." %}</h2>
{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/ecosystem.html
Original file line number Diff line number Diff line change
Expand Up @@ -459,4 +459,4 @@ <h3 id="utilities-miscellaneous">
</li>
</ul>

{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/edit-feed.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ <h2 class="deck">{% blocktranslate %}Edit {{ feed }}:{% endblocktranslate %}</h2
{% endif %}
</form>

{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/feeditem_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ <h2><a href="{{ item.link }}">{{ item.title }}</a></h2>
</div>
{% endif %}

{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,4 @@ <h2 class="bullet-icon"><i class="icon icon-rss blue"></i> {{ feedtype.name }}</
</li>
{% endfor %}
</ul>
{% endblock %}
{% endblock content %}
11 changes: 5 additions & 6 deletions djangoproject/templates/aggregator/local-django-community.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% block content %}

{# Group meetups by country and then by location #}
{# Group meetups by country and then by location #}
{% regroup django_communities|dictsort:"continent" by continent as grouped_django_communities %}


Expand All @@ -14,14 +14,14 @@ <h1>{% translate "Local Django Communities" %}</h1>
{% if grouped_django_communities %}<h3 id="table-of-contents">{% translate "Table of contents" %}<a class="plink" href="#table-of-contents"> ¶</a></h3>{% endif %}
<ul>
{% for local_django_community in grouped_django_communities %}
<li><a href="#{{ local_django_community.grouper.title | lower }}-meetups">{{ local_django_community.grouper.title }}</a></li>
<li><a href="#{{ local_django_community.grouper.title|lower }}-meetups">{{ local_django_community.grouper.title }}</a></li>
{% endfor %}
</ul>


{% for local_django_community in grouped_django_communities %}
<div id="{{ local_django_community.grouper.title | lower }}-meetups" class="section">
<h2>{{ local_django_community.grouper.title }} <a class="plink" href="#{{ local_django_community.grouper.title | lower }}-meetups">¶</a></h2>
<div id="{{ local_django_community.grouper.title|lower }}-meetups" class="section">
<h2>{{ local_django_community.grouper.title }} <a class="plink" href="#{{ local_django_community.grouper.title|lower }}-meetups">¶</a></h2>
<ul>
{% for django_community in local_django_community.list %}
<li>
Expand Down Expand Up @@ -50,5 +50,4 @@ <h3 id="{{ django_community.slug }}-meetup">{{ django_community.name }} <a class
{% translate "Local Django communities are coming soon. Please check back later." %}

{% endfor %}
{##}
{% endblock %}
{% endblock content %}
2 changes: 1 addition & 1 deletion djangoproject/templates/aggregator/my-feeds.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ <h2 class="deck">{% translate "Manage your community aggregator feeds:" %}</h2>
{# <li>Claim a feed already in the system.</li> #}
</ul>
</div>
{% endblock %}
{% endblock content %}
18 changes: 9 additions & 9 deletions djangoproject/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="keywords" content="Python, Django, framework, open-source" />
<meta name="description" content="{% block description %}{% endblock %}" />
<meta name="fediverse:creator" content="@django@fosstodon.org" />
{% block link_rel_tags %}{% endblock link_rel_tags %}
{% block link_rel_tags %}{% endblock %}
<!-- Favicons -->
<link rel="apple-touch-icon" href="{% static "img/icon-touch.png" %}">
<link rel="icon" sizes="192x192" href="{% static "img/icon-touch.png" %}">
Expand All @@ -23,12 +23,12 @@
<meta property="og:title" content="{% block og_title %}Django{% endblock %}" />
<meta property="og:description" content="{% block og_description %}{% spaceless %}
The web framework for perfectionists with deadlines.
{% endspaceless %}{% endblock %}" />
{% endspaceless %}{% endblock og_description %}" />
<meta property="og:image" content="{% block og_image %}{% static "img/logos/django-logo-negative.png" %}{% endblock %}" />
<meta property="og:image:alt" content="{% block og_image_alt %}Django logo{% endblock %}" />
<meta property="og:image:width" content="{% block og_image_width %}1200{% endblock %}" />
<meta property="og:image:height" content="{% block og_image_height %}546{% endblock %}" />
<meta property="og:image:type" content="{% block og_image_type%}image/png{% endblock %}"/>
<meta property="og:image:type" content="{% block og_image_type %}image/png{% endblock %}"/>
<meta property="og:url" content="{{ request.build_absolute_uri }}" />
<meta property="og:site_name" content="Django Project" />

Expand All @@ -42,7 +42,7 @@
<link rel="stylesheet" href="{% static "css/output.css" %}" >

<script src="{% static "js/mod/switch-dark-mode.js" %}"></script>
{% block head_extra %}{% endblock head_extra %}
{% block head_extra %}{% endblock %}
</head>

<body id="{% block sectionid %}generic{% endblock %}" class="{% block body_class %}{% endblock %}">
Expand Down Expand Up @@ -75,7 +75,7 @@
{% endfor %}
</ul>
{% endif %}
{% endblock %}
{% endblock messages %}

{% block content %}{% endblock %}
<a href="#top" class="backtotop"><i class="icon icon-chevron-up"></i> Back to Top</a>
Expand All @@ -91,7 +91,7 @@

{# Used to display urgent news, events, and alerts #}
{% block alert %}
{% endblock %}
{% endblock alert %}

<!-- SVGs -->
<svg xmlns="http://www.w3.org/2000/svg">
Expand All @@ -103,9 +103,9 @@

{% block footer %}
{% include "includes/footer.html" %}
{% endblock %}
{% endblock footer %}

{% block body_extra %}{% endblock body_extra %}
{% block body_extra %}{% endblock %}

{% block javascript %}
{# Require JS #}
Expand All @@ -132,6 +132,6 @@
</script>
<script data-main="{% static "js/main.js" %}" src="{% static "js/lib/require.js" %}"></script>
<script src="{% static "js/djangoproject.js" %}"></script>
{% endblock %}
{% endblock javascript %}
</body>
</html>
6 changes: 3 additions & 3 deletions djangoproject/templates/base_2col.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
{% block columnwrap %}
<div id="content-main">
{% block content %}
{% endblock %}
{% endblock content %}
</div>
<!-- END #content-main -->
<aside id="content-related" class="sidebar" aria-labelledby="aside-header">
{% block content-related %}
{% endblock %}
{% endblock content-related %}
</aside>
<!-- END #content-related -->
{% endblock %}
{% endblock columnwrap %}
2 changes: 1 addition & 1 deletion djangoproject/templates/base_3col.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
{% block content-extra %}{% endblock %}
</div>
<!-- END #content-extra -->
{% endblock %}
{% endblock columnwrap %}
2 changes: 2 additions & 0 deletions djangoproject/templates/base_code.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
{% block sectionid %}code{% endblock %}

{% block og_title %}Django source code{% endblock %}

{% block og_description %}Django source code{% endblock %}

{% block title %}Code{% endblock %}

{% block layout_class %}full-width{% endblock %}

{% block header %}<h1>Django source code</h1>{% endblock %}
6 changes: 4 additions & 2 deletions djangoproject/templates/base_community.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
{% load fundraising_extras i18n %}

{% block og_title %}{% translate "Django Community" %}{% endblock %}

{% block og_description %}{% translate "Building the Django Community. Come join us!" %}{% endblock %}

{% block layout_class %}sidebar-right{% endblock %}

{% block title %}{% translate "Django Community" %}{% endblock %}

{% block header %}
Expand All @@ -18,7 +20,7 @@
{% endif %}
{% translate "Come join us!" %}
</p>
{% endblock %}
{% endblock header %}

{% block content-related %}
<div role="complementary">
Expand Down Expand Up @@ -63,4 +65,4 @@ <h3>{% translate "More Links" %}</h3>
<dd>{% translate "Download official logos" %}</dd>
</dl>
</div>
{% endblock %}
{% endblock content-related %}
7 changes: 4 additions & 3 deletions djangoproject/templates/base_foundation.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{% extends "base.html" %}
{% load fundraising_extras meetings i18n %}
{% load fundraising_extras i18n meetings %}

{% block og_title %}Django Software Foundation{% endblock %}

{% block layout_class %}sidebar-right{% endblock %}

{% block title %}Django Software Foundation{% endblock %}

{% block header %}
<p>Django Software Foundation</p>
{% endblock %}
{% endblock header %}

{% block content-related %}

Expand All @@ -32,4 +33,4 @@ <h3>{% translate "Latest DSF meeting minutes" %}</h3>
{% render_latest_meeting_minute_entries 2 %}
<a href="{% url 'foundation_meeting_archive_index' %}" class="link-readmore">{% translate "More meeting minutes" %}</a>
</div>
{% endblock %}
{% endblock content-related %}
Loading