lolita 3.2.0.rc.13 → 3.2.0.rc.14
Sign up to get free protection for your applications and to get access to all the features.
- data/app/views/components/lolita/configuration/field/array/select/_display.html.haml +1 -1
- data/app/views/components/lolita/configuration/tab/_error_msg.html.haml +4 -3
- data/app/views/components/lolita/navigation/_tree.html.haml +1 -1
- data/lib/lolita/navigation/branch.rb +1 -1
- data/lib/lolita/version.rb +1 -1
- metadata +3 -3
@@ -1 +1 @@
|
|
1
|
-
= current_form.select field.name, (field.view_values(self)),(field.options || {}).merge({:include_blank => field.include_blank}),field.html_options || {}
|
1
|
+
= current_form.select field.name, (field.view_values(self)),(field.options || {}).merge({:include_blank => field.include_blank, :selected => current_form.object[field.name]}),field.html_options || {}
|
@@ -6,9 +6,10 @@
|
|
6
6
|
- if tab.fields.by_name(attr_name.to_sym)
|
7
7
|
- klass = resource.lolita.dbi.reflect_on_association(assoc_name.to_sym).klass
|
8
8
|
- klass.human_attribute_name(attr_name).downcase
|
9
|
-
-
|
10
|
-
-
|
11
|
-
|
9
|
+
- elsif tab.fields.by_name(k.to_sym)
|
10
|
+
- resource.class.human_attribute_name(k)
|
11
|
+
- elsif assoc = resource.lolita.dbi.reflect_on_association(k.to_sym)
|
12
|
+
- assoc.klass.lolita_model_name.human
|
12
13
|
- if title && resource.errors[k] && resource.errors[k].respond_to?(:any?) && resource.errors[k].any?
|
13
14
|
- "#{title.to_s.capitalize}: #{resource.errors[k].join(" #{::I18n.t("lolita.shared.and")} ")}"
|
14
15
|
= raw(errors.compact.join("<br>"))
|
@@ -9,6 +9,6 @@
|
|
9
9
|
- active = branch.active?(self)
|
10
10
|
- classes = [] << (active && "active") << (branch.subtree? && "with-subtree") << (!tree.root? && branch == last_branch && "last-in-subtree")
|
11
11
|
%li{:class => classes.reject{|e| !e}.join(" ")}
|
12
|
-
= link_to branch.title, branch.options[:
|
12
|
+
= link_to branch.title, branch.options[:calculated_url] || "#"
|
13
13
|
- if branch.subtree?
|
14
14
|
= render_component(:"lolita/navigation", :tree, :tree => branch.children, :visible => active)
|
data/lib/lolita/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lolita
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.0.rc.
|
4
|
+
version: 3.2.0.rc.14
|
5
5
|
prerelease: 6
|
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: 2012-
|
12
|
+
date: 2012-09-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: kaminari
|
@@ -579,7 +579,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
579
579
|
version: '0'
|
580
580
|
segments:
|
581
581
|
- 0
|
582
|
-
hash:
|
582
|
+
hash: 4171682622327448422
|
583
583
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
584
584
|
none: false
|
585
585
|
requirements:
|