Commits

Sebastian Sdorra committed 6c5df4c

use short id for blame view

Comments (0)

Files changed (1)

scm-webapp/src/main/webapp/resources/js/repository/sonia.repository.blamepanel.js

   },
   
   renderRevision: function(value, metadata, record){
-    var title = 'Revision: ' + value;
+    var shortId = Ext.util.Format.id(value);
+    var title = 'Revision: ' + shortId;
     var tip = 'Author: ' + record.get('author').name;
     var when = record.get('when');
     if ( when ){
     metadata.attr = 'ext:qtitle="' + title + '"' + ' ext:qtip="' + tip + '"';
     return String.format(
       this.linkTemplate,
-      Ext.util.Format.ellipsis(value, 10),
+      shortId,
       value
     );
   },