mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
improved front-end performance & grp msg move-upward
* combined js files * added css sprites * added size for images (except small icons) * cleaned up css/js * removed unused files (images etc.)
This commit is contained in:
@@ -32,7 +32,7 @@ For details please refer to 'snippets/file_content_js.html'.
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
<img src="{{ raw_path }}" alt="{{ u_filename}}" id="image-view" class="vh" />
|
||||
<img src="{{ raw_path }}" alt="{{ u_filename}}" id="image-view" class="vh" width="{{file_content.img_w}}" height="{{file_content.img_h}}" />
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<div id="file-view-tip">
|
||||
|
@@ -17,8 +17,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if filetype == 'Image' %}
|
||||
$(window).load(function() {
|
||||
var img_ht = $('#image-view').height();
|
||||
var img_ht = {{file_content.img_h}};
|
||||
var file_view_ht = parseInt($('#file-view').css('min-height'));
|
||||
var prev_next_ht = 0;
|
||||
if ($('#img-prev-next').length > 0) {
|
||||
@@ -27,11 +26,10 @@ $(window).load(function() {
|
||||
if (img_ht < file_view_ht - prev_next_ht) {
|
||||
$('#image-view').css({'margin-top':(file_view_ht - img_ht - prev_next_ht)/2});
|
||||
}
|
||||
if ($('#image-view').outerWidth() > 950) { // for ie 6
|
||||
if ({{file_content.img_w}} > 946) { // for ie 6
|
||||
$('#image-view').css('width', 946);
|
||||
}
|
||||
$('#image-view').removeClass('vh');
|
||||
});
|
||||
{% endif %}
|
||||
|
||||
{% if filetype == 'SVG' %}
|
||||
|
@@ -3,13 +3,11 @@
|
||||
<div class="info-item">
|
||||
<h3 class="info-item-top">{% trans "My Groups" %}</h3>
|
||||
{% if groups %}
|
||||
<ul class="info-item-bottom ovhd">
|
||||
<ul class="info-item-bottom">
|
||||
{% for group in groups %}
|
||||
<li class="mygroup">
|
||||
<a href="{{ SITE_ROOT }}group/{{ group.props.id }}/" class="no-deco">
|
||||
<img src="{% grp_avatar_url group.props.id 48 %}" alt="{{ group.props.group_name }}" title="{{ group.props.group_name }}" class="avatar" />
|
||||
</a>
|
||||
<a class="name" href="{{ SITE_ROOT }}group/{{ group.props.id }}/" title="{{ group.props.group_name }}">{{ group.props.group_name|trim:12 }}</a>
|
||||
<a href="{% url 'group_info' group.props.id %}" class="no-deco">{% grp_avatar group.props.id 48 %}</a>
|
||||
<a class="name" href="{% url 'group_info' group.props.id %}" title="{{ group.props.group_name }}">{{ group.props.group_name|trim:12 }}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@@ -8,7 +8,7 @@
|
||||
<li><a href="#repos-shared-to-me">{% trans "Shared" %}</a></li>
|
||||
<li><a href="#starred-files">{% trans "Starred" %}</a></li>
|
||||
</ul>
|
||||
<button id="repo-create" class="fright">{% trans "New Library" %}</button>
|
||||
<button id="repo-create" class="add fright">{% trans "New Library" %}</button>
|
||||
</div>
|
||||
<div id="my-own-repos" class="hide">
|
||||
{% if owned_repos %}
|
||||
|
Reference in New Issue
Block a user