From 2a8669b2f4d47c1f8e3b56b4e5b838fb38573a81 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 7 Mar 2014 21:06:31 -0500 Subject: [PATCH] - Switch to new typeahead (based on our own branch of it until such time as it gets pulled into the mainline) and add an informative empty message on entity search - Add better messaging around pushing to empty repos --- static/css/quay.css | 21 ++- static/directives/trigger-setup-github.html | 2 +- static/js/app.js | 149 +++++++++++++++----- static/lib/typeahead.bundle.min.js | 7 + static/lib/typeahead.min.js | 7 - static/partials/team-view.html | 2 +- static/partials/view-repo.html | 17 ++- templates/base.html | 4 +- 8 files changed, 153 insertions(+), 56 deletions(-) create mode 100644 static/lib/typeahead.bundle.min.js delete mode 100644 static/lib/typeahead.min.js diff --git a/static/css/quay.css b/static/css/quay.css index 636343e4b..bde24600a 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -1538,10 +1538,17 @@ p.editable:hover i { } .repo .empty-description { - max-width: 600px; padding: 6px; } +.repo .empty-description pre:last-child { + margin-bottom: 0px; +} + +.repo .empty-description .panel-default { + margin-top: 20px; +} + .repo dl.dl-horizontal dt { width: 80px; padding-right: 10px; @@ -2834,9 +2841,10 @@ p.editable:hover i { .tt-suggestion { display: block; padding: 3px 20px; + cursor: pointer; } -.tt-suggestion.tt-is-under-cursor { +.tt-suggestion.tt-cursor { color: #fff; background-color: #0081c2; background-image: -moz-linear-gradient(top, #0088cc, #0077b3); @@ -2848,10 +2856,17 @@ p.editable:hover i { filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0) } -.tt-suggestion.tt-is-under-cursor a { +.tt-suggestion.tt-cursor a { color: #fff; } +.tt-empty { + padding: 10px; + font-size: 12px; + color: #aaa; + white-space: nowrap; +} + .tt-suggestion p { margin: 0; } diff --git a/static/directives/trigger-setup-github.html b/static/directives/trigger-setup-github.html index 89500bb26..9b0e194ab 100644 --- a/static/directives/trigger-setup-github.html +++ b/static/directives/trigger-setup-github.html @@ -29,7 +29,7 @@
Dockerfile Location:
- To push images to this repository:

-
sudo docker tag 0u123imageidgoeshere quay.io/{{repo.namespace}}/{{repo.name}}
-sudo docker push quay.io/{{repo.namespace}}/{{repo.name}}
+
+
How to push a new image to this repository:
+
+ First login to Quay.io (if you have not done so already): +
sudo docker login quay.io
+ + Tag an image to this repository: +
sudo docker tag 0u123imageidgoeshere quay.io/{{repo.namespace}}/{{repo.name}}
+ + Push the image to this repository: +
sudo docker push quay.io/{{repo.namespace}}/{{repo.name}}
+
+
+
diff --git a/templates/base.html b/templates/base.html index 767aeacde..5bbda45f3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -45,6 +45,7 @@ + @@ -54,12 +55,11 @@ + - -