1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 05:39:59 +00:00

[grp list] show 'lib/wiki/..' links when hover; modified grp avatar size setting

This commit is contained in:
llj
2013-12-18 12:59:44 +08:00
parent 8c806a2a1e
commit d4b91e4a9a
4 changed files with 15 additions and 3 deletions

View File

@@ -1657,6 +1657,9 @@ textarea:-moz-placeholder {/* for FF */
width:330px;
margin:0 17px 30px 0;
}
.group-list .group {
margin-bottom:25px;
}
.group-list .group,
.user-list .user {
*display:inline; /* for ie 6,7 */

View File

@@ -19,5 +19,14 @@
{% with post_url=group_add_url %}
{% include "snippets/group_add_js.html" %}
{% endwith %}
$('.group').hover(
function() {
$('.fast', $(this)).removeClass('vh');
},
function() {
$('.fast', $(this)).addClass('vh');
}
);
</script>
{% endblock %}

View File

@@ -12,8 +12,8 @@
<h4><a href="{% url 'group_info' group.props.id %}">{{ group.props.group_name }}</a></h4>
<p><span class="item-name">{% trans "Creator: " %}</span>{{ group.props.creator_name }}</p>
<p><span class="item-name">{% trans "Time: "%}</span>{{ group.props.timestamp|tsstr_sec }}</p>
<div class="fast">
<a href="{% url 'group_info' group.props.id %}" title="{% trans "Libraries" %}" class="a"><span class="icon-folder-close"></span></a>
<div class="fast vh">
<a href="{% url 'group_info' group.props.id %}" title="{% trans "Libraries" %}" class="a"><span class="icon-archive"></span></a>
<a href="{% url 'group_discuss' group.props.id %}" title="{% trans "Discussion" %}" class="a"><span class="icon-comment"></span></a>
{% if group.wiki_enabled %}
<a href="{% url 'group_wiki' group.props.id %}" title="{% trans "Wiki" %}" class="a"><span class="icon-book"></span></a>

View File

@@ -211,7 +211,7 @@ AUTO_GENERATE_AVATAR_SIZES = (16, 20, 28, 36, 40, 48, 60, 80)
# Group avatar
GROUP_AVATAR_STORAGE_DIR = 'avatars/groups'
GROUP_AVATAR_DEFAULT_URL = 'avatars/groups/default.png'
AUTO_GENERATE_GROUP_AVATAR_SIZES = (20, 24, 48)
AUTO_GENERATE_GROUP_AVATAR_SIZES = (20, 24, 48, 56)
LOG_DIR = os.environ.get('SEAHUB_LOG_DIR', '/tmp')
CACHE_DIR = "/tmp"