Skip to content

Commit

Permalink
Merge pull request #286 from Kdoggg666/codeOfConduct
Browse files Browse the repository at this point in the history
Add Code of Conduct
  • Loading branch information
kenanwright1988 authored Jul 7, 2023
2 parents ab4b7c0 + 3774100 commit 3521af7
Show file tree
Hide file tree
Showing 7 changed files with 62 additions and 2 deletions.
3 changes: 3 additions & 0 deletions home/urls.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from django.urls import path
from . import views


urlpatterns = [
path("", views.home, name="home"),
path("faq/", views.faq, name="faq"),
path('codeofconduct/', views.codeofconduct, name="codeofconduct"),
path("plagiarism_policy/", views.plagiarism_policy,
name="plagiarism_policy"),
path("privacy_policy/", views.privacy_policy, name="privacy_policy"),
Expand All @@ -13,4 +15,5 @@
name="save_partnership_contact_form"),
path("500/", views.test_500),
path("404/", views.test_404),

]
7 changes: 7 additions & 0 deletions home/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,10 @@ def test_404(request):
response = render(request, '404.html')
response.status_code = 404
return response


def codeofconduct(request):
"""
A view to show the hackathon code of conduct.
"""
return render(request, 'code-of-conduct.html')
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ msgpack==0.6.2
mysqlclient==2.0.3
numpy==1.20.1
oauthlib==3.1.0
packaging==20.3
packaging==20.4
pandas==1.2.3
parso==0.8.1
pep517==0.8.2
Expand All @@ -47,7 +47,7 @@ python-dateutil==2.8.1
python-dotenv==0.14.0
python3-openid==3.2.0
pytoml==0.1.21
pytz==2020.1
pytz==2020.4
redis==4.1.1
requests==2.24.0
requests-oauthlib==1.3.0
Expand Down
2 changes: 2 additions & 0 deletions resources/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,5 @@ def edit_resource(request, resource_id):
}

return render(request, template, context)


44 changes: 44 additions & 0 deletions templates/code-of-conduct.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{% extends "base.html" %}
{% load static %}

{% block content %}

<div class="row my-4">
<div class="col-12 text-center mb-3">
<h1>CODE OF CONDUCT</h1>
<p class="mt-2">Here at Code Institute we want to create a safe and welcoming environment for all hackathon
participants.
It's important to keep open communication with your team throughout the hackathon, as suddenly dropping off
without letting them know can impact their progress and motivation, and may lead to incomplete tasks and
disorganization. By participating in this event, you agree to follow this code of conduct:</p>

<ol class="text-left">
<li>Be respectful and inclusive towards all other participants, facilitators, Hackteam, Staff or anyone else
involved in the hackathon. Discriminatory language or behavior of any kind is not allowed.
</li>
<li>Only register if you can commit a minimum of 3 hours a day.</li>
<li>Keep in contact with your team. All project discussions should take place within the dedicated team
Slack Channel. This way, our Hackathon Facilitators and Staff can stay up to date on your progress and
offer support when needed. We want to make sure that everyone on the team is aware of all goings-on.
</li>
<li>We want to ensure that everyone on the team has a chance to participate and add their unique skills and
perspectives. Let's work together to make sure everyone is included and valued. More experienced team
members should keep in mind that some members may be less experienced, and may need extra support and
guidance. By offering more time and assistance to those who may need it, we can ensure that everyone has
an opportunity to grow their skills and contribute to the project. Remember, this is a team effort and
we want to work together to achieve our goals rather than rushing ahead.
</li>
<li>If you need to drop off from the event before it ends, you must inform your team and the team
facilitator. If you drop off without informing your team, you will be ineligible to participate in the
next hackathon.
</li>
<li>If you witness or experience any behavior that violates this code of conduct, please report it
immediately to your facilitator, the HackTeam or the Code Institute Community Team.</li>

</ol>
<p>By participating in a Code Institute Hackathon, you agree to abide by this code of conduct and any decisions
made by Code Institute regarding violations of it.</p>
</div>
</div>

{% endblock %}
3 changes: 3 additions & 0 deletions templates/includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<div class="col-sm-6 col-md-3">
<h4>Policies</h4>
<ul>
<li>
<a href="{% url 'codeofconduct' %}" target="_blank">Code of Conduct</a>
</li>
<li>
<a href="http://bit.ly/Slack_Code_Conduct_CI" target="_blank">Community Guidelines</a>
</li>
Expand Down
1 change: 1 addition & 0 deletions templates/includes/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<div class="dropdown-menu" aria-labelledby="navbarResources">
<a class="dropdown-item" href="{% url 'faq' %}">FAQs</a>
<a class="dropdown-item" href="{% url 'resources' %}">Useful Resources</a>
<a class="dropdown-item" href="{% url 'codeofconduct' %}">Code of Conduct</a>
</div>
</li>
{% else %}
Expand Down

0 comments on commit 3521af7

Please sign in to comment.