'use strict';

(function() {
  angular.module('previewController', ['route-segment']).

  controller('PreviewController', ['$scope', '$routeSegment', 'SelectedFiles', function($scope, $routeSegment, SelectedFiles) {
    $scope.$routeSegment = $routeSegment;
    $scope.id = $routeSegment.$routeParams.id;
    if ($scope.id !== undefined) {
      var file = SelectedFiles.get($scope.id);
      if (file) {
        $scope.url = '/fixtures/content/' + file.title;
      }
    }
    $scope.files = SelectedFiles;
  }]);
})();

@@ -420,17 +420,16 @@
 .url = '
-/
 fixtures

fix relative URL