beef-pages 0.3.25 → 0.3.26

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.25
1
+ 0.3.26
@@ -12,6 +12,10 @@
12
12
  <td class="action"><%= link_to 'Add page', new_admin_page_page_path(page), :class => 'add', :title => "Add a sub-page under #{page.title}" unless page.lock_level >= Page::LOCK_LEVEL_SUBPAGE %></td>
13
13
  <td class="action"><%= link_to 'Edit', [:admin, page], :class => 'edit', :title => 'Edit this page' %></td>
14
14
  <td class="action"><%= link_to('Delete', admin_page_path(page), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this page') unless page.lock_level >= Page::LOCK_LEVEL_DELETE %></td>
15
+
16
+ <% unless page.root? %>
15
17
  <td class="action"><%= link_to 'up', move_up_admin_page_path(page), { :class => "page_up", :title => 'Move this page higher in the navigation' } unless page.first? %></td>
16
18
  <td class="action"><%= link_to 'down', move_down_admin_page_path(page), { :class => 'page_down', :title => 'Move this page lower in the navigation' } unless page.last? %></td>
19
+ <% end %>
20
+
17
21
  </tr>
@@ -25,7 +25,7 @@
25
25
  <th>Created</th>
26
26
  <th>Published At</th>
27
27
  <th>Published To</th>
28
- <th colspan="7">Actions</th>
28
+ <th colspan="<%= @parent.nil? ? 5 : 7 %>">Actions</th>
29
29
  </tr>
30
30
  </thead>
31
31
  <tbody>
@@ -42,7 +42,7 @@
42
42
  <th>Created</th>
43
43
  <th>Published At</th>
44
44
  <th>Published To</th>
45
- <th colspan="7">Actions</th>
45
+ <th colspan="<%= @parent.nil? ? 5 : 7 %>">Actions</th>
46
46
  </tr>
47
47
  </tfoot>
48
48
  </table>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beef-pages}
8
- s.version = "0.3.25"
8
+ s.version = "0.3.26"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Steve England"]
12
- s.date = %q{2010-07-09}
12
+ s.date = %q{2010-07-13}
13
13
  s.email = %q{steve@wearebeef.co.uk}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beef-pages
3
3
  version: !ruby/object:Gem::Version
4
- hash: 33
4
+ hash: 39
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 25
10
- version: 0.3.25
9
+ - 26
10
+ version: 0.3.26
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steve England
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-09 00:00:00 +01:00
18
+ date: 2010-07-13 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21