[update] Ignore file on size or mime type

This commit is contained in:
brunosimon
2016-09-17 23:10:36 +02:00
parent 2cc95d0160
commit ae800cc01f
9 changed files with 100 additions and 76 deletions
@@ -68,8 +68,15 @@ application.controller(
if( $scope.version )
$scope.version.active = false;
$scope.version = file.versions[ file.versions.length - 1 ];
$scope.version.active = true
if( file.versions.length )
{
$scope.version = file.versions[ file.versions.length - 1 ];
$scope.version.active = true
}
else
{
$scope.version = null;
}
};
$scope.version_click = function( version )
File diff suppressed because one or more lines are too long
+1 -2
View File
@@ -302,7 +302,7 @@ body.project
bottom 0
background #31344a
section.no-file
section.big-centered-text
position absolute
top 0
left 0
@@ -505,4 +505,3 @@ body.project
&.added
border 1px solid #b0ea23
background rgba(176, 234, 35, 0.1)