1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-15 23:00:57 +00:00

Improve library icon

This commit is contained in:
Daniel Pan
2016-03-11 12:10:55 +08:00
parent 565c05ee66
commit 0931bd0103
14 changed files with 66 additions and 22 deletions

View File

@@ -31,6 +31,8 @@ define([
render: function() {
var obj = this.model.toJSON();
var icon_size = Common.isHiDPI() ? 96 : 24;
var icon_url = this.model.getIconUrl(icon_size);
$.extend(obj, {
group_id: this.group_id,
is_staff: this.is_staff,
@@ -38,7 +40,8 @@ define([
share_from_me: app.pageOptions.username == this.model.get('owner') ? true : false,
// 'owner_name' for '#groups', 'owner_nickname' for '#group/id/'
owner_name: this.model.get('owner_nickname') || this.model.get('owner_name'),
show_shared_by: this.show_shared_by
show_shared_by: this.show_shared_by,
icon_url: icon_url
});
this.$el.html(this.template(obj));
return this;