2015-07-20 00:09:47 -07:00
<!-- Modal install app -->
2015-07-28 13:06:55 +02:00
< div class = "modal fade appstore-install" id = "appInstallModal" tabindex = "-1" role = "dialog" aria-labelledby = "updateModalLabel" aria-hidden = "true" >
2015-07-20 00:09:47 -07:00
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
2015-07-28 12:53:33 +02:00
< img ng-src = "{{appInstall.app.iconUrl}}" onerror = "this.onerror=null;this.src='img/appicon_fallback.png'" class = "app-icon" / >
2016-01-29 12:29:35 +01:00
< h3 class = "appstore-install-title" title = "Version {{ appInstall.app.manifest.version }}" > {{ appInstall.app.manifest.title }} < span class = "badge badge-danger" ng-show = "appInstall.app.publishState === 'testing'" > Testing< / span > < / h3 >
2015-07-28 12:53:33 +02:00
< br / >
< span class = "appstore-install-meta" > {{ appInstall.app.manifest.author }}< / span >
< br / >
2016-01-29 12:29:35 +01:00
< span class = "appstore-install-meta" > < a href = "{{ appInstall.app.manifest.website }}" target = "_blank" > Website< / a > < / span >
2015-07-20 00:09:47 -07:00
< / div >
< div class = "modal-body" >
< div class = "collapse" id = "collapseInstallForm" data-toggle = "false" >
2016-02-26 12:50:05 +01:00
< form role = "form" name = "appInstallForm" ng-submit = "appInstall.submit()" autocomplete = "off" >
2015-07-20 00:09:47 -07:00
< div class = "has-error text-center" ng-show = "appInstall.error.other" ng-bind-html = "appInstall.error.other" > < / div >
< div class = "form-group" ng-class = "{ 'has-error': (appInstallForm.location.$dirty && appInstallForm.location.$invalid) || (!appInstallForm.location.$dirty && appInstall.error.location) }" >
< label class = "control-label" for = "appInstallLocationInput" > Location {{ appInstall.error.location }} < / label >
< div class = "input-group form-inline" >
< input type = "text" class = "form-control" ng-model = "appInstall.location" id = "appInstallLocationInput" name = "location" placeholder = "Leave empty to use bare domain" autofocus >
< div class = "input-group-addon" >
{{ !appInstall.location ? '' : (config.isCustomDomain ? '.' : '-') }}{{ config.fqdn }}
< / div >
< / div >
< / div >
2015-10-28 20:30:15 +01:00
2015-07-20 00:09:47 -07:00
< div class = "has-error text-center" ng-show = "appInstall.error.port" > {{ appInstall.error.port }}< / div >
< div ng-repeat = "(env, info) in appInstall.portBindingsInfo" >
< ng-form name = "portInfo_form" >
< div class = "form-group" ng-class = "{ 'has-error': (!appInstallForm.itemName{{$index}}.$dirty && appInstall.error.port) || (portInfo_form.itemName{{$index}}.$dirty && portInfo_form.itemName{{$index}}.$invalid) }" >
< label class = "control-label" for = "inputPortInfo{{env}}" > < input type = "checkbox" ng-model = "appInstall.portBindingsEnabled[env]" > {{ info.description }} ({{ hostPortMin }} - {{ hostPortMax }})< / label >
< input type = "number" class = "form-control" ng-model = "appInstall.portBindings[env]" ng-disabled = "!appInstall.portBindingsEnabled[env]" id = "inputPortInfo{{env}}" later-name = "itemName{{$index}}" min = "{{hostPortMin}}" max = "{{hostPortMax}}" required >
< / div >
< / ng-form >
< / div >
2015-10-28 20:30:15 +01:00
2015-10-16 18:06:49 +02:00
< div class = "form-group" ng-show = "appInstall.app.manifest.singleUser" >
2016-02-26 11:47:20 +01:00
< label class = "control-label" > User< / label >
2016-04-02 11:18:05 +02:00
< select class = "form-control" ng-model = "appInstall.accessRestrictionSingleUser" ng-options = "user as (user.username || user.email) for user in users track by user.id" ng-required = "appInstall.app.manifest.singleUser" > < / select >
2016-02-26 11:47:20 +01:00
< / div >
< div class = "form-group" ng-hide = "appInstall.app.manifest.singleUser" >
< label class = "control-label" > Access control< / label >
< div class = "radio" >
< label >
< input type = "radio" ng-model = "appInstall.accessRestrictionOption" value = "" >
Every Cloudron user
< / label >
< / div >
< div class = "radio" >
< label >
2016-02-26 11:59:18 +01:00
< input type = "radio" ng-model = "appInstall.accessRestrictionOption" value = "restricted" ng-disabled = "groups.length <= 1" >
2016-02-26 11:47:20 +01:00
Restrict to groups
< / label >
< / div >
2016-02-26 11:59:18 +01:00
< div ng-show = "groups.length <= 1" > No groups available. Create groups to restrict access to them first.< / div >
2016-02-26 11:47:20 +01:00
< div class = "has-error" ng-show = "appInstall.accessRestrictionOption !== '' && !appInstall.isAccessRestrictionValid()" > Select at least one group< / div >
< div >
< div >
< span ng-repeat = "group in groups | ignoreAdminGroup" >
< button class = "btn btn-default" type = "button" ng-disabled = "appInstall.accessRestrictionOption === ''" ng-click = "appInstall.toggleGroup(group);" ng-class = "{ 'btn-primary': (appInstall.accessRestriction.groups && appInstall.accessRestriction.groups.indexOf(group.id) !== -1) }" > {{ group.name }}< / button >
< / span >
< / div >
< / div >
2015-07-20 00:09:47 -07:00
< / div >
2015-10-28 20:30:15 +01:00
< br / >
2016-01-13 15:53:14 +01:00
< div class = "hide" >
2015-10-29 21:01:16 +01:00
< label class = "control-label" for = "appInstallCertificateInput" ng-show = "config.isCustomDomain" > Certificate (optional)< / label >
< div class = "has-error text-center" ng-show = "appInstall.error.cert && config.isCustomDomain" > {{ appInstall.error.cert }}< / div >
2015-10-28 20:50:55 +01:00
< div class = "form-group" ng-class = "{ 'has-error': !appInstallForm.certificate.$dirty && appInstall.error.cert }" ng-show = "config.isCustomDomain" >
2015-10-28 20:30:15 +01:00
< div class = "input-group" >
< input type = "file" id = "appInstallCertificateFileInput" style = "display:none" / >
2015-10-28 21:20:59 +01:00
< input type = "text" class = "form-control" placeholder = "Certificate" ng-model = "appInstall.certificateFileName" id = "appInstallCertificateInput" name = "certificate" onclick = "getElementById('appInstallCertificateFileInput').click();" style = "cursor: pointer;" ng-required = "appInstall.keyFileName" >
2015-10-28 20:30:15 +01:00
< span class = "input-group-addon" >
< i class = "fa fa-upload" onclick = "getElementById('appInstallCertificateFileInput').click();" > < / i >
< / span >
< / div >
< / div >
2015-10-28 20:50:55 +01:00
< div class = "form-group" ng-class = "{ 'has-error': !appInstallForm.key.$dirty && appInstall.error.cert }" ng-show = "config.isCustomDomain" >
2015-10-28 20:30:15 +01:00
< div class = "input-group" >
< input type = "file" id = "appInstallKeyFileInput" style = "display:none" / >
2015-10-28 21:20:59 +01:00
< input type = "text" class = "form-control" placeholder = "Key" ng-model = "appInstall.keyFileName" id = "appInstallKeyInput" name = "key" onclick = "getElementById('appInstallKeyFileInput').click();" style = "cursor: pointer;" ng-required = "appInstall.certificateFileName" >
2015-10-28 20:30:15 +01:00
< span class = "input-group-addon" >
< i class = "fa fa-upload" onclick = "getElementById('appInstallKeyFileInput').click();" > < / i >
< / span >
< / div >
< / div >
2016-01-13 15:53:14 +01:00
< / div >
2015-10-28 20:30:15 +01:00
2015-07-20 00:09:47 -07:00
< input class = "ng-hide" type = "submit" ng-disabled = "appInstallForm.$invalid || busy" / >
< / form >
< / div >
< div class = "collapse" id = "collapseMediaLinksCarousel" data-toggle = "false" >
< div ng-repeat = "mediaLink in appInstall.mediaLinks" class = "slick-item" style = "background-image: url('{{mediaLink}}');" ng-show = "appInstall.mediaLinks.length == 1" > < / div >
< slick init-onload = "true" current-index = "0" autoplay = "true" arrows = "false" autoplay-speed = "2000" data = "appInstall.mediaLinks" ng-show = "appInstall.mediaLinks.length > 1" >
< div ng-repeat = "mediaLink in appInstall.mediaLinks" class = "slick-item" style = "background-image: url('{{mediaLink}}');" > < / div >
< / slick >
< div class = "appstore-install-description" >
< div ng-bind-html = "appInstall.app.manifest.description | markdown2html" > < / div >
< / div >
< / div >
2015-10-22 10:40:33 +02:00
< div class = "collapse" id = "collapseResourceConstraint" data-toggle = "false" >
2016-02-25 12:41:15 +01:00
< h4 class = "text-danger" > This Cloudron is running low on resources.< / h4 >
2016-04-18 16:16:44 +02:00
< p > Installing this app might decrease the performance of other apps. The Cloudron's resources can be extended with a plan upgrade or available resources may be freed up by uninstalling unused applications.< / p >
2015-10-22 10:40:33 +02:00
< / div >
2015-07-20 00:09:47 -07:00
< / div >
< div class = "modal-footer" >
2016-04-18 17:12:47 +02:00
< button type = "button" class = "btn btn-success pull-left" ng-show = "!appInstall.installFormVisible && user.admin && appInstall.resourceConstraintVisible" ng-click = "showRequestUpgrade()" > Upgrade Cloudron< / button >
2015-07-20 00:09:47 -07:00
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Close< / button >
2016-02-26 12:50:05 +01:00
< button type = "button" class = "btn btn-danger" ng-show = "!appInstall.installFormVisible && user.admin && appInstall.resourceConstraintVisible" ng-click = "appInstall.showForm(true)" > Install anyway< / button >
< button type = "button" class = "btn btn-success" ng-show = "!appInstall.installFormVisible && user.admin && !appInstall.resourceConstraintVisible" ng-click = "appInstall.showForm()" > Install< / button >
< button type = "button" class = "btn btn-success" ng-show = "appInstall.installFormVisible && user.admin && !appInstall.resourceConstraintVisible" ng-click = "appInstall.submit()" ng-disabled = "appInstallForm.$invalid || appInstall.busy" > < i class = "fa fa-spinner fa-pulse" ng-show = "appInstall.busy" > < / i > Install< / button >
2015-07-20 00:09:47 -07:00
< / div >
< / div >
< / div >
< / div >
2015-08-09 14:48:00 +02:00
<!-- Modal feedback -->
< div class = "modal fade" id = "feedbackModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > App Feedback< / h4 >
< / div >
< div class = "modal-body" >
< fieldset >
2016-02-26 12:50:05 +01:00
< form name = "feedbackForm" ng-submit = "feedback.submit()" >
2015-08-09 14:48:00 +02:00
< div ng-show = "feedback.error" class = "text-danger text-bold" > {{feedback.error}}< / div >
< textarea class = "form-control" id = "feedbackDescriptionTextarea" cols = "3" ng-model = "feedback.description" ng-minlength = "1" required placeholder = "Name, Category, Links ..." autofocus > < / textarea >
< input class = "ng-hide" type = "submit" ng-disabled = "feedbackForm.$invalid || feedback.busy" / >
< / form >
< / fieldset >
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-default" data-dismiss = "modal" > Cancel< / button >
2016-02-26 12:50:05 +01:00
< button type = "button" class = "btn btn-success" ng-click = "feedback.submit()" ng-disabled = "feedbackForm.$invalid || feedback.busy" > < i class = "fa fa-fw fa-paper-plane" > < / i > Submit< / button >
2015-08-09 14:48:00 +02:00
< / div >
< / div >
< / div >
< / div >
2015-08-10 16:16:38 +02:00
<!-- Modal app not found -->
< div class = "modal fade" id = "appNotFoundModal" tabindex = "-1" role = "dialog" >
< div class = "modal-dialog" >
< div class = "modal-content" >
< div class = "modal-header" >
< h4 class = "modal-title" > App not found< / h4 >
< / div >
< div class = "modal-body" >
There is no such app < b > {{ appNotFound.appId }}< / b > < span ng-show = "appNotFound.version" > with version < b > {{ appNotFound.version }}< / b > < / span > .
< / div >
< div class = "modal-footer" >
< button type = "button" class = "btn btn-primary" data-dismiss = "modal" > Ok< / button >
< / div >
< / div >
< / div >
< / div >
2015-07-20 00:09:47 -07:00
< div >
< div class = "row-no-margin" >
< div class = "col-md-2" >
< / div >
< div class = "col-md-8 col-same-height" >
< br / >
< h1 > Available Applications< / h1 >
< br / >
< / div >
< div class = "col-md-2 col-same-height" style = "float: right;" >
< br / >
< div class = "appstore-search" >
< form ng-submit = "search()" >
< div class = "input-group" >
< input type = "text" class = "form-control" placeholder = "Search for..." ng-model = "searchString" ng-change = "search()" >
< span class = "input-group-btn" >
< button class = "btn btn-default" type = "button" type = "submit" ng-click = "search()" > < i class = "fa fa-search" > < / i > < / button >
< / span >
< / div >
< / form >
< / div >
< / div >
< / div >
< div class = "row" >
< div class = "col-md-2" >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === '' }" category = "" > All< / a >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === 'blog' }" category = "blog" > Blog< / a >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === 'chat' }" category = "chat" > Chat< / a >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === 'sync' }" category = "sync" > Media Sync< / a >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === 'git' }" category = "git" > Code Hosting< / a >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === 'wiki' }" category = "wiki" > Wiki< / a >
2015-07-27 17:09:57 +02:00
< br / >
< a href = "" class = "appstore-category-link" ng-click = "showCategory($event);" ng-class = "{'category-active': category === 'testing' }" category = "testing" ng-show = "config.developerMode" > Testing< / a >
2015-08-06 18:30:46 +02:00
< br / >
< br / >
< br / >
2016-02-26 12:50:05 +01:00
< a href = "" ng-click = "feedback.show()" > Missing an app? Let us know.< / a >
2015-07-20 00:09:47 -07:00
< / div >
< div class = "col-md-10" ng-show = "ready && apps.length" >
< div class = "row-no-margin" >
< div class = "col-sm-1 appstore-item" ng-repeat = "app in apps" >
2016-01-25 16:21:41 +01:00
< div class = "appstore-item-content highlight" ng-click = "gotoApp(app)" ng-class = "{ 'appstore-item-content-testing': (app.publishState === 'testing' || app.publishState === 'pending_approval') }" >
2015-07-28 13:21:23 +02:00
< span class = "badge badge-danger appstore-item-badge-testing" ng-show = "app.publishState === 'testing'" > Testing< / span >
2015-08-17 11:50:06 +02:00
< span class = "badge badge-warning appstore-item-badge-testing" ng-show = "app.publishState === 'pending_approval'" > Pending Approval< / span >
2015-07-20 00:09:47 -07:00
< div class = "appstore-item-content-icon col-same-height" >
< img ng-src = "{{app.iconUrl}}" onerror = "this.onerror=null;this.src='img/appicon_fallback.png'" class = "app-icon" / >
< / div >
< div class = "appstore-item-content-description col-same-height" >
< h4 class = "appstore-item-content-title" > {{ app.manifest.title }}< / h4 >
< div class = "appstore-item-content-tagline text-muted" > {{ app.manifest.tagline }}< / div >
<!-- <div class="appstore - item - rating"><i class="fa fa - star"></i><i class="fa fa - star"></i><i class="fa fa - star"></i><i class="fa fa - star - half - o"></i><i class="fa fa - star - o"></i></div> -->
< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "col-md-10 animateMeOpacity loading-banner" ng-show = "ready && !apps.length" >
2015-08-06 18:35:08 +02:00
< h3 class = "text-muted" > No applications in this category.< / h3 >
2016-02-26 12:50:05 +01:00
< a href = "" ng-click = "feedback.show()" > < h3 > Let us know if you miss something.< / h3 > < / a >
2015-07-20 00:09:47 -07:00
< / div >
< div class = "col-md-10 animateMeOpacity loading-banner" ng-show = "!ready" >
< h2 > < i class = "fa fa-spinner fa-pulse" > < / i > Loading< / h2 >
< / div >
< / div >
< / div >
<!-- Offset the footer -->
< br / > < br / >