Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Alipins
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
Angelico Ruiz T. Teaño
widget_Alipins
Commits
e4060d83
Commit
e4060d83
authored
May 14, 2022
by
Angelico Ruiz T. Teaño
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update assignments page to also show images
parent
4b29953b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
detail.html
widget_alipins/assignments/templates/assignments/detail.html
+4
-0
index.html
widget_alipins/assignments/templates/assignments/index.html
+1
-1
style.css
widget_alipins/static/assignments/style.css
+7
-2
No files found.
widget_alipins/assignments/templates/assignments/detail.html
View file @
e4060d83
{% extends 'base.html' %}
{% load static %}
{% block styles %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'assignments/style.css' %}"
>
{% endblock %}
...
...
@@ -9,6 +10,9 @@
<h1>
{{assignment.course.course_code}} | {{assignment.course.course_title}} - {{assignment.course.section}}
</h1>
<div>
<h2>
Assignment: {{assignment.name}}
</h2>
{% if assignment.assignment_image %}
<img
src =
"{{ assignment.assignment_image.url }}"
><br>
{% endif %}
<p>
<span>
Description:
</span>
{{assignment.description}}
<br><br>
<span>
Passing Score:
</span>
<span
class=
"passing"
>
{{assignment.passing_score}}
</span><br>
...
...
widget_alipins/assignments/templates/assignments/index.html
View file @
e4060d83
{% extends 'base.html' %}
{% load static %}
{% block styles %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'assignments/style.css' %}"
>
{% endblock %}
{% block title %}Assignments{% endblock %}
{% block content %}
<h1>
Assignments Per Course
</h1>
...
...
widget_alipins/static/assignments/style.css
View file @
e4060d83
body
{
font-family
:
sans-serif
,
Arial
,
Helvetica
;
color
:
#2d384e
;
margin
:
40px
;
line-height
:
2
;
}
...
...
@@ -9,7 +8,7 @@ div {
margin
:
auto
;
width
:
50%
;
border
:
3px
solid
rgb
(
194
,
129
,
7
);
padding
:
20px
40px
40px
8
0px
;
padding
:
30px
40px
40px
4
0px
;
}
h1
{
...
...
@@ -20,6 +19,7 @@ h1 {
h2
{
font-size
:
28px
;
margin
:
0px
0px
10px
0px
;
}
li
{
...
...
@@ -40,4 +40,9 @@ span.perfect {
span
.passing
{
color
:
#bb5959
}
img
{
max-width
:
100%
;
height
:
auto
;
}
\ 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