sferik-merb-admin 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/Rakefile +1 -1
- data/app/views/forms/edit.html.erb +1 -1
- data/app/views/forms/new.html.erb +1 -1
- data/app/views/layout/dashboard.html.erb +2 -2
- data/app/views/layout/form.html.erb +2 -2
- data/app/views/layout/list.html.erb +2 -2
- data/lib/merb-admin.rb +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -14,7 +14,7 @@ At the command prompt, type:
|
|
14
14
|
|
15
15
|
In your app, add the following dependency to `config/dependencies.rb`:
|
16
16
|
|
17
|
-
dependency "sferik-merb-admin", "0.2.
|
17
|
+
dependency "sferik-merb-admin", "0.2.2", :require_as => "merb-admin"
|
18
18
|
|
19
19
|
Add the following route to `config/router.rb`:
|
20
20
|
|
data/Rakefile
CHANGED
@@ -12,7 +12,7 @@ AUTHOR = "Erik Michaels-Ober"
|
|
12
12
|
EMAIL = "sferik@gmail.com"
|
13
13
|
HOMEPAGE = "http://twitter.com/sferik"
|
14
14
|
SUMMARY = "MerbAdmin is a merb slice that provides an easy-to-use interface for managing your data."
|
15
|
-
GEM_VERSION = "0.2.
|
15
|
+
GEM_VERSION = "0.2.2"
|
16
16
|
|
17
17
|
spec = Gem::Specification.new do |s|
|
18
18
|
s.rubyforge_project = "merb"
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<h2><%= @model_name %> info</h2>
|
11
11
|
<% @properties.each do |property| %>
|
12
12
|
<% next if [:id, :created_at, :created_on, :updated_at, :updated_on].include?(property.name) %>
|
13
|
-
<%= partial
|
13
|
+
<%= partial(property.primitive.to_s.snake_case, :property => property) -%>
|
14
14
|
<% end %>
|
15
15
|
</fieldset>
|
16
16
|
<div class="submit-row" >
|
@@ -5,7 +5,7 @@
|
|
5
5
|
<h2><%= @model_name %> info</h2>
|
6
6
|
<% @properties.each do |property| %>
|
7
7
|
<% next if [:id, :created_at, :created_on, :updated_at, :updated_on].include?(property.name) %>
|
8
|
-
<%= partial
|
8
|
+
<%= partial(property.primitive.to_s.snake_case, :property => property) -%>
|
9
9
|
<% end %>
|
10
10
|
</fieldset>
|
11
11
|
<div class="submit-row" >
|
@@ -24,12 +24,12 @@
|
|
24
24
|
<!-- Welcome, <strong></strong>. <a href="">Log out</a> -->
|
25
25
|
</div>
|
26
26
|
</div>
|
27
|
-
<%= partial
|
27
|
+
<%= partial('layout/message') -%>
|
28
28
|
<div id="content" class="colMS">
|
29
29
|
<h1>
|
30
30
|
<%= page_name %>
|
31
31
|
</h1>
|
32
|
-
<%= catch_content
|
32
|
+
<%= catch_content(:for_layout) -%>
|
33
33
|
</div>
|
34
34
|
<div id="footer"></div>
|
35
35
|
</div>
|
@@ -38,12 +38,12 @@
|
|
38
38
|
<%= link_to(@model_name.pluralize, url(:admin_list, :model_name => @model_name.snake_case)) %> ›
|
39
39
|
<%= page_name %>
|
40
40
|
</div>
|
41
|
-
<%= partial
|
41
|
+
<%= partial('layout/message', :message => message) unless message.blank? -%>
|
42
42
|
<div id="content" class="colM">
|
43
43
|
<h1>
|
44
44
|
<%= page_name %>
|
45
45
|
</h1>
|
46
|
-
<%= catch_content
|
46
|
+
<%= catch_content(:for_layout) -%>
|
47
47
|
</div>
|
48
48
|
<div id="footer"></div>
|
49
49
|
</div>
|
@@ -32,12 +32,12 @@
|
|
32
32
|
<%= link_to("Home", url(:admin_dashboard)) %> ›
|
33
33
|
<%=h @model_name.pluralize %>
|
34
34
|
</div>
|
35
|
-
<%= partial
|
35
|
+
<%= partial('layout/message') -%>
|
36
36
|
<div id="content" class="flex">
|
37
37
|
<h1>
|
38
38
|
<%= page_name %>
|
39
39
|
</h1>
|
40
|
-
<%= catch_content
|
40
|
+
<%= catch_content(:for_layout) -%>
|
41
41
|
</div>
|
42
42
|
<div id="footer"></div>
|
43
43
|
</div>
|
data/lib/merb-admin.rb
CHANGED
@@ -22,7 +22,7 @@ if defined?(Merb::Plugins)
|
|
22
22
|
|
23
23
|
# Slice metadata
|
24
24
|
self.description = "MerbAdmin is a merb slice that uses your DataMapper models to provide an easy-to-use, Django-style interface for content managers."
|
25
|
-
self.version = "0.2.
|
25
|
+
self.version = "0.2.2"
|
26
26
|
self.author = "Erik Michaels-Ober"
|
27
27
|
|
28
28
|
# Stub classes loaded hook - runs before LoadClasses BootLoader
|