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
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
Show 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 () {
var
pk
=
$
(
this
).
data
(
"vm"
);
if
(
star
.
hasClass
(
"fa-star-o"
))
{
star
.
removeClass
(
"fa-star-o"
).
addClass
(
"fa-star"
);
star
.
prop
(
"title"
,
"Unfavourite"
);
star
.
prop
(
"title"
,
gettext
(
"Unfavourite"
)
);
}
else
{
star
.
removeClass
(
"fa-star"
).
addClass
(
"fa-star-o"
);
star
.
prop
(
"title"
,
"Mark as favourite"
);
star
.
prop
(
"title"
,
gettext
(
"Mark as favourite"
)
);
}
$
.
ajax
({
url
:
"/dashboard/favourite/"
,
...
...
@@ -447,8 +447,8 @@ function generateVmHTML(pk, name, host, icon, _status, fav, is_last) {
'</span>'
+
'<small class="text-muted"> '
+
host
+
'</small>'
+
'<div class="pull-right dashboard-vm-favourite" data-vm="'
+
pk
+
'">'
+
(
fav
?
'<i class="fa fa-star text-primary title-favourite" title="
Unfavourite
"></i>'
:
'<i class="fa fa-star-o text-primary title-favourite" title="
Mark as favorite
"></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="
'
+
gettext
(
"Mark as favorite"
)
+
'
"></i>'
)
+
'</div>'
+
'<div style="clear: both;"></div>'
+
'</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