Skip to content

Commit

Permalink
Share example search terms.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwelch committed Mar 19, 2015
1 parent 8c6bdf5 commit adf06cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 16 deletions.
8 changes: 8 additions & 0 deletions app/views/search/_examples.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
%p.microcopy
%strong Examples:
Wordpress,
=link_to '!=namespace/private-repo', 'https://github.com/CenturyLinkLabs/panamax-ui/wiki/How-to:-Add-Registries#running-an-image-from-a-private-repository', target: '_blank', title: 'Learn about search filters.'
=','
=link_to '!=your_registry_endpoint/your-repo', 'https://github.com/CenturyLinkLabs/panamax-ui/wiki/How-to:-Add-Registries#running-an-image-from-a-private-repository', target: '_blank', title: 'Learn about search filters.'
=','
Rails, redis, NGiNX, you get the picture...
9 changes: 1 addition & 8 deletions app/views/search/new.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,7 @@
= form_for @search_result_set, url: search_path, method: :get, html: {class: 'search-form'} do |f|
= f.text_field :q, placeholder: 'enter your query', accesskey: 's', class: 'query-field'
= f.button 'Search', class: 'button-primary'
%p.microcopy
%strong Examples:
Wordpress,
=link_to '!=namespace/private-repo', 'https://github.com/CenturyLinkLabs/panamax-ui/wiki/How-to:-Add-Registries#running-an-image-from-a-private-repository', target: '_blank', title: 'Learn about search filters.'
=','
=link_to '!=your_registry_endpoint/your-repo', 'https://github.com/CenturyLinkLabs/panamax-ui/wiki/How-to:-Add-Registries#running-an-image-from-a-private-repository', target: '_blank', title: 'Learn about search filters.'
=','
Rails, redis, NGiNX, you get the picture...
= render 'examples'

= render 'keyword_cloud', keywords: @keywords_sorted_by_term, sort_title: 'Count', sorted_by: :name, display_style: 'none'
= render 'keyword_cloud', keywords: @keywords_sorted_by_count, sort_title: 'Name', sorted_by: :count
Expand Down
9 changes: 1 addition & 8 deletions app/views/services/_add_service.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,7 @@
= form_for @search_result_set, url: search_path, method: :get, html: {class: 'search-form'} do |f|
= f.text_field :q, placeholder: 'enter your command / query', accesskey: 's', class: 'query-field'
= f.button 'Search', class: 'button-primary'
%p.example-searches
%strong
Examples:
%a{data: {query: 'wordpress'}} wordpress
%a{data: {query: 'apache'}} apache
%a{data: {query: 'rails'}} rails
%a{data: {query: 'ubuntu'}} ubuntu
%a{data: {query: 'java'}} java
= render '/search/examples'

%h3.search-title Images
.local-image-results
Expand Down

0 comments on commit adf06cd

Please sign in to comment.