Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_someone here is possessed by an owl
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
Laetitia de Castro
widget_someone here is possessed by an owl
Commits
66a3d8f6
Commit
66a3d8f6
authored
May 25, 2022
by
Anya Habana
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added users sitewide url
parent
d33f9bee
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
4 additions
and
4 deletions
+4
-4
urls.cpython-38.pyc
homepage/__pycache__/urls.cpython-38.pyc
+0
-0
views.cpython-38.pyc
homepage/__pycache__/views.cpython-38.pyc
+0
-0
index.html
homepage/templates/users/index.html
+2
-3
urls.py
homepage/urls.py
+1
-1
settings.cpython-38.pyc
widget/__pycache__/settings.cpython-38.pyc
+0
-0
urls.cpython-38.pyc
widget/__pycache__/urls.cpython-38.pyc
+0
-0
urls.py
widget/urls.py
+1
-0
No files found.
homepage/__pycache__/urls.cpython-38.pyc
View file @
66a3d8f6
No preview for this file type
homepage/__pycache__/views.cpython-38.pyc
View file @
66a3d8f6
No preview for this file type
homepage/templates/users/index.html
View file @
66a3d8f6
...
@@ -13,11 +13,10 @@
...
@@ -13,11 +13,10 @@
{% if user_list %}
{% if user_list %}
<ol>
<ol>
{% for user in user_list %}
{% for user in user_list %}
<li><a
href=
"/
homepage/users/{{ user.id }}/details/
"
>
{{ user.last_name }}, {{ user.first_name }} {{ user.middle_name }}
</a></li>
<li><a
href=
"/
users/{{ user.id }}/details
"
>
{{ user.last_name }}, {{ user.first_name }} {{ user.middle_name }}
</a></li>
{% endfor %}
{% endfor %}
</ol>
</ol>
{% else %}
{% else %}
<p>
There are no widget users currently.
</p>
<p>
Th
{% endif %}
{% endblock %}
{% endblock %}
homepage/urls.py
View file @
66a3d8f6
...
@@ -4,7 +4,7 @@ from .views import WidgetUserDetailView, index
...
@@ -4,7 +4,7 @@ from .views import WidgetUserDetailView, index
urlpatterns
=
[
urlpatterns
=
[
path
(
''
,
index
,
name
=
'index'
),
path
(
''
,
index
,
name
=
'index'
),
path
(
'
users/
<int:pk>/details/'
,
WidgetUserDetailView
.
as_view
(),
name
=
'details'
),
path
(
'<int:pk>/details/'
,
WidgetUserDetailView
.
as_view
(),
name
=
'details'
),
]
]
app_name
=
'homepage'
app_name
=
'homepage'
\ No newline at end of file
widget/__pycache__/settings.cpython-38.pyc
View file @
66a3d8f6
No preview for this file type
widget/__pycache__/urls.cpython-38.pyc
View file @
66a3d8f6
No preview for this file type
widget/urls.py
View file @
66a3d8f6
...
@@ -22,4 +22,5 @@ urlpatterns = [
...
@@ -22,4 +22,5 @@ urlpatterns = [
path
(
'forum/'
,
include
(
'forum.urls'
,
namespace
=
'forum'
)),
path
(
'forum/'
,
include
(
'forum.urls'
,
namespace
=
'forum'
)),
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
'homepage'
)),
path
(
'homepage/'
,
include
(
'homepage.urls'
,
namespace
=
'homepage'
)),
path
(
'assignments/'
,
include
(
'assignments.urls'
,
namespace
=
'assignments'
)),
path
(
'assignments/'
,
include
(
'assignments.urls'
,
namespace
=
'assignments'
)),
path
(
'users/'
,
include
(
'homepage.urls'
,
namespace
=
'users'
)),
]
]
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