1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 08:16:07 +00:00

[repo] modified file star tip

This commit is contained in:
llj
2013-01-08 10:48:11 +08:00
parent eb97664e33
commit 01c414e65f
2 changed files with 13 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-01-07 21:49+0800\n"
"POT-Creation-Date: 2013-01-08 10:44+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -1180,13 +1180,12 @@ msgid "Copy"
msgstr "复制"
#: templates/repo.html:159 templates/repo.html.py:635
#: templates/snippets/my_owned_repos.html:9
msgid "Starred"
msgstr "星标文件"
msgid "starred"
msgstr "已加星标"
#: templates/repo.html:161 templates/repo.html.py:633
msgid "Unstarred"
msgstr "取消星标"
msgid "unstarred"
msgstr "未加星标"
#: templates/repo.html:164 templates/repo.html.py:567 templates/repo.html:591
#: templates/repo_history_view.html:66 templates/repo_recycle_view.html:78
@@ -1904,6 +1903,10 @@ msgstr "现在创建群组"
msgid "Mine"
msgstr "我拥有的"
#: templates/snippets/my_owned_repos.html:9
msgid "Starred"
msgstr "星标文件"
#: templates/snippets/my_owned_repos.html:43
msgid "You have not created any libraries"
msgstr "你还未创建资料库"

View File

@@ -156,9 +156,9 @@
<tr class="file-item" data-name="{{dirent.obj_name}}" data-time="{% if dirent.last_modified %}{{ dirent.last_modified }} {%else %}0{% endif %}">
<td class="icon-container">
{% if dirent.starred %}
<img src="{{ MEDIA_URL }}img/gray-star-icon.png" alt="{% trans 'Starred' %}" title="{% trans 'Starred' %}" class="file-star" data-path="{{ path }}{{dirent.obj_name}}" data-status="starred" />
<img src="{{ MEDIA_URL }}img/gray-star-icon.png" alt="{% trans 'starred' %}" title="{% trans 'starred' %}" class="file-star" data-path="{{ path }}{{dirent.obj_name}}" data-status="starred" />
{% else %}
<img src="{{ MEDIA_URL }}img/gray-unstar-icon.png" alt="{% trans 'Unstarred' %}" title="{% trans 'Unstarred' %}" class="file-star" data-path="{{ path }}{{dirent.obj_name}}" data-status="unstarred" />
<img src="{{ MEDIA_URL }}img/gray-unstar-icon.png" alt="{% trans 'unstarred' %}" title="{% trans 'unstarred' %}" class="file-star" data-path="{{ path }}{{dirent.obj_name}}" data-status="unstarred" />
{% endif %}
</td>
<td class="icon-container"><img src="{{ MEDIA_URL }}img/file/{{ dirent.obj_name|file_icon_filter }}" alt="{% trans "File"%}" /></td>
@@ -630,9 +630,9 @@ $('.file-star').click(function() {
success:function(data) {
if (data['success']) {
if (state == 'starred') {
it.attr('src', '{{ MEDIA_URL }}img/gray-unstar-icon.png').attr('alt','{% trans 'Unstarred' %}').attr('title','{% trans 'Unstarred' %}').data('status','unstarred');
it.attr('src', '{{ MEDIA_URL }}img/gray-unstar-icon.png').attr('alt','{% trans 'unstarred' %}').attr('title','{% trans 'unstarred' %}').data('status','unstarred');
} else {
it.attr('src', '{{ MEDIA_URL }}img/gray-star-icon.png').attr('alt','{% trans 'Starred' %}').attr('title','{% trans 'Starred' %}').data('status','starred');
it.attr('src', '{{ MEDIA_URL }}img/gray-star-icon.png').attr('alt','{% trans 'starred' %}').attr('title','{% trans 'starred' %}').data('status','starred');
}
}
},