|
21 | 21 | </script> |
22 | 22 | <script type="text/javascript" src="admin.res.axd"></script> |
23 | 23 | <style> |
24 | | - .file-card { border: 1px solid #e5e5e5; width: 138px; height: 160px; display: inline-block; float: left; margin: 5px } |
25 | | - .file-card img { width: 138px; } |
26 | | - .file-form { margin: 0 20px; padding: 8px 8px 8px 0 } |
27 | | - .file-card-box { width: 138px; height: 140px; overflow: hidden; background-color: #e5e5e5 } |
28 | | - .file-card-lbl { display: inline-block; padding: 2px 10px; width: 138px; height: 24px; background-color: #ccc; } |
| 24 | + .file-card { |
| 25 | + border: 1px solid #e5e5e5; |
| 26 | + width: 138px; |
| 27 | + height: 160px; |
| 28 | + display: inline-block; |
| 29 | + float: left; |
| 30 | + margin: 5px; |
| 31 | + } |
| 32 | +
|
| 33 | + .file-card img { |
| 34 | + width: 138px; |
| 35 | + } |
| 36 | +
|
| 37 | + .file-form { |
| 38 | + margin: 0 20px; |
| 39 | + padding: 8px 8px 8px 0; |
| 40 | + } |
| 41 | +
|
| 42 | + .file-card-box { |
| 43 | + width: 138px; |
| 44 | + height: 140px; |
| 45 | + overflow: hidden; |
| 46 | + background-color: #e5e5e5; |
| 47 | + } |
| 48 | +
|
| 49 | + .file-card-lbl { |
| 50 | + display: inline-block; |
| 51 | + padding: 2px 10px; |
| 52 | + width: 138px; |
| 53 | + height: 24px; |
| 54 | + background-color: #ccc; |
| 55 | + } |
29 | 56 | </style> |
30 | 57 | </head> |
31 | | -<body ng-controller="FilesController"> |
| 58 | +<body ng-controller="FileManagerController"> |
32 | 59 | @Scripts.Render("~/scripts/wysiwyg") |
33 | 60 |
|
34 | 61 | <div class="wrapper @Resources.labels.LangDirection"> |
|
63 | 90 | <button type="button" tabindex="-1" class="btn btn-sm btn-success" id="fileBtn"><i class="fa fa-plus"></i> NEW</button> |
64 | 91 | <input type="file" id="file" name="file" data-role="magic-overlay" tabindex="-1" data-target="#fileBtn" title="{{lbl.uploadFile}}" onchange="angular.element(this).scope().uploadFile(this.files)" /> |
65 | 92 | </div> |
66 | | - </div> |
| 93 | + </div> |
67 | 94 | <div class="btn-group befdv pull-left"> |
68 | 95 | <button ng-click="addFolder()" class="btn btn-sm btn-warning" type="submit" title="Add folder"><i class="fa fa-folder"></i></button> |
69 | 96 | <button ng-disabled="itemsChecked() === false" ng-click="processChecked('delete')" title="Delete" class="btn btn-sm btn-danger"><i class="fa fa-trash"></i></button> |
|
73 | 100 | </div> |
74 | 101 | <div class="pull-left" style="margin-left: 20px; line-height: 32px; color: #666">{{currentPath}}</div> |
75 | 102 | </div> |
76 | | - </div> |
| 103 | + </div> |
77 | 104 |
|
78 | 105 | <div class="row"> |
79 | | - <div class="file-card" ng-if="item.FullPath != rootStorage" ng-repeat="item in pagedItems[currentPage] | orderBy:sortingOrder:reverse"> |
| 106 | + <div class="file-card" ng-repeat="item in pagedItems[currentPage] | orderBy:sortingOrder:reverse"> |
80 | 107 | <div class="file-card-box"> |
81 | 108 | <a ng-if="item.FileType === 0 && item.Name != '...'" title="{{item.Name}}" href="" ng-click="load(item.FullPath)" class="pull-left"> |
82 | 109 | <img ng-src="{{root}}Content/images/blog/placeholders/folder.png" /> |
|
88 | 115 | <img ng-src="{{root}}Content/images/blog/placeholders/zip.png" /> |
89 | 116 | </a> |
90 | 117 | <a ng-if="item.FileType === 2" title="{{item.Name}}" href="" ng-click="insertFile(item)"> |
91 | | - <img ng-src="{{root}}image.axd?picture={{item.FullPath}}" /> |
| 118 | + <img ng-src="{{root}}@Blog.CurrentInstance.StorageContainerName/image.axd?picture={{item.FullPath}}" /> |
92 | 119 | </a> |
93 | 120 | </div> |
94 | 121 | <div class="file-card-lbl"> |
|
97 | 124 | </div> |
98 | 125 | </div> |
99 | 126 |
|
100 | | - <div ng-if="items.length > itemsPerPage" class="text-right pagination-wrapper" style="margin-top: 10px"> |
| 127 | + <div ng-if="items.length > itemsPerPage" class="text-right pagination-wrapper" style="margin-top: 10px"> |
101 | 128 | <ul class="pagination pagination-sm"> |
102 | 129 | <li data-ng-class="{disabled: currentPage == 0}"> |
103 | 130 | <a data-ng-click="prevPage()">« {{lbl.prev}}</a> |
|
116 | 143 | </div> |
117 | 144 | </body> |
118 | 145 | </html> |
119 | | - |
120 | | - |
|
0 commit comments