Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widgets_FEKK
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
Kyla Martin
widgets_FEKK
Commits
f2ca6600
Commit
f2ca6600
authored
May 18, 2022
by
Emmanuel Linus T. Evangelista
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into evangelista/forum
parents
2093cf64
4f7f5afc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
9 deletions
+21
-9
README.md
README.md
+3
-2
assignment_list.html
...KK/Assignments/templates/Assignments/assignment_list.html
+9
-5
assignments.html
WidgetFEKK/Assignments/templates/assignments.html
+1
-1
settings.py
WidgetFEKK/WidgetFEKK/settings.py
+3
-1
urls.py
WidgetFEKK/WidgetFEKK/urls.py
+5
-0
No files found.
README.md
View file @
f2ca6600
# Widgets FEKK
CSCI 40 - A and C
## Lab
1
## Lab
Contributors:
-
Emmanuel Linus Evangelista (Forum)
-
Kyla Sydney Martin (Announcements)
...
...
@@ -10,3 +10,4 @@ Contributors:
Video Link for Lab 1: https://drive.google.com/file/d/1iZN6jfImQB5sxjsqfMPsWcjvSW20x3ei/view?usp=sharing
Video Link for Lab 2: https://drive.google.com/drive/folders/1T3HRmLxzgxY3vQLCxVyrm97430llL96i?usp=sharing
Video Link for Lab 3: https://drive.google.com/drive/folders/1_50dYF_dUWmvoTX1KkqkKXG9AWM3xUS8?usp=sharing
\ No newline at end of file
WidgetFEKK/Assignments/templates/Assignments/assignment_list.html
View file @
f2ca6600
...
...
@@ -13,12 +13,16 @@
<div
id =
"courses"
>
<ul>
<div
class =
"wrapper"
>
{% for
a in assignments
%}
{% for
c in course
%}
<div
class =
"block"
>
<h2>
{{a.course}}
</h2>
<h2>
{{ c }}
</h2>
{% for a in assignments %}
{% if c == a.course%}
<li>
<a
href=
"/assignment/{{ a.pk }}/details"
>
{{a.name}}
</a>
</li>
{%endif%}
{%endfor%}
</div>
{%endfor%}
</div>
...
...
WidgetFEKK/Assignments/templates/assignments.html
View file @
f2ca6600
...
...
@@ -16,6 +16,6 @@
<div
id =
"courses"
>
<h1>
List of courses:
</h1>
</div>
{% include "Assignments/assignment_list.html" with assignments=assignment %}
{% include "Assignments/assignment_list.html" with assignments=assignment
course=course
%}
{%endblock content%}
\ No newline at end of file
WidgetFEKK/WidgetFEKK/settings.py
View file @
f2ca6600
...
...
@@ -10,7 +10,7 @@ For the full list of settings and their values, see
https://docs.djangoproject.com/en/4.0/ref/settings/
"""
from
os
import
getenv
from
os
import
getenv
,
path
from
pathlib
import
Path
from
dotenv
import
load_dotenv
...
...
@@ -19,6 +19,8 @@ load_dotenv()
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR
=
Path
(
__file__
)
.
resolve
()
.
parent
.
parent
MEDIA_ROOT
=
path
.
join
(
BASE_DIR
,
'media'
)
MEDIA_URL
=
'/uploads/'
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/4.0/howto/deployment/checklist/
...
...
WidgetFEKK/WidgetFEKK/urls.py
View file @
f2ca6600
...
...
@@ -13,6 +13,8 @@ Including another URLconf
1. Import the include() function: from django.urls import include, path
2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
"""
from
django.conf
import
settings
from
django.conf.urls.static
import
static
from
django.contrib
import
admin
from
django.urls
import
path
,
include
import
Announcements.views
as
Announcements_views
...
...
@@ -34,3 +36,6 @@ urlpatterns = [
]
if
settings
.
DEBUG
:
urlpatterns
+=
static
(
settings
.
MEDIA_URL
,
document_root
=
settings
.
MEDIA_ROOT
)
\ 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