Skip to content

Commit 7d9fff8

Browse files
Merge pull request #552 from python-discord/cj/minor-adjustments
Minor Code Jam Adjustments
2 parents 54a3239 + 877d3c2 commit 7d9fff8

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

pydis_site/templates/events/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,6 @@ <h2 class="title is-4">PyWeek</h2>
121121
{% endblock %}
122122

123123
{% block sidebar %}
124-
{% include "events/sidebar/upcoming-event.html" %}
124+
{% include "events/sidebar/ongoing-event.html" %}
125125
{% include "events/sidebar/events-list.html" %}
126126
{% endblock %}

pydis_site/templates/events/pages/code-jams/_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ <h2 class="title is-4" id="how-experienced-do-i-need-to-be-to-join-a-code-jam">
6666
{% endblock %}
6767

6868
{% block sidebar %}
69-
{% include "events/sidebar/code-jams/upcoming-code-jam.html" %}
69+
{% include "events/sidebar/code-jams/ongoing-code-jam.html" %}
7070
{% include "events/sidebar/code-jams/previous-code-jams.html" %}
7171
{% include "events/sidebar/code-jams/useful-information.html" %}
7272
{% endblock %}

pydis_site/templates/events/pages/code-jams/code-style-guide.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,15 @@ <h3>Naming</h3>
9191

9292
def my_function():
9393
my_variable = "value"</code></pre>
94-
<p>Class and type variable names should use the camel case style.</p>
94+
<p>Class and type variable names should use the PascalCase style.</p>
9595
<pre><code class="language-python">from typing import List
9696

9797

9898
class MyClass:
9999
pass
100100

101101
ListOfMyClass = List[MyClass]</code></pre>
102-
<p>Constant names should be all uppercase, and words should be separated with underscores.</p>
102+
<p>Constant names should use the SCREAMING_SNAKE_CASE style.</p>
103103
<pre><code class="language-python">MY_CONSTANT = 1</code></pre>
104104
<p>
105105
You should avoid single-character names, as these might be confusing.

pydis_site/templates/events/sidebar/code-jams/upcoming-code-jam.html renamed to pydis_site/templates/events/sidebar/code-jams/ongoing-code-jam.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load static %}
22

33
<div class="box">
4-
<h4 class="menu-label">Upcoming Code Jam</h4>
4+
<h4 class="menu-label">Ongoing Code Jam</h4>
55
<a href="{% url "events:page" path="code-jams/8" %}">
66
<img src="{% static "images/events/summer_code_jam_2021/banner.png" %}" alt="Summer Code Jam 2021">
77
</a>

pydis_site/templates/events/sidebar/upcoming-event.html renamed to pydis_site/templates/events/sidebar/ongoing-event.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% load static %}
22

33
<div class="box">
4-
<p class="menu-label">Upcoming Event</p>
4+
<p class="menu-label">Ongoing Event</p>
55
<a href="{% url "events:page" path="code-jams/8" %}">
66
<img src="{% static "images/events/summer_code_jam_2021/banner.png" %}" alt="Summer Code Jam 2021">
77
</a>

pydis_site/templates/home/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<!-- Mobile-only Notice -->
1313
<section id="mobile-notice" class="message is-primary is-hidden-tablet">
1414
<a href="/events/code-jams/8/">
15-
<img src="{% static "images/events/summer_code_jam_2021/front_page_banners/sign_up_now.png" %}" alt="Summer Code Jam 2021">
15+
<img src="{% static "images/events/summer_code_jam_2021/front_page_banners/currently_live.png" %}" alt="Summer Code Jam 2021">
1616
</a>
1717
</section>
1818

@@ -48,7 +48,7 @@
4848
{# Code Jam banner #}
4949
<div id="wave-hero-right" class="column is-half">
5050
<a href="/events/code-jams/8/">
51-
<img src="{% static "images/events/summer_code_jam_2021/front_page_banners/sign_up_now.png" %}" alt="Summer Code Jam 2021">
51+
<img src="{% static "images/events/summer_code_jam_2021/front_page_banners/currently_live.png" %}" alt="Summer Code Jam 2021">
5252
</a>
5353
</div>
5454
</div>

0 commit comments

Comments
 (0)