fullstack-cms 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.8
1
+ 0.1.9
@@ -1,5 +1,5 @@
1
1
  <%= f.resource_inputs %>
2
2
 
3
3
  <% if partial?("other_fields") %>
4
- <%= render :partial => "other_fields" %>
4
+ <%= render :partial => "other_fields", :locals => {:f => f} %>
5
5
  <% end %>
@@ -32,7 +32,7 @@
32
32
 
33
33
  <% current_resource.page_parts.each do |p| %>
34
34
  <%= t.pane t(p.name, :scope => 'fullstack.cms.parts', :default => p.name.try(:humanize)) do %>
35
- <%= f.admin_fields_for :parts, p do |f| %>
35
+ <%= f.admin_fields_for :page_parts, p do |f| %>
36
36
  <%= f.resource_inputs :except => [:page_id, :name] %>
37
37
  <% end %>
38
38
  <% end %>
@@ -1,6 +1,6 @@
1
- <li class="span3">
1
+ <li class="span2">
2
2
  <div class="thumbnail">
3
- <%= image_tag photo.url(:thumb), :style => "height: 140px", :'data-zoom-url' => photo.url %>
3
+ <%= image_tag photo.url(:thumb), :style => "height: 162px", :'data-zoom-url' => photo.url %>
4
4
  <div class="thumbnail-toolbar">
5
5
  <%= btn t('fullstack.admin.edit', :default => "Edit"), edit_admin_photo_path(photo), :'data-target' => '#edit-photo-modal', :'data-toggle' => 'modal' %>
6
6
  <%= btn '', admin_photo_path(photo), :remote => true, :method => :delete, :confirm => t('fullstack.admin.are_you_sure', :default => "Are you sure?"), :icon => :trash, :type => :danger, :icon_color => :white, :'data-tip' => t('fullstack.admin.delete', :default => "Delete") %>
@@ -5,5 +5,6 @@ en:
5
5
  time:
6
6
  formats:
7
7
  pubdate: "%e %b, %Y"
8
-
8
+ pubtime: "%e %b, %Y %H:%M"
9
+
9
10
 
@@ -5,5 +5,6 @@ it:
5
5
  time:
6
6
  formats:
7
7
  pubdate: "%e %b, %Y"
8
-
8
+ pubtime: "%e %b, %Y %H:%M"
9
+
9
10
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "fullstack-cms"
8
- s.version = "0.1.8"
8
+ s.version = "0.1.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["mcasimir"]
@@ -1,10 +1,15 @@
1
1
  class Site::SiteController < ApplicationController
2
2
  include Pageable
3
-
3
+ rescue_from ActiveRecord::RecordNotFound, :with => :render_404
4
4
  authorize :scope => "site", :resourceful => false
5
5
 
6
6
  page :home, "/" do
7
7
 
8
8
  end
9
9
 
10
+ private
11
+ def render_404
12
+ render :file => Rails.root.join("public", "404.html"), :layout => false, :status => :not_found
13
+ end
14
+
10
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fullstack-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -306,7 +306,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
306
306
  version: '0'
307
307
  segments:
308
308
  - 0
309
- hash: -35735827444127195
309
+ hash: 3344686283421868299
310
310
  required_rubygems_version: !ruby/object:Gem::Requirement
311
311
  none: false
312
312
  requirements: