Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
1a38a3d0
Commit
1a38a3d0
authored
Oct 20, 2014
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Zen mode works with bootstrap
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
40781a67
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
9 deletions
+16
-9
TODO
TODO
+0
-2
weblate/html/zen-response.html
weblate/html/zen-response.html
+0
-4
weblate/html/zen-units.html
weblate/html/zen-units.html
+1
-1
weblate/media/loader-bootstrap.js
weblate/media/loader-bootstrap.js
+15
-2
No files found.
TODO
View file @
1a38a3d0
...
...
@@ -2,7 +2,5 @@ TODO list for bootstrap migration
- revisit all custom CSS and see what should be applied
- revisit our JS code and check what needs to be ported
- convert remaining pages
- zen mode
- merge to master
- copy javascript translations
weblate/html/zen-response.html
View file @
1a38a3d0
{% load translations %}
{% if messages %}
{% for message in messages %}
{% show_message message.tags message %}
{% endfor %}
{% else %}
{% show_message 'info' _('Translation has been saved!') %}
{% endif %}
weblate/html/zen-units.html
View file @
1a38a3d0
...
...
@@ -13,7 +13,6 @@
{% endif %}
</td>
<td>
<span
id=
"messages-{{ unit.0.checksum }}"
class=
"inline-message"
></span>
<a
href=
"{{ unit.0.get_absolute_url }}"
class=
"btn btn-xs btn-default pull-right"
title=
"{% trans "
Open
in
full
editor
"
%}"
><span
class=
"glyphicon glyphicon-edit"
></span>
{% trans "Edit" %}
</a>
</td>
</tr>
...
...
@@ -24,6 +23,7 @@
<tr
id=
"row-edit-{{ unit.0.checksum }}"
>
<td>
<span
id=
"loading-{{ unit.0.checksum }}"
class=
"glyphicon glyphicon-refresh glyphicon-spin"
style=
"display: none"
></span>
<span
id=
"status-{{ unit.0.checksum }}"
></span>
</td>
<td
colspan=
"2"
class=
"translator"
>
<form
action=
"{% url 'save_zen' project=object.subproject.project.slug subproject=object.subproject.slug lang=object.language.code %}"
method=
"post"
>
...
...
weblate/media/loader-bootstrap.js
View file @
1a38a3d0
...
...
@@ -183,13 +183,26 @@ function zen_editor(e) {
var
form
=
$row
.
find
(
'
form
'
);
$
(
'
#loading-
'
+
checksum
).
show
();
$
(
'
#messages-
'
+
checksum
).
html
(
''
);
$
.
post
(
form
.
attr
(
'
action
'
),
form
.
serialize
(),
function
(
data
)
{
var
messages
=
$
(
'
<div>
'
+
data
+
'
</div>
'
);
var
statusdiv
=
$
(
'
#status-
'
+
checksum
);
$
(
'
#loading-
'
+
checksum
).
hide
();
$
(
'
#messages-
'
+
checksum
).
append
(
data
);
if
(
messages
.
find
(
'
.alert-danger
'
).
length
>
0
)
{
statusdiv
.
attr
(
'
class
'
,
'
glyphicon-remove-sign text-danger
'
);
}
else
if
(
messages
.
find
(
'
.alert-warning
'
).
length
>
0
)
{
statusdiv
.
attr
(
'
class
'
,
'
glyphicon-exclamation-sign text-warning
'
);
}
else
if
(
messages
.
find
(
'
.alert-info
'
).
length
>
0
)
{
statusdiv
.
attr
(
'
class
'
,
'
glyphicon-ok-sign text-warning
'
);
}
else
{
statusdiv
.
attr
(
'
class
'
,
'
glyphicon-ok-sign text-success
'
);
}
statusdiv
.
addClass
(
'
glyphicon
'
).
tooltip
({
'
html
'
:
true
,
'
title
'
:
data
});
$row
.
removeClass
(
'
translation-modified
'
).
addClass
(
'
translation-saved
'
);
}
);
...
...
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