|
1 | 1 | <%@ Control Language="c#" AutoEventWireup="True" TargetSchema="http://schemas.microsoft.com/intellisense/ie5"%>
|
2 |
| -<script src="/umbraco/lib/angular/1.1.5/angular.min.js"></script> |
| 2 | +<%@ Import Namespace="Our.Umbraco.FileSystemProviders.Azure.Installer" %> |
| 3 | + |
| 4 | +<% |
| 5 | + string angularSrc = "/umbraco/lib/angular/1.1.5/angular.min.js"; |
| 6 | + string span = string.Empty; |
| 7 | + if (Helpers.GetUmbracoVersion().Major < 7) |
| 8 | + { |
| 9 | + angularSrc = "//cdnjs.cloudflare.com/ajax/libs/angular.js/1.1.5/angular.js"; |
| 10 | + span = " class=\"span12\""; |
| 11 | +%> |
| 12 | + <link href="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.css" type="text/css" rel="stylesheet"/> |
| 13 | +<% |
| 14 | + } |
| 15 | +%> |
| 16 | + |
| 17 | +<script src="<%=angularSrc%>"></script> |
3 | 18 | <script src="/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Controllers/Configure.js"></script>
|
4 | 19 |
|
5 | 20 | <div ng-app ="UFSPLoader">
|
|
14 | 29 | <div><hr /></div>
|
15 | 30 | </div>
|
16 | 31 | <div class="row" ng-show="!saved">
|
17 |
| - <div> |
| 32 | + <div<%=span %>> |
18 | 33 | <fieldset>
|
19 | 34 | <legend><h4>To complete installation, please enter the required parameters for the Azure storage provider below</h4></legend>
|
20 | 35 | <form name="paramForm" class="form-horizontal" role="form">
|
|
43 | 58 | </div>
|
44 | 59 |
|
45 | 60 | <div class="row">
|
46 |
| - <div class="alert alert-success" ng-show="saved && (status === 'Ok' || status === 'ImageProcessorWebCompatibility')"> |
47 |
| - The Azure storage provider was sucessfully configured and your media is now as light as candyfloss |
48 |
| - </div> |
49 |
| - <div class="alert alert-info" ng-show="saved && status === 'ImageProcessorWebCompatibility'"> |
50 |
| - <strong>Warning!</strong> You need to upgrade the installed version of ImageProcessor.Web to v4.3.2+ to be fully compatible with this package <a href="https://our.umbraco.org/projects/collaboration/imageprocessor/" target="_blank">https://our.umbraco.org/projects/collaboration/imageprocessor/</a> |
51 |
| - </div> |
52 |
| - <div class="alert alert-error" ng-show="saved && status != 'Ok' && status != 'ImageProcessorWebCompatibility'"> |
53 |
| - <strong>Oh no</strong>, something went wrong saving, please check Umbraco log files for exceptions |
| 61 | + <div<%=span %>> |
| 62 | + <div class="alert alert-success" ng-show="saved && (status === 'Ok' || status === 'ImageProcessorWebCompatibility')"> |
| 63 | + The Azure storage provider was sucessfully configured and your media is now as light as candyfloss |
| 64 | + </div> |
| 65 | + <div class="alert alert-info" ng-show="saved && status === 'ImageProcessorWebCompatibility'"> |
| 66 | + <strong>Warning!</strong> You need to upgrade the installed version of ImageProcessor.Web to v4.3.2+ to be fully compatible with this package <a href="https://our.umbraco.org/projects/collaboration/imageprocessor/" target="_blank">https://our.umbraco.org/projects/collaboration/imageprocessor/</a> |
| 67 | + </div> |
| 68 | + <div class="alert alert-error" ng-show="saved && status != 'Ok' && status != 'ImageProcessorWebCompatibility'"> |
| 69 | + <strong>Oh no</strong>, something went wrong saving, please check Umbraco log files for exceptions |
| 70 | + </div> |
| 71 | + <div class="alert alert-error" ng-show="!saved && status === 'ConnectionError'"> |
| 72 | + <strong>Oh no</strong>, there was something wrong with your Azure connection string, please check and try again, more info in the Umbraco log files |
| 73 | + </div> |
54 | 74 | </div>
|
55 |
| - <div class="alert alert-error" ng-show="!saved && status === 'ConnectionError'"> |
56 |
| - <strong>Oh no</strong>, there was something wrong with your Azure connection string, please check and try again, more info in the Umbraco log files |
57 |
| - </div> |
58 | 75 | </div>
|
59 | 76 |
|
60 | 77 | </div>
|
|
0 commit comments