Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
I
ipv6-dot-work
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ungleich-public
ipv6-dot-work
Commits
1b893ac2
Commit
1b893ac2
authored
Mar 23, 2019
by
William Colmenares
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set active status in navbar
parent
e1f65371
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
jobs/templates/base.html
jobs/templates/base.html
+3
-4
jobs/views.py
jobs/views.py
+5
-0
No files found.
jobs/templates/base.html
View file @
1b893ac2
...
...
@@ -23,19 +23,18 @@
<div
class=
"collapse navbar-collapse justify-content-end"
id=
"navbarSupportedContent"
>
<ul
class=
"navbar-nav ml-auto"
>
<li
class=
"nav-item dropdown"
>
<li
class=
"nav-item
{{ application_page }}
dropdown"
>
<a
class=
"nav-link dropdown-toggle"
href=
"#"
role=
"button"
id=
"dropdownMenuLink"
data-toggle=
"dropdown"
aria-haspopup=
"true"
aria-expanded=
"false"
>
Applications
</a>
<ul
class=
"dropdown-menu"
aria-labelledby=
"dropdownMenuLink"
>
<a
class=
"dropdown-item"
href=
"{% url 'jobs:my_applications' %}"
>
Your applications
</a>
<a
class=
"dropdown-item"
href=
"{% url 'jobs:applications_others' %}"
>
Applications to your jobs
</a>
</ul>
</li>
<li
class=
"nav-item"
>
<li
class=
"nav-item
{{ messages_page }}
"
>
<a
class=
"nav-link"
href=
"{% url 'jobs:messages_inbox' %}"
>
Messages
</a>
</li>
<li
class=
"nav-item justify-content-end"
>
<li
class=
"nav-item
{{ my_jobs_page }}
justify-content-end"
>
<a
class=
"nav-link"
href=
"{% url 'jobs:my_jobs' %}"
>
Your Jobs
</a>
{# {% url 'jobs:job_list' %}#}
</li>
<a
class=
"btn btn-outline-primary mx-1"
href=
"{% url 'jobs:job_create' %}"
>
Post a job
</a>
<div
class=
"dropdown-divider"
></div>
...
...
jobs/views.py
View file @
1b893ac2
...
...
@@ -161,6 +161,7 @@ class ListOwnApplications(ListView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
ListOwnApplications
,
self
).
get_context_data
(
**
kwargs
)
context
[
'title'
]
=
'Your Applications'
context
[
'application_page'
]
=
'active'
return
context
...
...
@@ -176,6 +177,7 @@ class ListJobApplications(ListView):
context
=
super
(
ListJobApplications
,
self
).
get_context_data
(
**
kwargs
)
context
[
'title'
]
=
'Applications to your jobs'
context
[
'form'
]
=
MessageForm
context
[
'application_page'
]
=
'active'
return
context
...
...
@@ -201,6 +203,7 @@ class MesssageInbox(LoginRequiredMixin, ListView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
MesssageInbox
,
self
).
get_context_data
(
**
kwargs
)
context
[
'title'
]
=
'Messages Inbox'
context
[
'messages_page'
]
=
'active'
return
context
...
...
@@ -220,6 +223,7 @@ class Conversation(LoginRequiredMixin, ListView):
context
=
super
(
Conversation
,
self
).
get_context_data
(
**
kwargs
)
context
[
'form'
]
=
MessageForm
context
[
'person'
]
=
User
.
objects
.
get
(
id
=
self
.
kwargs
[
'pk'
])
context
[
'messages_page'
]
=
'active'
return
context
...
...
@@ -235,6 +239,7 @@ class MyJobs(LoginRequiredMixin, ListView):
def
get_context_data
(
self
,
**
kwargs
):
context
=
super
(
MyJobs
,
self
).
get_context_data
(
**
kwargs
)
context
[
'title'
]
=
'Your jobs'
context
[
'my_jobs_page'
]
=
'active'
return
context
...
...
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