qui-toolbar 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gemspec.email = "marcin@saepia.net"
10
10
  gemspec.homepage = "http://q.saepia.net"
11
11
  gemspec.authors = ["Marcin Lewandowski"]
12
- gemspec.version = "0.0.3"
12
+ gemspec.version = "0.0.4"
13
13
  gemspec.files = Rake::FileList.new [ "MIT-LICENSE", "Rakefile", "public/stylesheets/qui/*", "lib/*", "rails/*", "README.rdoc" ]
14
14
  end
15
15
  rescue LoadError
@@ -21,6 +21,14 @@ module QUI
21
21
  def delete
22
22
  add_toolbar_link_to({ :controller => controller_name, :action => "destroy" }, { :link_options => { :confirm => true, :method => :delete }, :action => :delete })
23
23
  end
24
+
25
+ def index
26
+ add_toolbar_link_to({ :controller => controller_name, :action => "index" }, { :action => :index })
27
+ end
28
+
29
+ def separator
30
+ content_tag(:div, "", :class => "separator")
31
+ end
24
32
 
25
33
  protected
26
34
  def controller_name
@@ -25,3 +25,9 @@ div.toolbar a:hover {
25
25
  div.toolbar a:active {
26
26
  color: #f00;
27
27
  }
28
+
29
+ div.toolbar div.separator {
30
+ display: inline;
31
+ margin: 0 1em;
32
+
33
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qui-toolbar
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcin Lewandowski