docs update
This commit is contained in:
1 parent
ce2f464520
commit
f4bc70cd8b
2 files changed
+15
-2
No files matched your search
@@ -1,6 +1,11 @@
|
|||||||
module.exports = function (app) {
|
module.exports = function (app) {
|
||||||
app.controller("DocumentsController", function ($scope, docs) {
|
app.controller("DocumentsController", function ($scope, api, docs) {
|
||||||
$scope.documents = docs.docs;
|
$scope.documents = docs.docs;
|
||||||
|
|
||||||
|
api.document.awards()
|
||||||
|
.success(data => {
|
||||||
|
$scope.awards = data;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
<div class="documents-block" ng-controller="DocumentsController">
|
<div class="documents-block" ng-controller="DocumentsController">
|
||||||
<document ng-repeat="doc in documents" document="doc"></document>
|
<h2>Устав, Лицензия, пр.</h2>
|
||||||
|
<div class="documents-container">
|
||||||
|
<document ng-repeat="i in documents" document="i"></document>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<h2>Награды</h2>
|
||||||
|
<div class="documents-container">
|
||||||
|
<award ng-repeat="i in awards" document="i"></award>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in new issue
Block a user