app_frame 0.5.7 → 0.5.8
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/VERSION +1 -1
- data/app/assets/stylesheets/app_frame/_forms.scss +5 -0
- data/app/assets/stylesheets/app_frame/_page_header.scss +1 -0
- data/app/assets/stylesheets/app_frame/application.scss +9 -0
- data/app/helpers/app_frame/menu_helper.rb +2 -1
- data/app/views/application/_subnav.html.haml +1 -0
- data/app/views/application/show.html.haml +6 -5
- data/app/views/layouts/app_frame/default.html.haml +1 -1
- data/app_frame.gemspec +3 -3
- metadata +4 -4
- data/app/views/application/_sub_menu.html.haml +0 -0
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.8
|
@@ -12,6 +12,10 @@
|
|
12
12
|
@import 'sidenav';
|
13
13
|
@import 'page_header';
|
14
14
|
|
15
|
+
section {
|
16
|
+
border-bottom: 1px solid #eee;
|
17
|
+
}
|
18
|
+
|
15
19
|
.container-fluid > .sidebar {
|
16
20
|
position: absolute;
|
17
21
|
top: 0;
|
@@ -45,3 +49,8 @@ table .actions {
|
|
45
49
|
display: block;
|
46
50
|
}
|
47
51
|
|
52
|
+
#subnav {
|
53
|
+
background-color: #eee;
|
54
|
+
margin: -10px -20px 20px;
|
55
|
+
padding: 10px 20px 0;
|
56
|
+
}
|
@@ -2,7 +2,8 @@ module AppFrame
|
|
2
2
|
module MenuHelper
|
3
3
|
def menu_link(key, path = '#', options = {}, &block)
|
4
4
|
active = false
|
5
|
-
highlight = options.delete(:highlights_on)
|
5
|
+
highlight = options.delete(:highlights_on)
|
6
|
+
highlight ||= options.delete(:exact) ? /^#{path}$/ : /#{path}/
|
6
7
|
dropdown = options.delete(:dropdown)
|
7
8
|
|
8
9
|
Array(highlight).each do |regex|
|
@@ -0,0 +1 @@
|
|
1
|
+
= yield :subnav
|
@@ -5,8 +5,9 @@
|
|
5
5
|
= render 'show', :s => s
|
6
6
|
|
7
7
|
- child_resources.each do |data|
|
8
|
-
%
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
=
|
8
|
+
%section
|
9
|
+
%h2= data[:name]
|
10
|
+
.btn-toolbar
|
11
|
+
= link_to("New #{data[:resource_name]}", polymorphic_url((controller_namespaces + [resource, data[:resource_class]]), :action => :new), :class => 'btn')
|
12
|
+
= table_for(controller_namespaces + [resource, data[:resource_class]], resource.send(data[:symbol])) do |t|
|
13
|
+
= render (controller_namespaces + [data[:symbol].to_s, 'table']).join('/'), :t => t, :resource_class => data[:resource_class]
|
data/app_frame.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "app_frame"
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.8"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mateo Murphy"]
|
12
|
-
s.date = "2013-09-
|
12
|
+
s.date = "2013-09-04"
|
13
13
|
s.description = "An app framework"
|
14
14
|
s.email = "mateo.murphy@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -64,7 +64,7 @@ Gem::Specification.new do |s|
|
|
64
64
|
"app/views/application/_show.html.haml",
|
65
65
|
"app/views/application/_sidebar.html.haml",
|
66
66
|
"app/views/application/_sidenav.html.haml",
|
67
|
-
"app/views/application/
|
67
|
+
"app/views/application/_subnav.html.haml",
|
68
68
|
"app/views/application/_table.html.haml",
|
69
69
|
"app/views/application/_toolbar.html.haml",
|
70
70
|
"app/views/application/_top_menu.html.haml",
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: app_frame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bootstrap-sass
|
@@ -370,7 +370,7 @@ files:
|
|
370
370
|
- app/views/application/_show.html.haml
|
371
371
|
- app/views/application/_sidebar.html.haml
|
372
372
|
- app/views/application/_sidenav.html.haml
|
373
|
-
- app/views/application/
|
373
|
+
- app/views/application/_subnav.html.haml
|
374
374
|
- app/views/application/_table.html.haml
|
375
375
|
- app/views/application/_toolbar.html.haml
|
376
376
|
- app/views/application/_top_menu.html.haml
|
@@ -412,7 +412,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
412
412
|
version: '0'
|
413
413
|
segments:
|
414
414
|
- 0
|
415
|
-
hash:
|
415
|
+
hash: 2928487205871375182
|
416
416
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
417
417
|
none: false
|
418
418
|
requirements:
|
File without changes
|