Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
d229de28
authored
May 12, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: more annoying notifications
parent
d61b84b0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
circle/dashboard/static/dashboard/dashboard.css
+19
-0
circle/dashboard/static/dashboard/dashboard.js
+2
-1
circle/dashboard/templates/base.html
+1
-1
No files found.
circle/dashboard/static/dashboard/dashboard.css
View file @
d229de28
...
@@ -634,3 +634,22 @@ textarea[name="list-new-namelist"] {
...
@@ -634,3 +634,22 @@ textarea[name="list-new-namelist"] {
.table
thead
>
tr
>
th
{
.table
thead
>
tr
>
th
{
border-bottom
:
1px
;
border-bottom
:
1px
;
}
}
.badge-pulse
{
-webkit-animation-name
:
'pulse_animation'
;
-webkit-animation-duration
:
1000ms
;
-webkit-transform-origin
:
70%
70%
;
-webkit-animation-iteration-count
:
infinite
;
-webkit-animation-timing-function
:
linear
;
}
@-webkit-keyframes
pulse_animation
{
0
%
{
-webkit-transform
:
scale
(
1
);
}
30
%
{
-webkit-transform
:
scale
(
1
);
}
40
%
{
-webkit-transform
:
scale
(
1.18
);
}
50
%
{
-webkit-transform
:
scale
(
1
);
}
60
%
{
-webkit-transform
:
scale
(
1
);
}
70
%
{
-webkit-transform
:
scale
(
1.08
);
}
80
%
{
-webkit-transform
:
scale
(
1
);
}
100
%
{
-webkit-transform
:
scale
(
1
);
}
}
circle/dashboard/static/dashboard/dashboard.js
View file @
d229de28
...
@@ -276,7 +276,8 @@ $(function () {
...
@@ -276,7 +276,8 @@ $(function () {
});
});
$
(
"#notification-button a"
).
click
(
function
()
{
$
(
"#notification-button a"
).
click
(
function
()
{
$
(
'.notification-messages'
).
load
(
"/dashboard/notifications/"
);
$
(
'.notification-messages'
).
load
(
"/dashboard/notifications/"
);
$
(
'#notification-button a span[class*="badge-pulse"]'
).
remove
();
});
});
});
});
...
...
circle/dashboard/templates/base.html
View file @
d229de28
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<ul
class=
"nav navbar-nav pull-right"
>
<ul
class=
"nav navbar-nav pull-right"
>
<li
class=
"dropdown"
id=
"notification-button"
>
<li
class=
"dropdown"
id=
"notification-button"
>
<a
href=
"{% url "
dashboard
.
views
.
notifications
"
%}"
style=
"color: white; font-size: 12px;"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
<a
href=
"{% url "
dashboard
.
views
.
notifications
"
%}"
style=
"color: white; font-size: 12px;"
class=
"dropdown-toggle"
data-toggle=
"dropdown"
>
{% trans "Notifications" %}{% if NEW_NOTIFICATIONS_COUNT > 0 %}
<span
class=
"badge"
>
{{ NEW_NOTIFICATIONS_COUNT }}
</span>
{% endif %}
{% trans "Notifications" %}{% if NEW_NOTIFICATIONS_COUNT > 0 %}
<span
class=
"badge
badge-pulse
"
>
{{ NEW_NOTIFICATIONS_COUNT }}
</span>
{% endif %}
</a>
</a>
<ul
class=
"dropdown-menu notification-messages"
>
<ul
class=
"dropdown-menu notification-messages"
>
<li>
{% trans "Loading..." %}
</li>
<li>
{% trans "Loading..." %}
</li>
...
...
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