merb-words 0.4 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/app/views/pages/_category.html.erb +25 -23
- data/app/views/pages/_order.html.erb +17 -16
- data/app/views/pages/_search.html.erb +14 -13
- metadata +2 -2
data/Rakefile
CHANGED
@@ -13,29 +13,31 @@
|
|
13
13
|
<% end =%>
|
14
14
|
<% end %>
|
15
15
|
<% end =%>
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
<%
|
22
|
-
<% categories
|
23
|
-
|
24
|
-
<%=
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
<%
|
29
|
-
|
16
|
+
<%= mui_block do %>
|
17
|
+
<% if category_id %>
|
18
|
+
<%= mui_link(:title => 'All', :title_size => '0.85em', :url => slice_url(:index, attributes)) %>
|
19
|
+
<% else %>
|
20
|
+
<span style="font-size:0.85em;">All</span>
|
21
|
+
<% end %>
|
22
|
+
<% if categories %>
|
23
|
+
<% categories.each do |category| %>
|
24
|
+
<%= mui_grid(:columns => 2, :width => '100%') do %>
|
25
|
+
<%= mui_cell do %>
|
26
|
+
<% if category_id.to_i == category.id %>
|
27
|
+
<span style="font-size:0.85em;"><%= category.title %></span>
|
28
|
+
<% else %>
|
29
|
+
<% attributes[:category_id] = category.id %>
|
30
|
+
<%= mui_link(:title => category.title, :title_size => '0.85em', :url => slice_url(:index, attributes)) %>
|
31
|
+
<% end %>
|
32
|
+
<% end =%>
|
33
|
+
<% if merb_words_password? %>
|
34
|
+
<%= mui_cell(:align => 'right', :wrap => false) do %>
|
35
|
+
|
36
|
+
<%= mui_button(:title => 'Update', :title_size => '0.75em', :url => slice_url(:category_update, :category_id => category.id), :window => 'open') %>
|
37
|
+
<%= mui_button(:title => '×', :title_size => '0.75em', :tone => 'negative', :url => slice_url(:category_delete, :category_id => category.id), :window => 'open') %>
|
38
|
+
<% end =%>
|
30
39
|
<% end %>
|
31
40
|
<% end =%>
|
32
|
-
|
33
|
-
<%= mui_cell(:align => 'right', :wrap => false) do %>
|
34
|
-
|
35
|
-
<%= mui_button(:title => 'Update', :title_size => '0.75em', :url => slice_url(:category_update, :category_id => category.id), :window => 'open') %>
|
36
|
-
<%= mui_button(:title => '×', :title_size => '0.75em', :tone => 'negative', :url => slice_url(:category_delete, :category_id => category.id), :window => 'open') %>
|
37
|
-
<% end =%>
|
38
|
-
<% end %>
|
39
|
-
<% end =%>
|
41
|
+
<% end %>
|
40
42
|
<% end %>
|
41
|
-
<% end
|
43
|
+
<% end =%>
|
@@ -1,16 +1,17 @@
|
|
1
|
-
<%= mui_block(:title => 'Sort by', :title_size => '1em') %>
|
2
|
-
<% orders.each do |order| %>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
<% end %>
|
1
|
+
<%= mui_block(:title => 'Sort by', :title_size => '1em') do %>
|
2
|
+
<% orders.each do |order| %>
|
3
|
+
<div>
|
4
|
+
<% if order_property == order.property %>
|
5
|
+
<span style="font-size:0.85em;"><%= order.title %></span>
|
6
|
+
<% else %>
|
7
|
+
<%
|
8
|
+
attributes = {}
|
9
|
+
attributes[:category_id] = params[:category_id]
|
10
|
+
attributes[:order_property] = order.property
|
11
|
+
attributes[:search] = params[:search]
|
12
|
+
%>
|
13
|
+
<%= mui_link(:title => order.title, :title_size => '0.85em', :url => slice_url(:index, attributes)) %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
<% end %>
|
17
|
+
<% end =%>
|
@@ -1,17 +1,18 @@
|
|
1
1
|
<% if queries = session[:merb_words_queries] and !queries.blank? %>
|
2
|
-
<%= mui_block(:title => 'Searches', :title_size => '1em') %>
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
2
|
+
<%= mui_block(:title => 'Searches', :title_size => '1em') do %>
|
3
|
+
<% attributes = {} %>
|
4
|
+
<% queries.each do |q| %>
|
5
|
+
<% attributes[:q] = CGI.unescape(q) %>
|
6
|
+
<%= mui_grid(:columns => 2, :width => '100%') do %>
|
7
|
+
<%= mui_cell do %>
|
8
|
+
<%= mui_link(:title => CGI.unescape(q), :title_size => '0.85em', :url => slice_url(:index, attributes)) %>
|
9
|
+
<% end =%>
|
10
|
+
<%= mui_cell(:align => 'right', :wrap => false) do %>
|
11
|
+
|
12
|
+
<%= mui_button(:title => '×', :title_size => '0.75em', :tone => 'negative', :url => slice_url(:query_delete, :query => q)) %>
|
13
|
+
<% end =%>
|
9
14
|
<% end =%>
|
10
|
-
|
11
|
-
|
12
|
-
<%= mui_button(:title => '×', :title_size => '0.75em', :tone => 'negative', :url => slice_url(:query_delete, :query => q)) %>
|
13
|
-
<% end =%>
|
14
|
-
<% end =%>
|
15
|
-
<% end %>
|
15
|
+
<% end %>
|
16
|
+
<% end =%>
|
16
17
|
<%= mui_divider %>
|
17
18
|
<% end %>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: merb-words
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UiPoet
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-12-
|
12
|
+
date: 2008-12-16 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|