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
89887351
Commit
89887351
authored
Aug 28, 2013
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use minimal width for labels in translate page
Fixes #351
parent
c3c9159c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
12 deletions
+16
-12
weblate/html/translate.html
weblate/html/translate.html
+10
-10
weblate/html/unit-details.html
weblate/html/unit-details.html
+2
-2
weblate/media/style.css
weblate/media/style.css
+4
-0
No files found.
weblate/html/translate.html
View file @
89887351
...
...
@@ -47,29 +47,29 @@
{% if secondary %}
{% for unit in secondary %}
<tr>
<th
class=
"source"
>
{{ unit.translation.language }}
</th>
<th
class=
"source
labelscolumn
"
>
{{ unit.translation.language }}
</th>
<td
class=
"translatetext"
>
{{ unit.target|fmttranslation:unit.translation.language }}
</td>
</tr>
{% endfor %}
{% endif %}
<tr>
<th
class=
"source"
>
{% trans "Source" %}
</th>
<th
class=
"source
labelscolumn
"
>
{% trans "Source" %}
</th>
<td
class=
"translatetext"
>
{{ unit.source|fmtsearchmatch:search_query }}
</td>
</tr>
{% if unit.previous_source and unit.fuzzy %}
<tr>
<th>
{% trans "Source change" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Source change" %}
</th>
<td>
{{ unit.previous_source|fmtsourcediff:unit }}
</td>
</tr>
{% endif %}
{% if unit.context %}
<tr>
<th>
{% trans "Context" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Context" %}
</th>
<td>
{{ unit.context|fmtsearchmatch:search_query }}
</td>
</tr>
{% endif %}
<tr>
<td></td>
<td
class=
"labelscolumn"
></td>
<td
class=
"toolbar"
>
<a
href=
"#"
id=
"copy-text"
>
{% trans "Copy" %}
</a>
<img
src=
"{% get_media_prefix %}loading.gif"
id=
"loading"
style=
"display: none"
/>
...
...
@@ -82,7 +82,7 @@
</td>
</tr>
<tr>
<th>
{% if unit.is_plural %}{% trans "Translations" %}{% else %}{% trans "Translation" %}{% endif %}
</th>
<th
class=
"labelscolumn"
>
{% if unit.is_plural %}{% trans "Translations" %}{% else %}{% trans "Translation" %}{% endif %}
</th>
<td
class=
"translator"
>
{{ form.checksum }}
{{ form.target }}
...
...
@@ -97,7 +97,7 @@
{% with unit.active_checks as checks %}
{% if checks %}
<tr>
<th>
{% trans "Failing checks" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Failing checks" %}
</th>
<td>
{% include "list-checks.html" %}
</td>
...
...
@@ -107,7 +107,7 @@
{% with unit.suggestions as suggestions %}
{% if suggestions %}
<tr>
<th>
{% trans "Suggestions" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Suggestions" %}
</th>
<td>
<table
class=
"suggestions"
>
{% for suggestion in suggestions %}
...
...
@@ -145,11 +145,11 @@
{% include "unit-details.html" %}
{% if unit.flags %}
<tr>
<th>
{% trans "Flags" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Flags" %}
</th>
<td><span
class=
"legend"
>
{{ unit.flags }}
</span></td>
</tr>
{% endif %}
<tr><td></td><td>
<tr><td
class=
"labelscolumn"
></td><td>
{% if not unit.only_vote_suggestions or perms.trans.override_suggestion %}
{% if perms.trans.save_translation %}
<input
class=
"button"
type=
"submit"
value=
"{% trans "
Save
"
%}"
name=
"save"
tabindex=
"150"
{%
if
locked
%}
disabled=
"disabled"
{%
endif
%}
/>
...
...
weblate/html/unit-details.html
View file @
89887351
{% load i18n %}
{% if unit.location %}
<tr>
<th>
{% trans "Used in" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Used in" %}
</th>
<td>
{{ unit.get_location_links }}
</td>
</tr>
{% endif %}
{% if unit.comment %}
<tr>
<th>
{% trans "Comments" %}
</th>
<th
class=
"labelscolumn"
>
{% trans "Comments" %}
</th>
<td
class=
"translation_comment"
>
{{ unit.comment }}
</td>
</tr>
{% endif %}
...
...
weblate/media/style.css
View file @
89887351
...
...
@@ -302,3 +302,7 @@ img.engage-icon {
padding
:
0.5em
;
font-style
:
italic
;
}
.labelscolumn
{
width
:
1px
;
white-space
:
nowrap
;
}
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