browse.ui.js 512 B

1234567891011
  1. window.renderCell = function(result, {col, row})
  2. {
  3. if(col.name === 'name')
  4. {
  5. if(row.data.type == 'public') result[0] = {html: "<span class='label success-pale'>" + authorList['public'] + '</span>'};
  6. if(row.data.type == 'private') result[0] = {html: "<span class='label primary-pale'>" + authorList['private'] + '</span>'};
  7. result[1] = {html: '<a href=' + $.createLink('testsuite', 'view', 'testsuiteID=' + row.data.id) + '>' + row.data.name + '</a>'};
  8. }
  9. return result;
  10. }