1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-14 01:25:48 +00:00
seahub/static/scripts/sysadmin-app/models/repo.js

22 lines
524 B
JavaScript
Raw Normal View History

2016-05-27 08:42:40 +00:00
define([
'underscore',
'backbone',
'common',
], function(_, Backbone, Common) {
'use strict';
var RepoModel = Backbone.Model.extend({
getIconUrl: function(size) {
var is_encrypted = this.get('encrypted');
return Common.getLibIconUrl(is_encrypted, false, size);
},
getIconTitle: function() {
2017-02-09 06:59:49 +00:00
var is_encrypted = this.get('encrypted');
return Common.getLibIconTitle(is_encrypted, false);
2016-05-27 08:42:40 +00:00
}
});
return RepoModel;
});