text: // Filename: ExecutionsListView.js
  define([
      'jquery',
      'underscore',
      'backbone',
      'text!templates/testruns/testRunsListTemplate.html'
  ], function($, _, Backbone, testRunsListTemplate) {
      var ExecutionsListView = Backbone.View.extend({
          el: $("#testruns-list"),
  
          initialize: function() {
              _.bindAll(this, 'render');
          },
  
          render: function(collection) {
              var data = {
                  testruns: collection.models,
                  collection: collection,
                  _: _
              };
              var compiledTemplate = _.template(testRunsListTemplate, data);
              $("#testruns-list").html(compiledTemplate);
              // display tooltips
              $('.tooltip')
                .popup({
                  on    : 'hover'
                })
              ;
              _.each(collection.models, function(test_run) {
                  _.each(test_run.get('progress')['progress'], function(progress) {
                      // display progress bars
                      $('#progressbar-' + test_run.get('id') + '-' + progress['id']).progress({
                          autoSuccess: false,
                        label: 'percent',
                        text: {
                          percent: '{value}%',
                          success: true
                        }
                      });
                  });
              });
          }
  
      });
      return ExecutionsListView;
  });