1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-22 11:43:33 +00:00

Improve loading icon

This commit is contained in:
Daniel Pan
2015-05-07 14:17:45 +08:00
parent e702c61172
commit bd847a35cb
3 changed files with 15 additions and 11 deletions

BIN
media/img/loading-new.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

View File

@@ -54,12 +54,12 @@
<h3><%= form_title %></h3> <h3><%= form_title %></h3>
<div id="mv-dir-list" class="dir-tree-cont"> <div id="mv-dir-list" class="dir-tree-cont">
<h5 class="hd cspt"><span class="icon-caret-down"></span>{% trans "Current Library"%}</h5> <h5 class="hd cspt"><span class="icon-caret-down"></span>{% trans "Current Library"%}</h5>
<img src="{{MEDIA_URL}}img/loading-icon.gif" alt="" class="loading-tip" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
<div id="current-repo-dirs"></div> <div id="current-repo-dirs"></div>
<% if (show_other_repos) { %> <% if (show_other_repos) { %>
<div id="other-repos"> <div id="other-repos">
<h5 class="hd cspt"><span class="icon-caret-right"></span>{% trans "Other Libraries"%}</h5> <h5 class="hd cspt"><span class="icon-caret-right"></span>{% trans "Other Libraries"%}</h5>
<img src="{{MEDIA_URL}}img/loading-icon.gif" alt="" class="loading-tip" style="display:none;" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" style="display:none;" />
<div id="other-repos-dirs" class="hide"></div> <div id="other-repos-dirs" class="hide"></div>
</div> </div>
<% } %> <% } %>

View File

@@ -20,6 +20,12 @@
</style> </style>
{% endblock %} {% endblock %}
{% block main_panel %}
<div id="initial-loading-view">
<img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
</div>
{% endblock %}
{% block left_panel %} {% block left_panel %}
<div class="side-tabnav hide" id="myhome-side-nav"> <div class="side-tabnav hide" id="myhome-side-nav">
</div> </div>
@@ -36,9 +42,7 @@
{% endblock %} {% endblock %}
{% block right_panel %} {% block right_panel %}
<div id="initial-loading-view">
<img class="loading-tip" src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" />
</div>
<div id="repo-tabs" class="tab-tabs hide"> <div id="repo-tabs" class="tab-tabs hide">
<div class="hd"> <div class="hd">
@@ -116,7 +120,7 @@
</div> </div>
</div> </div>
<img class="loading-tip" src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
</div> </div>
<div id="starred-file" class="hide"> <div id="starred-file" class="hide">
@@ -133,7 +137,7 @@
</thead> </thead>
<tbody></tbody> <tbody></tbody>
</table> </table>
<img class="loading-tip" src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
<div class="empty-tips hide"> <div class="empty-tips hide">
<h2 class="alc">{% trans "You don't have any starred files yet" %}</h2> <h2 class="alc">{% trans "You don't have any starred files yet" %}</h2>
<p>{% blocktrans %}You can star important files by clicking the "Star" button on file viewing page, and they will be listed here.{% endblocktrans %}</p> <p>{% blocktrans %}You can star important files by clicking the "Star" button on file viewing page, and they will be listed here.{% endblocktrans %}</p>
@@ -158,7 +162,7 @@
<form id="sublib-create-form" class="file-choose-form hide"> <form id="sublib-create-form" class="file-choose-form hide">
<h3>{% trans "Choose a directory:" %}</h3> <h3>{% trans "Choose a directory:" %}</h3>
<div class="dir-tree-cont"> <div class="dir-tree-cont">
<img src="{{MEDIA_URL}}img/loading-icon.gif" alt="" class="loading-tip" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
</div> </div>
<input type="hidden" name="dst_repo" value="" /> <input type="hidden" name="dst_repo" value="" />
<input type="hidden" name="dst_path" value="" /> <input type="hidden" name="dst_path" value="" />
@@ -200,7 +204,7 @@
</div> </div>
</div> </div>
<img class="loading-tip" src="{{MEDIA_URL}}img/loading-icon.gif" alt="{% trans 'Loading...' %}" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
</div> </div>
<div id="organization-repos" class="tab-tabs hide"> <div id="organization-repos" class="tab-tabs hide">
@@ -223,7 +227,7 @@
<tbody> <tbody>
</tbody> </tbody>
</table> </table>
<img src="{{MEDIA_URL}}img/loading-icon.gif" alt="" class="loading-tip" /> <img class="loading-tip" width="32" src="{{MEDIA_URL}}img/loading-new.gif" alt="{% trans 'Loading...' %}" />
<div class="empty-tips hide"> <div class="empty-tips hide">
<h2 class="alc">{% trans "No public library" %}</h2> <h2 class="alc">{% trans "No public library" %}</h2>
<p>{% blocktrans %}You can create a public library by clicking "New Library" button, others can view and download this library.{% endblocktrans %}</p> <p>{% blocktrans %}You can create a public library by clicking "New Library" button, others can view and download this library.{% endblocktrans %}</p>