-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow supplying and absolute image in search.
[delivers #89736538 #89736572]
- Loading branch information
Showing
8 changed files
with
110 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ | |
"undef": false, | ||
"strict": false, | ||
"trailing": true, | ||
"browser": true | ||
"browser": true, | ||
"maxlen": 120 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
- remote ||= false | ||
- app ||= nil | ||
.search-result-item.absolute-image-result{data: {'title' => presenter.title, 'status-label' => presenter.status_label}} | ||
.badge.absolute= 'Absolute' | ||
.basic-info | ||
%h3 | ||
= presenter.title | ||
%p | ||
This image search query looks like it may be a private image. | ||
%br/ | ||
= link_to 'Learn about private image authorization.', 'https://github.com/CenturyLinkLabs/panamax-ui/wiki/How-to:-Add-Registries', target: '_blank' | ||
.actions | ||
- if app | ||
= form_tag app_services_path(app.id) do | ||
= hidden_field_tag 'app[name]', @app.name | ||
= hidden_field_tag 'app[category]', 'null', class: 'category-form-field' | ||
= hidden_field_tag 'name', presenter.title | ||
= hidden_field_tag 'app[image]', presenter.title | ||
%button.button-positive{ data: { disable_with: 'Adding...', tracking: { method: 'click', action: 'Add to Application', category: 'Run Image', label: presenter.title }}} Add to App | ||
- else | ||
= form_tag apps_path do | ||
= hidden_field_tag 'app[image]', presenter.title | ||
%button.button-positive{ data: { disable_with: 'Starting App...', tracking: { method: 'click', action: 'Create Application', category: 'Run Image', label: presenter.title }}} Run Image |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters