scratch_pad-widgets-system_menu 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig ADDED
Binary file
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
5
+ .redcar
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source :rubygems
2
+
3
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,7 @@
1
+ module Widgets
2
+ class SystemMenu < ScratchPad::Addon::Widget
3
+ def self.root
4
+ Pathname.new(__FILE__) + '..' + '..'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,48 @@
1
+ @mixin system_menu_all
2
+ // all menus
3
+ menu
4
+ /* FINDME
5
+ @include no-bullets
6
+ background:
7
+ color: #EEEEEE
8
+ cursor: default
9
+ li
10
+ padding:
11
+ left: 0.25em
12
+ right: 0.25em
13
+ label
14
+ a
15
+ a
16
+ display: block
17
+ width: 100%
18
+ &:hover
19
+ > menu
20
+ display: block
21
+ // top-level menu
22
+ > menu
23
+ /* FINDME
24
+ @include horizontal-list-container
25
+ > li
26
+ /* FINDME
27
+ @include horizontal-list-item
28
+ > label
29
+ a
30
+ > a
31
+ &:hover
32
+ menu
33
+ // submenus
34
+ menu menu
35
+ display: none
36
+ margin: 0
37
+ position: absolute
38
+ li
39
+ position: relative
40
+ text:
41
+ align: left
42
+ label
43
+ a
44
+ a
45
+ &:hover
46
+ menu
47
+ left: 100%
48
+ top: 0
@@ -0,0 +1,11 @@
1
+ - if items.present?
2
+ %menu<>
3
+ - items.each do |item|
4
+ %li{ :class => item.href && current_page?(item.href) ? 'current' : nil }<>
5
+ - link = current_page?(item.href) ? item.name : link_to_if(item.href, item.name, item.href)
6
+ - if item.children
7
+ %label<>= link
8
+ - else
9
+ = link
10
+ - if item.children
11
+ = show_addon Widgets::SystemMenu, '_tree', :items => item.children
@@ -0,0 +1 @@
1
+ %section.system-menu= show_addon Widgets::SystemMenu, '_tree', :items => @system_menu
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path('../lib', __FILE__)
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = 'scratch_pad-widgets-system_menu'
6
+ s.version = '0.0.1'
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ['Raving Genius']
9
+ s.email = ['rg+code@ravinggenius.com']
10
+ s.homepage = 'https://github.com/ravinggenius/scratch_pad-widgets-system_menu'
11
+ s.summary = %q{Widget gem for ScratchPad}
12
+ #s.description = %q{TODO fill this in}
13
+
14
+ s.rubyforge_project = 'scratch_pad-widgets-system_menu'
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ['lib']
20
+
21
+ s.signing_key = '/home/thomas/Code/___/certificates/gem-private_key.pem'
22
+ s.cert_chain = [
23
+ '/home/thomas/Code/___/certificates/gem-public_cert.pem'
24
+ ]
25
+ end
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: scratch_pad-widgets-system_menu
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.0.1
6
+ platform: ruby
7
+ authors:
8
+ - Raving Genius
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain:
12
+ - |
13
+ -----BEGIN CERTIFICATE-----
14
+ MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRAwDgYDVQQDDAdyZ19j
15
+ b2RlMRwwGgYKCZImiZPyLGQBGRYMcmF2aW5nZ2VuaXVzMRMwEQYKCZImiZPyLGQB
16
+ GRYDY29tMB4XDTExMDEzMTAyMzI1MloXDTEyMDEzMTAyMzI1MlowRTEQMA4GA1UE
17
+ AwwHcmdfY29kZTEcMBoGCgmSJomT8ixkARkWDHJhdmluZ2dlbml1czETMBEGCgmS
18
+ JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMBt
19
+ UkaBJrNx3C6klKOoWtCEL+t+jZEdov0FU7Oos0jYceQ04u5SXYYm/t6mw4L5WvEQ
20
+ NoDaUGFQ3VS9gIKMuosMUIAOsw8pUGA4OeSkIDaj8Z1QgjYiXJTNYia1Vt0cbeOa
21
+ OCUVzDOgFb/GT3RDV3ZaOuuTCVTTeid8IwbPNseu/n5paS8HEHTla8D7L5bHFta7
22
+ p2RuKD09dvLYIwm+zrrMGHf1qN8ASq2EV9G8xwQVCXX8fPbnW62GSvbnRqoao7Mh
23
+ SQDY5GJlC/16gMMpoMdkaqVojXUeo+hQZzliVcJvqg0QjhcYxCGlyCgtTdCEWL+y
24
+ fA2XoEEHM5t8g1JWzMkCAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQU5tcW
25
+ zeGngxI/7uKRz8ZLkubhDn0wCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IB
26
+ AQCLyf/Qko0uooWPFEgkot/W4pcpkXnyYpH+5FfBN36XQcpkD6Ky5J6Wjej6ZqfA
27
+ umvfF/CK03N3S52axZLHNEunJn19NVJ871RNMViMjJH5qzp8CJcNksdVctcwztwD
28
+ /0mmYu+vTfvJ4DIg5Q7vvTdS3WriewDc3APaa3la93ZRIEwbQjJASoS0EEAr1pw0
29
+ WKoA5gx4BqPJHT0QH4LE0MQoE4XB8I/Y3xs5OUwItZL1xWpiUixKpDIqB5zKtN0m
30
+ EtSgImjQmbN559J/qAn31487zcviSWdGfNkLGT/rfVaLd6lg1VVgA5k5tG6roxiJ
31
+ CvvfejGH+Hi4YXI1pPhLJj8g
32
+ -----END CERTIFICATE-----
33
+
34
+ date: 2011-02-25 00:00:00 -05:00
35
+ default_executable:
36
+ dependencies: []
37
+
38
+ description:
39
+ email:
40
+ - rg+code@ravinggenius.com
41
+ executables: []
42
+
43
+ extensions: []
44
+
45
+ extra_rdoc_files: []
46
+
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - Rakefile
51
+ - lib/scratch_pad-widgets-system_menu/system_menu.rb
52
+ - lib/styles/all.sass
53
+ - lib/views/_tree.html.haml
54
+ - lib/views/show.html.haml
55
+ - scratch_pad-widgets-system_menu.gemspec
56
+ has_rdoc: true
57
+ homepage: https://github.com/ravinggenius/scratch_pad-widgets-system_menu
58
+ licenses: []
59
+
60
+ post_install_message:
61
+ rdoc_options: []
62
+
63
+ require_paths:
64
+ - lib
65
+ required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
67
+ requirements:
68
+ - - ">="
69
+ - !ruby/object:Gem::Version
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: "0"
77
+ requirements: []
78
+
79
+ rubyforge_project: scratch_pad-widgets-system_menu
80
+ rubygems_version: 1.5.2
81
+ signing_key:
82
+ specification_version: 3
83
+ summary: Widget gem for ScratchPad
84
+ test_files: []
85
+
metadata.gz.sig ADDED
Binary file