codeforlife-portal 7.1.1__py2.py3-none-any.whl → 7.2.0__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of codeforlife-portal might be problematic. Click here for more details.

Files changed (28) hide show
  1. {codeforlife_portal-7.1.1.dist-info → codeforlife_portal-7.2.0.dist-info}/METADATA +24 -24
  2. {codeforlife_portal-7.1.1.dist-info → codeforlife_portal-7.2.0.dist-info}/RECORD +27 -24
  3. {codeforlife_portal-7.1.1.dist-info → codeforlife_portal-7.2.0.dist-info}/WHEEL +1 -1
  4. example_project/urls.py +2 -0
  5. portal/__init__.py +1 -1
  6. portal/forms/teach.py +1 -1
  7. portal/static/portal/img/RR_logo_grass_background.png +0 -0
  8. portal/static/portal/img/logo_python_den.svg +21 -0
  9. portal/static/portal/img/python_den.png +0 -0
  10. portal/static/portal/img/python_den_banner.svg +26 -0
  11. portal/static/portal/img/thumbnail_educate_rapid_router.png +0 -0
  12. portal/static/portal/img/thumbnail_python_den.png +0 -0
  13. portal/static/portal/sass/modules/_colours.scss +1 -0
  14. portal/static/portal/sass/partials/_text.scss +5 -0
  15. portal/templates/portal/contribute.html +6 -0
  16. portal/templates/portal/partials/header.html +10 -0
  17. portal/templates/portal/play/student_dashboard.html +39 -8
  18. portal/templates/portal/play.html +34 -0
  19. portal/templates/portal/teach/teacher_edit_class.html +1 -51
  20. portal/templates/portal/teach.html +35 -0
  21. portal/tests/snapshots/snap_test_partials.py +48 -0
  22. portal/tests/test_views.py +46 -15
  23. portal/urls.py +1 -1
  24. portal/views/student/play.py +26 -18
  25. portal/views/teacher/teach.py +3 -7
  26. portal/templates/portal/play/independent_student_dashboard.html +0 -51
  27. {codeforlife_portal-7.1.1.dist-info → codeforlife_portal-7.2.0.dist-info}/LICENSE.md +0 -0
  28. {codeforlife_portal-7.1.1.dist-info → codeforlife_portal-7.2.0.dist-info}/top_level.txt +0 -0
@@ -1,51 +0,0 @@
1
- {% extends 'portal/base.html' %}
2
- {% load static %}
3
- {% load app_tags %}
4
-
5
- {% block subNav %}
6
- <section class="banner banner--independent-student row mx-0">
7
- <div>
8
- <h1 class="banner__text--primary">
9
- Welcome, {{ user|make_into_username }}
10
- </h1>
11
- <h4>This is where you can access your games</h4>
12
- </div>
13
- </section>
14
- {% endblock subNav %}
15
-
16
- {% block content %}
17
- <div id="play_dashboard_page">
18
- <div class="background container">
19
- <section><h4>Your games</h4></section>
20
- <div class="grid-games col-center col-sm-4">
21
- <div class="card">
22
- <div class="card__images">
23
- <img title="Rapid Router" alt="Rapid Router"
24
- class="card__image"
25
- src="{% static 'portal/img/RR_logo_green.svg' %}">
26
- </div>
27
- <div class="card__text">
28
- <h5 class="card__title">Rapid Router</h5>
29
- <p>Rapid Router guides you, and makes learning to code easy
30
- and great fun. Using Blockly, you can advance through
31
- the levels to become an Ocado delivery hero.</p>
32
- <div class="button-group">
33
- <a href="{% url 'levels'%}"
34
- class="button button--primary">Play</a>
35
- </div>
36
- </div>
37
- </div>
38
- </div>
39
- </div>
40
- <div class="background background--primary">
41
- <div class="container">
42
- <div class="col-center text-center col-sm-9">
43
- <section><img title="Rapid Router logo" alt="Rapid Router logo" src="{% static 'portal/img/RR_logo_simple.png' %}"></section>
44
- <h4>You have completed {{ num_completed }} Rapid Router level{{ num_completed|pluralize }}!</h4>
45
- <h4>You have {{ num_top_scores }} top score{{ num_top_scores|pluralize }}!</h4>
46
- <h4>You have a score of {{ total_score }}. There are {{ total_available_score }} available points.</h4>
47
- </div>
48
- </div>
49
- </div>
50
- </div>
51
- {% endblock %}