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 CHANGED
@@ -15,7 +15,7 @@ spec = Gem::Specification.new do |s|
15
15
  s.name = 'merb-words'
16
16
  s.rubyforge_project = 'uipoet'
17
17
  s.summary = 'Word Management for Merb'
18
- s.version = '0.4'
18
+ s.version = '0.4.1'
19
19
  end
20
20
 
21
21
  Rake::GemPackageTask.new(spec) do |pkg|
@@ -13,29 +13,31 @@
13
13
  <% end =%>
14
14
  <% end %>
15
15
  <% end =%>
16
- <% if category_id %>
17
- <%= mui_link(:title => 'All', :title_size => '0.85em', :url => slice_url(:index, attributes)) %>
18
- <% else %>
19
- <span style="font-size:0.85em;">All</span>
20
- <% end %>
21
- <% if categories %>
22
- <% categories.each do |category| %>
23
- <%= mui_grid(:columns => 2, :width => '100%') do %>
24
- <%= mui_cell do %>
25
- <% if category_id.to_i == category.id %>
26
- <span style="font-size:0.85em;"><%= category.title %></span>
27
- <% else %>
28
- <% attributes[:category_id] = category.id %>
29
- <%= mui_link(:title => category.title, :title_size => '0.85em', :url => slice_url(:index, attributes)) %>
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
+ &nbsp;
36
+ <%= mui_button(:title => 'Update', :title_size => '0.75em', :url => slice_url(:category_update, :category_id => category.id), :window => 'open') %>
37
+ <%= mui_button(:title => '&#215;', :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
- <% if merb_words_password? %>
33
- <%= mui_cell(:align => 'right', :wrap => false) do %>
34
- &nbsp;
35
- <%= mui_button(:title => 'Update', :title_size => '0.75em', :url => slice_url(:category_update, :category_id => category.id), :window => 'open') %>
36
- <%= mui_button(:title => '&#215;', :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
- <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 %>
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
- <% 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)) %>
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
+ &nbsp;
12
+ <%= mui_button(:title => '&#215;', :title_size => '0.75em', :tone => 'negative', :url => slice_url(:query_delete, :query => q)) %>
13
+ <% end =%>
9
14
  <% end =%>
10
- <%= mui_cell(:align => 'right', :wrap => false) do %>
11
- &nbsp;
12
- <%= mui_button(:title => '&#215;', :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: "0.4"
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-15 00:00:00 -08:00
12
+ date: 2008-12-16 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency