caboose-cms 0.4.31 → 0.4.32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODVhZTZhODgyYWQ1NTVhNTdkODkxMmUzMTQ4OWRkMzQ1ZjBkMGNmZQ==
4
+ MDdmYzgxOTllZTExZDEyYTFhMDE1ZmM5OTExNGE0NTg3MTQzNzJlMg==
5
5
  data.tar.gz: !binary |-
6
- ZDYwN2Q2Mjg3MTEzOGIwMDBlZTY1ZjBkMzQxOTZlYjk3YzNkMzFjOA==
6
+ Mjc1ZGJjNDQyYzQ3MTNiNDNkOGZjMjdkOTEyYzRkOTkwYWRkOTRkYQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZGYyYWEyNTlmZjNjM2Q5YWU1NzMxOWJkMDJmNjRiZTFmMjAwZjQwZjBkMGZk
10
- NTY1Njc0MmQ5ZTQ1NWNjMTBiNmU1OTFlZTA4NTZhYjVmMjRlZmUzM2Y3Mjcw
11
- MDJmOTQ1NDAwYTAwZjQ5NzhlMWZmNzczZTQ4YTk2Y2JmYjA5M2E=
9
+ NWQ3NDFkZWY5NDNlMWY5OTBhYTgyZTkzZTQzMmRhNGQ2MmYwOGU2ZjJkYTYx
10
+ MDg3ZmM2Y2Y0MmI1N2Q3NTdmNGM1MWEwZmYyNDIyNzk4NjA1ODVmMjQzYmI1
11
+ MWI4YWFhMmRjNTUyMThkMWQ1NzVmOGEzOTZlYTdhNzc1MTg1ODg=
12
12
  data.tar.gz: !binary |-
13
- NDMzMDVhNTAyN2I0OWZiZGQyZTQ3OWM5NzYyODVmOTMzMzBjMWQzZmFlMzJk
14
- YmQxOTVmMTlhMjdlOGE0NmZmODI1MDIyZjg4NWM5NmZkZDU0MGZkNDkxM2Ji
15
- ODM1ZDc1ZDIwMjUzMjViNTU0NmRmOGE2OGEyMjUzZjUxOTIwZmI=
13
+ OWIwOWI4MzJlOGJhODIxYWFmM2YzNTc2YmZhZmE4ZTc2YWY2N2JlNmVjN2Uz
14
+ NGM4NzRlNDhiMmJkNzg5YTY1MDEwNmY1YzliYTZkNjU2MjA4NDMxMGIyNmJm
15
+ NzRiOGNjNjlkZGFhYjc4YjE3NDhiYjk2MDQyY2FkMDAyZDkyYTg=
@@ -4,7 +4,10 @@ module Caboose
4
4
 
5
5
  # GET /admin
6
6
  def index
7
- redirect_to '/admin/pages' if logged_in?
7
+ if logged_in?
8
+ redirect_to '/admin/pages'
9
+ return
10
+ end
8
11
  @return_url = params[:return_url].nil? ? '/station' : params[:return_url]
9
12
  end
10
13
 
@@ -24,10 +24,6 @@
24
24
  <% end %>
25
25
 
26
26
  <% content_for :caboose_js do %>
27
- <%
28
- #= javascript_include_tag "jquery.ui.all"
29
- #= javascript_include_tag "caboose/model/all"
30
- %>
31
27
  <%= javascript_include_tag 'caboose/admin_page_edit_content' %>
32
28
  <script type='text/javascript'>
33
29
 
@@ -36,9 +32,10 @@ $(document).ready(function() {
36
32
  controller = new PageContentController(<%= @page.id %>);
37
33
 
38
34
  $('body').append($('<div/>')
39
- .attr('id', 'tiny_header')
40
- .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>/edit').html("< Back"))
41
- .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>/layout').html("Layout"))
35
+ .attr('id', 'tiny_header')
36
+ .append($('<a/>').attr('href', '/admin/pages').html("< Back"))
37
+ .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>/layout').html("Page Layout"))
38
+ .append($('<a/>').attr('href', '/admin/pages/<%= @page.id %>/edit').html("Page Settings"))
42
39
  );
43
40
  });
44
41
 
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.31'
2
+ VERSION = '0.4.32'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.31
4
+ version: 0.4.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry