Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-wiki
Overview
Overview
Details
Activity
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
OpenEdx
django-wiki
Commits
288e25a2
Commit
288e25a2
authored
Aug 22, 2012
by
benjaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge user menu and notifications menu
parent
3c9c2f15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
wiki/plugins/notifications/templates/wiki/plugins/notifications/menubaritem.html
+9
-7
wiki/templates/wiki/base.html
+8
-1
No files found.
wiki/plugins/notifications/templates/wiki/plugins/notifications/menubaritem.html
View file @
288e25a2
{% load i18n sekizai_tags %}
<script
type=
"text/javascript"
>
URL_NOTIFY_GET_NEW
=
"{% url notify:json_get %}"
;
URL_NOTIFY_MARK_READ
=
"{% url notify:json_mark_read_base %}"
;
URL_NOTIFY_GOTO
=
"{% url notify:goto_base %}"
;
</script>
<script
type=
"text/javascript"
src=
"{{ STATIC_URL }}wiki/plugins/notifications/js/ui.js"
></script>
{% comment %}
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
...
...
@@ -20,3 +14,11 @@
</ul>
</li>
{% endcomment %}
{% load i18n sekizai_tags %}
<script
type=
"text/javascript"
>
URL_NOTIFY_GET_NEW
=
"{% url notify:json_get %}"
;
URL_NOTIFY_MARK_READ
=
"{% url notify:json_mark_read_base %}"
;
URL_NOTIFY_GOTO
=
"{% url notify:goto_base %}"
;
</script>
<script
type=
"text/javascript"
src=
"{{ STATIC_URL }}wiki/plugins/notifications/js/ui.js"
></script>
wiki/templates/wiki/base.html
View file @
288e25a2
...
...
@@ -118,7 +118,7 @@
{% include "wiki/plugins/notifications/menubaritem.html" %}
<li
class=
"dropdown"
>
<a
href=
"#"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
<span
class=
"
icon-user"
>
</span>
<span
class=
"
badge notification-cnt"
>
0
</span>
{{ user }}
<b
class=
"caret"
></b>
</a>
...
...
@@ -129,6 +129,13 @@
{% trans "Log out" %}
</a>
</li>
<li
class=
"divider"
></li>
<div
class=
"notification-list"
>
<div
class=
"notification-li-container"
></div>
<li
class=
"notifications-empty"
><a
href=
"#"
><em>
{% trans "No notifications" %}
</em></a></li>
<li
class=
"divider"
></li>
<li><a
href=
"#"
onclick=
"notify_mark_read()"
>
{% trans "Clear notifications list" %}
</a></li>
</div>
</ul>
</li>
</ul>
...
...
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