From aaa264863bdcf609d6f31e611b7fcb6bd2db21af Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Mon, 18 Nov 2013 00:24:01 +0100 Subject: [PATCH] Experimenting with search column on the left and results on the right (follows the mockups closer) --- .../_packages_search_results_grid.html.erb | 2 +- app/views/packages/index.html.erb | 114 +++++++++--------- 2 files changed, 58 insertions(+), 58 deletions(-) diff --git a/app/views/packages/_packages_search_results_grid.html.erb b/app/views/packages/_packages_search_results_grid.html.erb index 2aa6f18..7b48eef 100644 --- a/app/views/packages/_packages_search_results_grid.html.erb +++ b/app/views/packages/_packages_search_results_grid.html.erb @@ -2,7 +2,7 @@ <% if @packages.length>0 %> <% @packages.each do |package| %> -
+
<% if package.screenshots.length>0 %> <% screenshot = package.screenshots.first %> diff --git a/app/views/packages/index.html.erb b/app/views/packages/index.html.erb index a028c52..44ef30b 100644 --- a/app/views/packages/index.html.erb +++ b/app/views/packages/index.html.erb @@ -35,69 +35,69 @@
-
- <% if @packages.any? %> -
    - -
  • Page #<%= params[:page] or 1 %>
  • - -
- <% if params[:display]=='grid' %> - <%= render 'packages_search_results_grid', object: @packages %> - <% else %> - <%= render 'packages_search_results_list', object: @packages %> - <% end %> - <% else %> -

- Oh snap… I did not find software packages like that. Try looking for something else. -

- <% end %> -
+
    + +
  • Page #<%= params[:page] or 1 %>
  • + +
-
-
-
- - -
+
+
+ +
+ + +
-
- -
- +
+ +
+ +
+
+ +
-
- -
-
-
- -
- +
+ +
+ +
+
+ +
-
- -
-
- - -
-
- Rechts + + +
+ +
+ <% if @packages.any? %> + <% if params[:display]=='grid' %> + <%= render 'packages_search_results_grid', object: @packages %> + <% else %> + <%= render 'packages_search_results_list', object: @packages %> + <% end %> + <% else %> +

+ Oh snap… I did not find software packages like that. Try looking for something else. +

+ <% end %> +