text: 
  App = angular.module( 'CSavesApp', [ 'tranny' ] );
  
  App.config( function ( $routeProvider, $locationProvider )
  {
  	$routeProvider.when( '/', { templateUrl: 'template/creations/saves.html' } );
  	$routeProvider.when( '/list/:Category/:Tag/', { templateUrl: 'template/creations/saves.html' } );
  } );
  
  var CreationScope		= null;
  var CreationLocation	= null;
  
  function CSaves( $scope, $timeout, $location )
  {
  	CreationScope		= $scope;
  	CreationLocation	= $location;
  
  	CreationScope.MyCategories =
  	[
  		"local",
  		"subscribed_ugc",
  		//"favorites_ugc"
  	];
  
  	CreationScope.Categories =
  	[
  		"trending",
  		"popular",
  		"latest"
  	];
  
  	CreationScope.CategoriesSecondary =
  	[
  		"friends",
  		"mine"
  	];
  
  	CreationScope.SubCategories =
  	[
  		"scenes",
  		"machines",
  		"buildings",
  		"courses",
  		"others"
  	];
  
  	$scope.IfElse = function( b, a, c )
  	{
  		if ( b ) return a;
  		return c;
  	}
  
  	$scope.OpenWorkshopFile = function( id )
  	{
  		if ( !id || !IN_ENGINE ) return;
  		gmod.OpenWorkshopFile( id );
  	}
  
  	$scope.SaveSave = function()
  	{
  		if ( IN_ENGINE ) gmod.SaveSave();
  
  		$scope.SaveDisabled = "disabled";
  
  		$timeout( function()
  		{
  			$scope.SaveDisabled = "";
  		}, 5000 );
  	}
  
  	SetMap( 'gm_construct' );
  }
  
  //
  // Sets the current map - so we get the right saves
  //
  function SetMap( mapname )
  {
  	CreationScope.MapName = mapname;
  	UpdateDigest( CreationScope, 10 );
  }
  