qui-toolbar 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/qui-toolbar-base.rb +8 -0
- data/public/stylesheets/qui/toolbar.css +6 -0
- metadata +3 -3
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.
|
|
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
|
data/lib/qui-toolbar-base.rb
CHANGED
|
@@ -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
|
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:
|
|
4
|
+
hash: 23
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 4
|
|
10
|
+
version: 0.0.4
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Marcin Lewandowski
|