mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 21:30:39 +00:00
show group avatar
This commit is contained in:
@@ -235,7 +235,7 @@ app["pageOptions"] = {
|
|||||||
groups.push({
|
groups.push({
|
||||||
'name': '{{group.group_name}}',
|
'name': '{{group.group_name}}',
|
||||||
'id': '{{group.id}}',
|
'id': '{{group.id}}',
|
||||||
'avatar': '{% grp_avatar grp.id 36 %}'
|
'avatar': '{% grp_avatar group.id 36 %}'
|
||||||
});
|
});
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
return groups;
|
return groups;
|
||||||
|
@@ -12,7 +12,7 @@ define([
|
|||||||
popupTemplate: _.template($('#top-group-nav-tmpl').html()),
|
popupTemplate: _.template($('#top-group-nav-tmpl').html()),
|
||||||
|
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
var popup = $(this.popupTemplate({groups: app.pageOptions.top_nav_groups}));
|
var popup = $(this.popupTemplate({groups: app.pageOptions.top_nav_groups}));
|
||||||
this.$el.append(popup);
|
this.$el.append(popup);
|
||||||
popup.css({'right': ($('#top-nav-grp').outerWidth() - popup.outerWidth())/6 * 5});
|
popup.css({'right': ($('#top-nav-grp').outerWidth() - popup.outerWidth())/6 * 5});
|
||||||
this.popup = popup;
|
this.popup = popup;
|
||||||
|
Reference in New Issue
Block a user