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 +1 -1
- data/app/views/admin/base/_fields.html.erb +1 -1
- data/app/views/admin/pages/_form.html.erb +1 -1
- data/app/views/admin/photos/_photo.html.erb +2 -2
- data/config/locales/formats.en.yml +2 -1
- data/config/locales/formats.it.yml +2 -1
- data/fullstack-cms.gemspec +1 -1
- data/lib/generators/fullstack/cms/templates/rails/app/controllers/site/site_controller.rb +6 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.9
|
@@ -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
|
-
|
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="
|
1
|
+
<li class="span2">
|
2
2
|
<div class="thumbnail">
|
3
|
-
<%= image_tag photo.url(:thumb), :style => "height:
|
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") %>
|
data/fullstack-cms.gemspec
CHANGED
@@ -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.
|
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:
|
309
|
+
hash: 3344686283421868299
|
310
310
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
311
|
none: false
|
312
312
|
requirements:
|