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
866ade59
Commit
866ade59
authored
Aug 18, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compacted changes browsing
Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
fe6a66e3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
48 deletions
+53
-48
weblate/html/last-changes-content.html
weblate/html/last-changes-content.html
+49
-0
weblate/html/last-changes.html
weblate/html/last-changes.html
+1
-45
weblate/html/trans/change_list.html
weblate/html/trans/change_list.html
+2
-2
weblate/trans/views/js.py
weblate/trans/views/js.py
+1
-1
No files found.
weblate/html/last-changes-content.html
0 → 100644
View file @
866ade59
{% load i18n %}
{% load translations %}
{% load permissions %}
<table
class=
"table table-condensed"
>
<thead>
<tr>
<th>
{% trans "When" %}
</th>
<th>
{% trans "User" %}
</th>
<th>
{% trans "Action" %}
</th>
<th>
{% trans "Translation" %}
</th>
<th></th>
</tr>
<tbody>
{% for c in last_changes %}
<tr>
<td>
{{ c.timestamp|naturaltime }}
</td>
<td>
{{ c.get_user_display }}
</td>
<td><a
href=
"{{ c.get_absolute_url }}"
>
{{ c.get_action_display }}
</a></td>
<td><a
href=
"{{ c.get_translation_url }}"
>
{{ c.get_translation_display }}
</a></td>
<td></td>
</tr>
{% if c.can_revert %}
<tr>
<td
colspan=
"4"
>
{% format_translation c.target c.unit.translation.language %}
</td>
<td>
{% can_translate request.user c.translation as user_can_translate %}
{% if user_can_translate %}
<a
class=
"historybutton small-button"
href=
"{{ c.translation.get_translate_url}}?{% if search_id %}sid={{ search_id }}&offset={{ offset }}&{% endif %}checksum={{ c.unit.checksum }}&revert={{ c.id }}"
title=
"{% trans "
Revert
to
this
translation
"
%}"
>
{% trans "Revert" %}
</a>
{% endif %}
</td>
</tr>
{% elif c.target %}
<tr>
<td
colspan=
"4"
><pre>
{{ c.target }}
</td>
<td></td>
</tr>
{% endif %}
{% empty %}
<tr><td
colspan=
"4"
class=
"tablenotice"
>
{% if not hide_browse %}
{% trans "No recent activity has been recorded." %}
{% else %}
{% trans "No matching activity has been found." %}
{% endif %}
</td></tr>
{% endfor %}
</tbody>
</table>
weblate/html/last-changes.html
View file @
866ade59
...
...
@@ -10,52 +10,8 @@
</div>
<div
class=
"panel-body"
>
{% include "last-changes-content.html" %}
<table
class=
"table table-condensed"
>
<thead>
<tr>
<th>
{% trans "When" %}
</th>
<th>
{% trans "User" %}
</th>
<th>
{% trans "Action" %}
</th>
<th>
{% trans "Translation" %}
</th>
<th></th>
</tr>
<tbody>
{% for c in last_changes %}
<tr>
<td>
{{ c.timestamp|naturaltime }}
</td>
<td>
{{ c.get_user_display }}
</td>
<td><a
href=
"{{ c.get_absolute_url }}"
>
{{ c.get_action_display }}
</a></td>
<td><a
href=
"{{ c.get_translation_url }}"
>
{{ c.get_translation_display }}
</a></td>
<td></td>
</tr>
{% if c.can_revert %}
<tr>
<td
colspan=
"4"
>
{% format_translation c.target c.unit.translation.language %}
</td>
<td>
{% can_translate request.user c.translation as user_can_translate %}
{% if user_can_translate %}
<a
class=
"historybutton small-button"
href=
"{{ c.translation.get_translate_url}}?{% if search_id %}sid={{ search_id }}&offset={{ offset }}&{% endif %}checksum={{ c.unit.checksum }}&revert={{ c.id }}"
title=
"{% trans "
Revert
to
this
translation
"
%}"
>
{% trans "Revert" %}
</a>
{% endif %}
</td>
</tr>
{% elif c.target %}
<tr>
<td
colspan=
"4"
><pre>
{{ c.target }}
</td>
<td></td>
</tr>
{% endif %}
{% empty %}
<tr><td
colspan=
"4"
class=
"tablenotice"
>
{% if not hide_browse %}
{% trans "No recent activity has been recorded." %}
{% else %}
{% trans "No matching activity has been found." %}
{% endif %}
</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% if not hide_browse or last_changes_rss %}
<div
class=
"panel-footer"
>
...
...
weblate/html/trans/change_list.html
View file @
866ade59
...
...
@@ -21,8 +21,8 @@
{% include "paginator.html" %}
{% with object_list as last_changes
and True as hide_browse
%}
{% include "last-changes.html" %}
{% with object_list as last_changes %}
{% include "last-changes
-content
.html" %}
{% endwith %}
{% endblock %}
weblate/trans/views/js.py
View file @
866ade59
...
...
@@ -108,7 +108,7 @@ def get_unit_changes(request, unit_id):
return
render
(
request
,
'last-changes.html'
,
'last-changes
-content
.html'
,
{
'last_changes'
:
unit
.
change_set
.
all
()[:
10
],
'last_changes_rss'
:
reverse
(
...
...
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