Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_father when can i be on my own i have the hello world to see
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
father when can i be on my own i have the hello world to see
widget_father when can i be on my own i have the hello world to see
Commits
2e31081f
Verified
Commit
2e31081f
authored
May 16, 2022
by
Angelo Esteban
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
used proper flex layout, added assignment image
parent
720b75e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
DetailView.html
assignments/templates/assignments/DetailView.html
+1
-1
ListView.html
assignments/templates/assignments/ListView.html
+7
-6
No files found.
assignments/templates/assignments/DetailView.html
View file @
2e31081f
...
@@ -18,7 +18,7 @@ Name: {{assignment.name}}<br>
...
@@ -18,7 +18,7 @@ Name: {{assignment.name}}<br>
Description: {% if assignment.description != None and assignment.description != '' %}{{ assignment.description }}{% else %}No description provided.{% endif %}
<br>
Description: {% if assignment.description != None and assignment.description != '' %}{{ assignment.description }}{% else %}No description provided.{% endif %}
<br>
Perfect score: {{assignment.max_points}}
<br>
Perfect score: {{assignment.max_points}}
<br>
Passing score: {{assignment.passing_score}}
<br>
Passing score: {{assignment.passing_score}}
<br>
Image: {% if assignment.image != None %}
<br>
{{assignment.image}}
{% else %}No image provided.{% endif %}
<br>
Image: {% if assignment.image != None %}
<br>
<img
src=
"{% get_media_prefix %}{{assignment.image}}"
id=
"assignment-image"
alt=
"Image failed to load."
>
{% else %}No image provided.{% endif %}
<br>
</span>
</span>
{% endblock %}
{% endblock %}
\ No newline at end of file
assignments/templates/assignments/ListView.html
View file @
2e31081f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
{% load static %}
{% load static %}
{% block styles %}
{% block styles %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'assignments/css/style.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static 'assignments/css/style.css' %}"
>
{% endblock %}
{% endblock %}
{% block title %}Assignments{% endblock %}
{% block title %}Assignments{% endblock %}
...
@@ -14,10 +14,10 @@
...
@@ -14,10 +14,10 @@
{% if all_courses.count == 0 %}
{% if all_courses.count == 0 %}
<p
id=
"no-courses"
>
No courses found.
</p>
<p
id=
"no-courses"
>
No courses found.
</p>
{% else %}
{% else %}
<ul
id=
"table"
>
{% for course in all_courses %}
{% for course in all_courses %}
<ul
class=
"table"
>
<li>
{{course.code}} {{course.title}} {{course.section}}
</li>
<li>
<strong>
{{course.code}} {{course.title}} {{course.section}}
</strong>
</li>
<ul>
<ul
class=
"subtable"
>
{% if course.assignment_set.all.count == 0 %}
{% if course.assignment_set.all.count == 0 %}
<li>
No assignments found.
</li>
<li>
No assignments found.
</li>
{% else %}
{% else %}
...
@@ -26,7 +26,8 @@
...
@@ -26,7 +26,8 @@
{% endfor %}
{% endfor %}
{% endif %}
{% endif %}
</ul>
</ul>
{% endfor %}
</ul>
</ul>
<div
class=
"table-gutter"
></div>
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
{% endblock %}
\ No newline at end of file
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