diff --git a/static/css/directives/repo-view/repo-panel-settings.css b/static/css/directives/repo-view/repo-panel-settings.css index ff626b9ba..8925365eb 100644 --- a/static/css/directives/repo-view/repo-panel-settings.css +++ b/static/css/directives/repo-view/repo-panel-settings.css @@ -29,6 +29,18 @@ margin-top: -7px !important; } +.repo-panel-settings-element .repo-count-checker { + margin-top: 20px; +} + +.repo-panel-settings-element .co-alert { + margin-bottom: 0px; +} + +.repo-panel-settings-element .panel-body { + border-bottom: 0px; +} + @media (max-width: 767px) { .repo-panel-settings-element .delete-btn { float: none; diff --git a/static/css/directives/ui/repo-count-checker.css b/static/css/directives/ui/repo-count-checker.css new file mode 100644 index 000000000..d357afdba --- /dev/null +++ b/static/css/directives/ui/repo-count-checker.css @@ -0,0 +1,26 @@ +.repo-count-checker .btn { + margin-top: 0px !important; +} + +.repo-count-checker .co-alert { + margin-bottom: 6px !important; + padding-right: 120px; +} + +.repo-count-checker .co-alert .btn { + position: absolute; + top: 10px; + right: 10px; +} + +@media (max-width: 767px) { + .repo-count-checker .co-alert { + padding-right: 10px; + } + + .repo-count-checker .co-alert .btn { + position: relative; + margin-top: 20px; + margin-bottom: 10px; + } +} \ No newline at end of file diff --git a/static/directives/repo-count-checker.html b/static/directives/repo-count-checker.html new file mode 100644 index 000000000..4b89b1204 --- /dev/null +++ b/static/directives/repo-count-checker.html @@ -0,0 +1,24 @@ +
+
+
+ In order to make this repository private under + your personal namespace + organization {{ repo.namespace }}, you will need to upgrade your plan to + + {{ planRequired.title }} + . + This will cost ${{ planRequired.price / 100 }}/month. + Upgrade now +
+ or did you mean to have this repository under the {{ user.organizations[0].name }} namespace? +
+
+
+
+
+ This organization has reached its private repository limit. Please contact your administrator. +
+
+
+ \ No newline at end of file diff --git a/static/directives/repo-view/repo-panel-settings.html b/static/directives/repo-view/repo-panel-settings.html index b49d835b2..d6c6d7996 100644 --- a/static/directives/repo-view/repo-panel-settings.html +++ b/static/directives/repo-view/repo-panel-settings.html @@ -22,12 +22,10 @@
- +
-
Repository Settings
- +
Repository Visibility
-
@@ -44,12 +42,23 @@
This repository is currently public and is visible to all users, and may be pulled by all users.
- -
- + +
+
+
+
+ + + +
+
Delete Repository
+
+
+
+
- -