From 70aec00914521791d01b6ba840db51c19fb46f1d Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Thu, 19 Mar 2015 15:08:18 -0400 Subject: [PATCH] Add a fetch tag dialog --- .../directives/repo-view/repo-panel-info.css | 11 ++ .../directives/repo-view/repo-panel-tags.css | 5 + static/css/directives/ui/fetch-tag-dialog.css | 19 ++++ static/css/quay.css | 14 +++ static/directives/fetch-tag-dialog.html | 70 ++++++++++++ .../directives/repo-view/repo-panel-info.html | 7 ++ .../directives/repo-view/repo-panel-tags.html | 11 +- static/img/docker.png | Bin 0 -> 1475 bytes static/img/rocket.png | Bin 0 -> 618 bytes .../directives/repo-view/repo-panel-info.js | 11 +- static/js/directives/ui/fetch-tag-dialog.js | 104 ++++++++++++++++++ static/js/services/features-config.js | 4 + static/js/services/user-service.js | 4 + 13 files changed, 258 insertions(+), 2 deletions(-) create mode 100644 static/css/directives/ui/fetch-tag-dialog.css create mode 100644 static/directives/fetch-tag-dialog.html create mode 100644 static/img/docker.png create mode 100644 static/img/rocket.png create mode 100644 static/js/directives/ui/fetch-tag-dialog.js diff --git a/static/css/directives/repo-view/repo-panel-info.css b/static/css/directives/repo-view/repo-panel-info.css index 2291fd852..a0d35b312 100644 --- a/static/css/directives/repo-view/repo-panel-info.css +++ b/static/css/directives/repo-view/repo-panel-info.css @@ -1,3 +1,14 @@ +.repo-panel-info-element .right-controls { + margin-bottom: 20px; + float: right; +} + +.repo-panel-info-element .right-controls .copy-box { + width: 400px; + display: inline-block; + margin-left: 10px; +} + .repo-panel-info-element .stat-col { border-right: 2px solid #eee; } diff --git a/static/css/directives/repo-view/repo-panel-tags.css b/static/css/directives/repo-view/repo-panel-tags.css index aebf689f8..9df9c2679 100644 --- a/static/css/directives/repo-view/repo-panel-tags.css +++ b/static/css/directives/repo-view/repo-panel-tags.css @@ -63,4 +63,9 @@ .repo-panel-tags-element .options-col { padding-left: 20px; +} + +.repo-panel-tags-element .options-col .fa-download { + color: #999; + cursor: pointer; } \ No newline at end of file diff --git a/static/css/directives/ui/fetch-tag-dialog.css b/static/css/directives/ui/fetch-tag-dialog.css new file mode 100644 index 000000000..8155650a5 --- /dev/null +++ b/static/css/directives/ui/fetch-tag-dialog.css @@ -0,0 +1,19 @@ +.fetch-tag-dialog .modal-table { + width: 100%; +} + +.fetch-tag-dialog .modal-table .first-col { + width: 140px; +} + +.fetch-tag-dialog .co-dialog .modal-body { + padding: 20px; +} + +.fetch-tag-dialog .entity-search { + margin: 10px; +} + +.fetch-tag-dialog pre.command { + margin-top: 10px; +} \ No newline at end of file diff --git a/static/css/quay.css b/static/css/quay.css index bcc0f6584..333fbd411 100644 --- a/static/css/quay.css +++ b/static/css/quay.css @@ -4787,6 +4787,20 @@ i.slack-icon { height: 16px; } +i.docker-icon { + background-image: url(/static/img/docker.png); + background-size: 16px; + width: 16px; + height: 16px; +} + +i.rocket-icon { + background-image: url(/static/img/rocket.png); + background-size: 16px; + width: 16px; + height: 16px; +} + .external-notification-view-element { margin: 10px; padding: 6px; diff --git a/static/directives/fetch-tag-dialog.html b/static/directives/fetch-tag-dialog.html new file mode 100644 index 000000000..befe6cedc --- /dev/null +++ b/static/directives/fetch-tag-dialog.html @@ -0,0 +1,70 @@ +
+ + +
\ No newline at end of file diff --git a/static/directives/repo-view/repo-panel-info.html b/static/directives/repo-view/repo-panel-info.html index 24f779460..245e3ba22 100644 --- a/static/directives/repo-view/repo-panel-info.html +++ b/static/directives/repo-view/repo-panel-info.html @@ -62,7 +62,14 @@
+ + + +

Description

+
Image + + + + + @@ -98,4 +104,7 @@
\ No newline at end of file + action-handler="tagActionHandler">
+ +
+
\ No newline at end of file diff --git a/static/img/docker.png b/static/img/docker.png new file mode 100644 index 0000000000000000000000000000000000000000..ee01a5ee8a9ea542f17123ed9c587510a2e26aef GIT binary patch literal 1475 zcmV;!1w8tRP)+(fofHYbct z7*K_dWFwmr35jN}Fd7pRjiT8b<4YG~_HK!0x)@EIj7*}LWu##SsR%e!jR>VYCg?1bo3s&Wq=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)bQmGWp`38PBJjILs!zis#2v}DWwzjrf zsJ$zUArns1cH!?Mi!UDE{pWpeyf&ZkEdT(^*KB-rL(dmpdFu1sj}{geYI`J(R|dxT z<$Gf@Gt^AipcEQMU8P9V=(+Kh(KEkpzxeJ;e>n8+h1(Io1)!E+WjB6t=L-)$vg)fH zot+OaDir*DLzcHcDDkV)S1E=uei9Oti)6~zuho~Xp3F~N-nVFEaPQv3htJ=x@SFfQ zfcTw{tX|%}Wa-1Xy6mRFsCC82R;Qz6zi*@Cb=A^PS dzXxy+;Gc5Vg6*aX&Q$;a002ovPDHLkV1knE)4Biv literal 0 HcmV?d00001 diff --git a/static/img/rocket.png b/static/img/rocket.png new file mode 100644 index 0000000000000000000000000000000000000000..e42c081418cc1d45930d25de275a50f19a506a6b GIT binary patch literal 618 zcmV-w0+s!VP)mOi3!cJ{msL>r!L)5^cCI|%OtE7cWplXofuoChTJ_JHnN&#vPzwjnX5M*~-2Rer6~cHtY?%QmrSoHn6h-g3KtQzB zVCHP00zh5N6rXfTRkahbe6upV0568yvVA%)=RSn&{bJ!_Mt&45n z@H1Cs1`!xOVl8B~jE>Yl{d{I!)71861AqWs?xApQ|1W!33BJ5C271KTBUL z*