Commit 6f47cc5c authored by Michal Čihař's avatar Michal Čihař

Reintroduce lock icon for locked translations

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 780a94ce
......@@ -2,7 +2,6 @@ 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
- lock icon not working on translation listing
- convert remaining pages
- zen mode
- add datepicker
......
{% load i18n %}
<code class="git-commit" data-toggle="tooltip" data-placement="bottom" data-title="
<code class="git-commit html-tooltip" data-toggle="tooltip" data-placement="bottom" data-title="
{% blocktrans with commit.revision as hash %}Commit {{ hash }}{% endblocktrans %}<br />
{% blocktrans with commit.author_name as author and commit.authordate|date:"DATETIME_FORMAT" as date %}Authored by {{ author }} on {{ date }}{% endblocktrans %}<br />
{{ commit.summary }}
......
......@@ -18,7 +18,7 @@
{% with trans.get_translated_percent as percent and trans.get_fuzzy_percent as fuzzy and trans.failing_checks as checks and trans.get_non_translated as count and trans.get_failing_checks_percent as check_percent and trans.have_suggestion as suggestions %}
<tr>
<th><a href="{{ trans.get_absolute_url }}">{% if show_language == 1 %}{{ trans.language }}{% else %}{{ trans.subproject }}{% if show_language == 2 %} ({{ trans.language }}){% endif %}{% endif %}</a></th>
<td>{% if trans.is_user_locked %}<span class="ui-icon ui-icon-locked tooltip">{{ trans.get_lock_display }}</span>{% endif %}</td>
<td>{% if trans.is_user_locked %}<span class="glyphicon glyphicon-lock html-tooltip" data-placement="bottom" data-toggle="tooltip" data-title='{{ trans.get_lock_display }}'></span>{% endif %}</td>
<td class="progress-cell">{% translation_progress trans %}</td>
<td class="percent">{{ percent }}%</td>
<td class="percent" title="{% blocktrans count words=trans.untranslated_words %}{{ words }} word to translate!{% plural %}{{ words }} words to translate!{% endblocktrans %}" >{{ trans.get_words_percent }}%</td>
......
......@@ -223,7 +223,7 @@ $(function () {
/* Git commit tooltip */
$(document).tooltip({
selector: '.git-commit',
selector: '.html-tooltip',
html: true
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment