mirror of
				https://github.com/haiwen/seahub.git
				synced 2025-11-04 11:44:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			524 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			524 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
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() {
 | 
						|
            var is_encrypted = this.get('encrypted');
 | 
						|
            return Common.getLibIconTitle(is_encrypted, false);
 | 
						|
        }
 | 
						|
    });
 | 
						|
 | 
						|
    return RepoModel;
 | 
						|
});
 |