From c6f2132094abe877bed42de397a5dc1214404f27 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 18 Nov 2013 19:03:35 -0500 Subject: [PATCH] - Convert to Angular 1.2.1 - Change the header into a directive - Change the repo search into a directive - Fix ZeroClipboard issue that occurs in the new Chrome beta - Add support for dynamic --- static/css/quay.css | 4 +- .../header-bar.html} | 2 +- static/directives/markdown-view.html | 2 +- static/directives/repo-search.html | 1 + static/js/app.js | 134 ++++++++++++++++-- static/js/controllers.js | 86 +++-------- static/lib/ZeroClipboard.min.js | 15 +- templates/base.html | 7 +- templates/index.html | 4 +- templates/privacy.html | 4 + templates/tos.html | 6 +- 11 files changed, 162 insertions(+), 103 deletions(-) rename static/{partials/header.html => directives/header-bar.html} (96%) create mode 100644 static/directives/repo-search.html diff --git a/static/css/quay.css b/static/css/quay.css index bf3f1124a..871a82f26 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -673,8 +673,8 @@ form input.ng-valid.ng-dirty, text-align: center; } -#repoSearch { - width: 300px; +.repo-search-box { + width: 240px; } .repo-mini-listing { diff --git a/static/partials/header.html b/static/directives/header-bar.html similarity index 96% rename from static/partials/header.html rename to static/directives/header-bar.html index 34e2d2231..7231c5768 100644 --- a/static/partials/header.html +++ b/static/directives/header-bar.html @@ -24,7 +24,7 @@