Skip to content
This repository was archived by the owner on Dec 27, 2019. It is now read-only.

Commit 1962d79

Browse files
committed
minor updates
1 parent 5938258 commit 1962d79

File tree

4 files changed

+18
-7
lines changed

4 files changed

+18
-7
lines changed

app/views/admin/pages/tabs/_snippets.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<div class='wym_skin_refinery page_part' id='page_snippet_picker' style="padding: 5px;">
2-
<%= render :partial => '/admin/pages/tabs/snippets_bar', :locals => {:f => f} %>
3-
<%= render :partial => '/admin/pages/tabs/snippets_field', :locals => {:f => f} %>
2+
<%= render :partial => '/admin/pages/tabs/snippets_content', :locals => {:f => f} %>
43
</div>
54

65
<% content_for :javascripts do %>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<%= render :partial => '/admin/pages/tabs/snippets_bar', :locals => {:f => f} %>
2+
<%= render :partial => '/admin/pages/tabs/snippets_field', :locals => {:f => f} %>

app/views/admin/snippets/_form.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
:object => @snippet,
44
:include_object_name => true
55
} %>
6-
7-
<%= render :partial => "locale_picker",
8-
:locals => {
9-
:current_locale => Thread.current[:globalize_locale]
10-
} if defined?(::Refinery::I18n) %>
116

127
<div class='field'>
138
<%= f.label :title -%>
149
<%= f.text_field :title, :class => 'larger widest' -%>
1510
</div>
11+
12+
<%= render :partial => "locale_picker",
13+
:locals => {
14+
:current_locale => Thread.current[:globalize_locale]
15+
} if defined?(::Refinery::I18n) %>
1616

1717
<div class='field'>
1818
<div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ Snippets allows you to relate one or more html blocks to any page in Refinery.
1515
* Documentation
1616
* Tests
1717

18+
### to 2.0
19+
* custom attributes for snippet (id, classes etc)
20+
* support for dynamic snippets (erb templates, forms etc)
21+
* improve UI
22+
1823
## Install
1924

2025
Add this line to your applications `Gemfile`
@@ -41,3 +46,8 @@ Next run
4146
<% end %>
4247
<% end %>
4348
<%= render :partial => "/shared/content_page" %>
49+
50+
## Donate
51+
52+
Feel free buy me some gift ;-)
53+
http://www.amazon.com/gp/registry/wishlist/1BBMUW9DDYXFF

0 commit comments

Comments
 (0)