From 98206310bd90a06cc6550c101e7d22f66f94eb5a Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 18 Aug 2016 15:59:00 -0400 Subject: [PATCH 1/4] Extract the add repo permissions UI into its own directive --- .../directives/ui/add-repo-permissions.css | 35 ++++ static/directives/add-repo-permissions.html | 69 +++++++ static/directives/create-entity-dialog.html | 79 +------- .../js/directives/ui/add-repo-permissions.js | 188 ++++++++++++++++++ .../js/directives/ui/create-entity-dialog.js | 139 ++----------- 5 files changed, 323 insertions(+), 187 deletions(-) create mode 100644 static/css/directives/ui/add-repo-permissions.css create mode 100644 static/directives/add-repo-permissions.html create mode 100644 static/js/directives/ui/add-repo-permissions.js diff --git a/static/css/directives/ui/add-repo-permissions.css b/static/css/directives/ui/add-repo-permissions.css new file mode 100644 index 000000000..dbab124da --- /dev/null +++ b/static/css/directives/ui/add-repo-permissions.css @@ -0,0 +1,35 @@ +.add-repo-permissions-element label { + margin-top: 4px; +} + +.add-repo-permissions-element .co-table { + margin-top: 20px; +} + +.add-repo-permissions-element .fa-hdd-o { + margin-right: 4px; + vertical-align: middle; +} + +.add-repo-permissions-element .co-filter-box { + display: block; + float: right; + margin-bottom: 20px; +} + +.add-repo-permissions-element .co-filter-box .filter-message { + left: -180px; + top: 4px; +} + +.add-repo-permissions-element .co-filter-box input { + width: 100%; + padding-top: 2px; + padding-bottom: 2px; + height: 28px; +} + +.add-repo-permissions-element label .avatar { + vertical-align: text-bottom; + margin-left: 4px; +} \ No newline at end of file diff --git a/static/directives/add-repo-permissions.html b/static/directives/add-repo-permissions.html new file mode 100644 index 000000000..6257915ab --- /dev/null +++ b/static/directives/add-repo-permissions.html @@ -0,0 +1,69 @@ +
+ + + Showing {{ orderedRepositories.entries.length }} of {{ repositories.length }} repositories + + + + + + + + + + + + + + + + + + + + +
+ +
+ All Repositories +
+
+ No Repositories +
+
+ Missing Permissions +
+
+
+ Repository Name + Permission + Last Updated +
+ + + + + + + + + {{ repo.last_modified * 1000 | amCalendar }} + + (Empty Repository) +
+ +
+
No matching repositories found.
+
Try expanding your filtering terms.
+
+
\ No newline at end of file diff --git a/static/directives/create-entity-dialog.html b/static/directives/create-entity-dialog.html index 90d59f959..af655928b 100644 --- a/static/directives/create-entity-dialog.html +++ b/static/directives/create-entity-dialog.html @@ -16,73 +16,16 @@