implements the file permissions report correctly and tests it.

This commit is contained in:
Shannon
2014-03-05 17:44:13 +11:00
parent a40ba2f27e
commit 8f7f761bb3
4 changed files with 75 additions and 7 deletions

View File

@@ -0,0 +1,26 @@
<div>
<h1>Your permission settings are not ready for umbraco</h1>
<p>
In order to run umbraco, you'll need to update your permission settings.
Detailed information about the correct file & folder permissions for Umbraco can be found
<a href="http://our.umbraco.org/documentation/Installation/permissions"><strong>here</strong></a>.
</p>
<p>
The following report list the permissions that are currently failing. Once the permissions are fixed press the 'Go back' button to restart the installation.
</p>
<ul class="permissions-report unstyled">
<li ng-repeat="(category, items) in installer.current.model.errors">
<h4>{{category}}</h4>
<ul>
<li ng-repeat="item in items">
{{item}}
</li>
</ul>
</li>
</ul>
<p>
<button class="btn btn-success" ng-click="restart()">Go back</button>
</p>
</div>

View File

@@ -57,6 +57,7 @@ body {
height: 550px;
text-align: left;
padding: 30px;
overflow:hidden;
}
@@ -222,3 +223,19 @@ height: 5px;
right: 0;
overflow: hidden;
}
.permissions-report {
overflow:auto;
height:320px;
margin:0;
display:block;
padding:0;
}
.permissions-report > li {
list-style:none;
}
.permissions-report h4 {
margin:7px;
}