Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_tee jays angelos
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ramon Angelo Enriquez
widget_tee jays angelos
Commits
67c4d621
Commit
67c4d621
authored
May 09, 2022
by
Paul Angelo Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added base.html template
parent
a13a56d8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
43 additions
and
21 deletions
+43
-21
detail.html
...ays_angelos/assignments/templates/assignments/detail.html
+9
-5
index.html
...jays_angelos/assignments/templates/assignments/index.html
+19
-15
base.html
widget_tee_jays_angelos/templates/base.html
+14
-0
settings.py
widget_tee_jays_angelos/widget_tee_jays_angelos/settings.py
+1
-1
No files found.
widget_tee_jays_angelos/assignments/templates/assignments/detail.html
View file @
67c4d621
<h1>
{{course}} {{course.course_title}}
</h1>
<li>
Name: {{assignment.name}}
</li>
<li>
Description: {{assignment.description}}
</li>
<li>
Perfect Score: {{assignment.max_points}}
</li>
<li>
Passing Score: {{assignment.passing_score}}
</li>
{% extends 'base.html' %}
{% block content %}
<h1>
{{course}} {{course.course_title}}
</h1>
<li>
Name: {{assignment.name}}
</li>
<li>
Description: {{assignment.description}}
</li>
<li>
Perfect Score: {{assignment.max_points}}
</li>
<li>
Passing Score: {{assignment.passing_score}}
</li>
{% endblock %}
widget_tee_jays_angelos/assignments/templates/assignments/index.html
View file @
67c4d621
<h1>
Assignments Per Course
</h1>
{% if course_list %}
{% extends 'base.html' %}
{% block content %}
<h1>
Assignments Per Course
</h1>
{% if course_list %}
{% for course in course_list %}
<li>
{{course}} {{course.course_title}} {{course.section}}
{% for assignment in assignment_list %}
{% if assignment.course_code == course %}
<ul>
<li>
<a
href=
"{% url 'detail' assignment.name%}
"
>
{{assignment.name}}
</a></li>
<li>
<a
href=
"/assignments/{{assignment.name}}/
"
>
{{assignment.name}}
</a></li>
</ul>
{% endif %}
{% endfor %}
...
...
@@ -13,4 +16,5 @@
{% endfor %}
{% else %}
<p>
No assignments are available
</p>
{% endif %}
{% endif %}
{% endblock %}
widget_tee_jays_angelos/templates/base.html
0 → 100644
View file @
67c4d621
{% load static %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset =
"UTF-8"
<
meta
http-equiv=
"X-UA-COMPATIBLE"
content=
"IE=edge"
>
<meta
name=
"viewport"
content =
"width=device-width, inital-scale=1.0"
>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
widget_tee_jays_angelos/widget_tee_jays_angelos/settings.py
View file @
67c4d621
...
...
@@ -62,7 +62,7 @@ ROOT_URLCONF = 'widget_tee_jays_angelos.urls'
TEMPLATES
=
[
{
'BACKEND'
:
'django.template.backends.django.DjangoTemplates'
,
'DIRS'
:
[],
'DIRS'
:
[
os
.
path
.
join
(
BASE_DIR
,
'templates'
)
],
'APP_DIRS'
:
True
,
'OPTIONS'
:
{
'context_processors'
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment