Revision babfdb9b

b/snf-cyclades-app/synnefo/ui/static/snf/js/glance_models.js
27 27

  
28 28
        display_size: function() {
29 29
            return this.get_readable_size();
30
        },
31
        
32
        display_owner: function() {
33
            var owner = this.get_owner();
34
            if (_.include(_.keys(synnefo.config.system_images_owners), owner)) {
35
                return synnefo.config.system_images_owners[owner];
36
            } else {
37
                return owner;
38
            }
39 30
        }
40

  
31
        
41 32
    })
42 33

  
43 34
    models.GlanceImages = snf.models.Images.extend({
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js
232 232
            return this.get('owner') || _.keys(synnefo.config.system_images_owners)[0];
233 233
        },
234 234

  
235
        display_owner: function() {
236
            var owner = this.get_owner();
237
            if (_.include(_.keys(synnefo.config.system_images_owners), owner)) {
238
                return synnefo.config.system_images_owners[owner];
239
            } else {
240
                return owner;
241
            }
242
        },
243

  
235 244
        get_readable_size: function() {
236 245
            return this.get_size() > 0 ? util.readablizeBytes(this.get_size() * 1024 * 1024) : "unknown";
237 246
        },

Also available in: Unified diff