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 CHANGED
@@ -1 +1 @@
1
- 0.5.7
1
+ 0.5.8
@@ -18,3 +18,8 @@ select.date {
18
18
  width: auto;
19
19
  }
20
20
 
21
+ .form-inline {
22
+ input[type=text], input[type=url] {
23
+ width: auto;
24
+ }
25
+ }
@@ -6,6 +6,7 @@
6
6
  padding: 0 20px;
7
7
  background-color: white;
8
8
  z-index: 10;
9
+ border-bottom-color: #ddd;
9
10
  }
10
11
 
11
12
  .page-actions {
@@ -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) || /#{path}/
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
- %h2= data[:name]
9
- .btn-toolbar
10
- = link_to("New #{data[:resource_name]}", polymorphic_url((controller_namespaces + [resource, data[:resource_class]]), :action => :new), :class => 'btn')
11
- = table_for(controller_namespaces + [resource, data[:resource_class]], resource.send(data[:symbol])) do |t|
12
- = render (controller_namespaces + [data[:symbol].to_s, 'table']).join('/'), :t => t, :resource_class => data[:resource_class]
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]
@@ -25,7 +25,7 @@
25
25
  = render 'page_header'
26
26
  .row-fluid
27
27
  %span{:class => "span#{content_cols}"}
28
- = render 'sub_menu'
28
+ = render 'subnav'
29
29
  = render 'flashes'
30
30
  = yield
31
31
  - if sidebar?
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.7"
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-03"
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/_sub_menu.html.haml",
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.7
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-03 00:00:00.000000000 Z
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/_sub_menu.html.haml
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: -361774337552347466
415
+ hash: 2928487205871375182
416
416
  required_rubygems_version: !ruby/object:Gem::Requirement
417
417
  none: false
418
418
  requirements:
File without changes