beef-pages 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/app/views/admin/pages/_page.html.erb +3 -3
- data/app/views/admin/pages/show.html.erb +5 -0
- data/pages.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
@@ -1,5 +1,5 @@
|
|
1
|
-
<tr class="level-<%= level %>" id="pages
|
2
|
-
<td class="title"><% level.times{|i|
|
1
|
+
<tr class="level-<%= level %>" id="pages-<%= page.id %>">
|
2
|
+
<td class="title"><span class="indent"><% level.times{|i| %>-<%} %></span><%= link_to page.title, [:admin, page] %></td>
|
3
3
|
<td><%= content_status(page) %></td>
|
4
4
|
<td><%= page.author %></td>
|
5
5
|
<td><%= page.editor %></td>
|
@@ -13,4 +13,4 @@
|
|
13
13
|
<td><%= link_to 'up', move_up_admin_page_path(page), { :class => "page_up" } if current_user.admin? && !page.first_child? %><%= link_to 'down', move_down_admin_page_path(page), { :class => 'page_down' } if current_user.admin? && !page.last_child? %></td>
|
14
14
|
<% end %>
|
15
15
|
</tr>
|
16
|
-
<%= render :partial => page.children, :locals => { :level => level+1 } %>
|
16
|
+
<%= render :partial => page.children, :locals => { :level => level + 1 } %>
|
@@ -1,3 +1,8 @@
|
|
1
|
+
<% content_for :header do %>
|
2
|
+
<%= javascript_include_tag 'lightwindow' %>
|
3
|
+
<%= stylesheet_link_tag 'lightwindow' %>
|
4
|
+
<% end -%>
|
5
|
+
|
1
6
|
<h1><%= @page.new_record? ? 'New' : 'Editing' %> page</h1>
|
2
7
|
|
3
8
|
<% form_for([:admin, @page], :html => { :id => 'has-assets-form' }) do |f| %>
|
data/pages.gemspec
CHANGED