//index.html |
@@ -37,17 +37,57 @@ |
<li><a href="text.html">Text</a></li> |
</ul> |
|
|
<div class="row"> |
<h2>About</h2> |
<p><strong>scratch</strong> is a platform for small-sized asset sharing developed by <a href="http://grimore.org">Wizardry and Steamworks</a> and published under the <a href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC 1.0 Universal (CC0 1.0)</a> license. The sharing platform covers images, text snippets, movie clips and any sort of media that can be conveniently shared by generating short, public and obfuscated URLs that are easily accessible.</p> |
<p><strong>scratch copy</strong> is a platform for small-sized asset sharing developed by <a href="http://grimore.org">Wizardry and Steamworks</a> and published under the <a href="https://creativecommons.org/publicdomain/zero/1.0/">Creative Commons CC 1.0 Universal (CC0 1.0)</a> license. The sharing platform covers images, text snippets, movie clips and any sort of media that can be conveniently shared by generating short, public and obfuscated URLs that are easily accessible.</p> |
<!-- <p><a class="btn btn-default" href="#" role="button">View details »</a></p> --> |
</div> |
<div class="row" ng-app="scratch" ng-controller="scratch-control" > |
|
<div class="row" ng-app="scratch" ng-controller="scratch-control"> |
<!-- <h2>Configuration</h2> |
<p>The <strong>scratch copy</strong> platform can be configured for each usage case. This section is meant to hint to the users what configuration is currently active and specifies the configured lmits and allowances.</p> |
<h3>Allowed Files</h3> |
<p>The file extensions <span ng-repeat="extension in extensions" id="box">{{extension}}, </span> are currently accepted for uploading.</p> |
<h3>Upload Limits</h3> |
<p>The current upload limit is set to {{uploadlimit}}MiB.</p> --> |
<h2>Configuration</h2> |
<p>The <strong>scratch</strong> platform can</p> |
<h3>Allowed Files</h3> |
The following files, expressed as file extensions: <div ng-repeat="extension in extensions"><span id="box">{{extension}}</span></div> are currently accepted for uploading. |
<div class="panel panel-default"> |
<!-- Default panel contents --> |
<div class="panel-heading">Current Configuration Settings</div> |
<div class="panel-body"> |
<!-- Table --> |
<table class="table table-striped table-hover table-condensed table-responsive"> |
<thead> |
<tr> |
<th> |
Description |
</th> |
<th> |
Limit |
</th> |
</tr> |
</thead> |
<tbody> |
<tr> |
<td> |
File extensions accepted for upload. |
</td> |
<td> |
<span ng-repeat="extension in extensions" id="box">{{extension}} </span> |
</td> |
</tr> |
<tr> |
<td> |
Allowed file size upload limit. |
</td> |
<td> |
<p>{{uploadlimit}}MiB</p> |
</td> |
</tr> |
</tbody> |
</table> |
</div> |
</div> |
</div> |
|
</div> <!-- /container --> |
@@ -73,8 +113,8 @@ |
app.controller('scratch-control', function($scope, $http) { |
$http.get('config.yaml').then((response) => { |
var doc = YAML.parse(response.data); |
//alert(JSON.stringify(doc)); |
$scope.extensions = doc.ALLOWED_FILE_EXTENSIONS; |
$scope.uploadlimit = doc.ALLOWED_ASSET_SIZE; |
}); |
}); |
</script> |