Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
43de3dcb
authored
Nov 13, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dashboard: js i18n for fav titles
parent
66100895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/dashboard/static/dashboard/dashboard.js
+4
-4
No files found.
circle/dashboard/static/dashboard/dashboard.js
View file @
43de3dcb
...
@@ -137,10 +137,10 @@ $(function () {
...
@@ -137,10 +137,10 @@ $(function () {
var
pk
=
$
(
this
).
data
(
"vm"
);
var
pk
=
$
(
this
).
data
(
"vm"
);
if
(
star
.
hasClass
(
"fa-star-o"
))
{
if
(
star
.
hasClass
(
"fa-star-o"
))
{
star
.
removeClass
(
"fa-star-o"
).
addClass
(
"fa-star"
);
star
.
removeClass
(
"fa-star-o"
).
addClass
(
"fa-star"
);
star
.
prop
(
"title"
,
"Unfavourite"
);
star
.
prop
(
"title"
,
gettext
(
"Unfavourite"
)
);
}
else
{
}
else
{
star
.
removeClass
(
"fa-star"
).
addClass
(
"fa-star-o"
);
star
.
removeClass
(
"fa-star"
).
addClass
(
"fa-star-o"
);
star
.
prop
(
"title"
,
"Mark as favourite"
);
star
.
prop
(
"title"
,
gettext
(
"Mark as favourite"
)
);
}
}
$
.
ajax
({
$
.
ajax
({
url
:
"/dashboard/favourite/"
,
url
:
"/dashboard/favourite/"
,
...
@@ -447,8 +447,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
...
@@ -447,8 +447,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
'</span>'
+
'</span>'
+
'<small class="text-muted"> '
+
host
+
'</small>'
+
'<small class="text-muted"> '
+
host
+
'</small>'
+
'<div class="pull-right dashboard-vm-favourite" data-vm="'
+
pk
+
'">'
+
'<div class="pull-right dashboard-vm-favourite" data-vm="'
+
pk
+
'">'
+
(
fav
?
'<i class="fa fa-star text-primary title-favourite" title="
Unfavourite
"></i>'
:
(
fav
?
'<i class="fa fa-star text-primary title-favourite" title="
'
+
gettext
(
"Unfavourite"
)
+
'
"></i>'
:
'<i class="fa fa-star-o text-primary title-favourite" title="
Mark as favorite
"></i>'
)
+
'<i class="fa fa-star-o text-primary title-favourite" title="
'
+
gettext
(
"Mark as favorite"
)
+
'
"></i>'
)
+
'</div>'
+
'</div>'
+
'<div style="clear: both;"></div>'
+
'<div style="clear: both;"></div>'
+
'</a>'
;
'</a>'
;
...
...
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