browsercms 3.5.4 → 3.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- All BrowserCMS code is Copyright (C) 1998-2012 by BrowserMedia, LLC.
1
+ All BrowserCMS code is Copyright (C) 1998-2013 by BrowserMedia, LLC.
2
2
 
3
3
  This program is free software: you can redistribute it and/or modify
4
4
  it under the terms of the GNU Lesser General Public License as published by
@@ -28,7 +28,7 @@ Here's a quick overview of some of the more notable features:
28
28
  See the [Getting Started](https://github.com/browsermedia/browsercms/wiki/Getting-Started) guide for instructions on how to install and start a project with BrowserCMS.
29
29
 
30
30
  ## License
31
- BrowserCMS is released under a LGPL license, and is copyright 1998-2012 BrowserMedia. The complete copyright can be found in COPYRIGHT.txt, and copy of the license can be found in LICENSE.txt.
31
+ BrowserCMS is released under a LGPL license, and is copyright 1998-2013 BrowserMedia. The complete copyright can be found in COPYRIGHT.txt, and copy of the license can be found in LICENSE.txt.
32
32
 
33
33
  ## Documentation / Support
34
34
  The user documentation and guides for this version of the application can be found at:
@@ -66,12 +66,16 @@ class Cms::FormBuilder < ActionView::Helpers::FormBuilder
66
66
  #
67
67
  # @param [Symbol] method The name of the model this form upload is associated with
68
68
  # @param [Hash] options
69
- # @option options [String] :label (Data)
69
+ # @option options [String] :label (method) If no label is specified, the human readable name for method will be used.
70
70
  # @option options [String] :instructions (blank) Helpful tips for the person entering the field, appears blank if nothing is specified.
71
71
  # @option options [Boolean] :edit_path (false) If true, render a text field to allow users to edit path for this file.
72
72
  # @option options [Boolean] :edit_section (false) If true, render a select box which allows users to choose which section this attachment should be placed in.
73
73
  def cms_file_field(method, options={})
74
74
  @object.ensure_attachment_exists if @object.respond_to?(:ensure_attachment_exists)
75
+
76
+ unless options[:label]
77
+ options[:label] = method.to_s.humanize
78
+ end
75
79
  render_form_field("file_field", method, options)
76
80
  end
77
81
 
@@ -3,7 +3,7 @@
3
3
  <%= stylesheet_link_tag('cms/content_library') %>
4
4
  <% end %>
5
5
  <% page_title "Content Library / Edit #{content_type.display_name}" %>
6
- <% @toolbar_title = "Edit #{content_type.display_name} '#{@block.name}'" %>
6
+ <% @toolbar_title = "Edit #{content_type.display_name} '#{@block.name}'".html_safe %>
7
7
  <%= content_for :functions, render(:partial => 'cms/blocks/toolbar') %>
8
8
 
9
9
  <% if @block.respond_to?(:deleted) && @block.deleted %>
@@ -23,7 +23,7 @@
23
23
  elsif i == 0
24
24
  %Q{ colspan='2' class='name first'}
25
25
  end %>
26
- <th<%= attrs %>>
26
+ <th<%= raw attrs %>>
27
27
  <div class="dividers">
28
28
  <% if column[:order] %>
29
29
  <%= link_to column[:label], cms_sortable_column_path(content_type, column[:order])%>
@@ -1,5 +1,5 @@
1
1
  <% page_title "Content Library / View Usages" %>
2
- <% @toolbar_title = "Pages Using #{content_type.display_name} '#{ @block.name }'" %>
2
+ <% @toolbar_title = "Pages Using #{content_type.display_name} '#{ @block.name }'".html_safe %>
3
3
  <%= content_for :html_head do %>
4
4
  <%= stylesheet_link_tag("cms/content_library") %>
5
5
  <%= javascript_tag do %>
@@ -1,4 +1,4 @@
1
- <% @toolbar_title = @page_title = "Add Existing Content to '#{@page.page_title}' Page" %>
1
+ <% @toolbar_title = @page_title = "Add Existing Content to '#{@page.page_title}' Page".html_safe %>
2
2
 
3
3
  <%= content_for :html_head do %>
4
4
  <%= stylesheet_link_tag("cms/content_library") %>
@@ -8,7 +8,7 @@
8
8
  %>
9
9
 
10
10
  <% @content_for_functions = "" %>
11
- <%= content_for :functions, "<h1>#{ page_title }</h1>" %>
11
+ <%= content_for :functions, "<h1>#{ page_title }</h1>".html_safe %>
12
12
 
13
13
  <% @content_for_html_head = "" %>
14
14
  <%= content_for :html_head do %>
@@ -1,5 +1,5 @@
1
1
  <%= f.cms_text_field :name %>
2
- <%= f.cms_file_field :file, :label => "File", :instructions=>"Select a file to upload.", edit_path: true, edit_section: true %>
2
+ <%= f.cms_file_field :file, :instructions=>"Select a file to upload.", edit_path: true, edit_section: true %>
3
3
  <%= f.cms_tag_list %>
4
4
 
5
5
 
@@ -1,3 +1,3 @@
1
1
  <%= f.cms_text_field :name %>
2
- <%= f.cms_file_field :file, :label => "File", :instructions=>"Select a file to upload.", edit_path: true, edit_section: true %>
2
+ <%= f.cms_file_field :file, :label => "Image", :instructions=>"Select a file to upload.", edit_path: true, edit_section: true %>
3
3
  <%= f.cms_tag_list %>
@@ -3,11 +3,11 @@
3
3
  <%= javascript_tag do %>
4
4
  jQuery(function($){
5
5
  $('#login_button').hover(function(){
6
- $('#login_button').css('background-image', 'url(/images/cms/buttons/button_cap_h.png)');
7
- $('#login_button > input').css('background-image', 'url(/images/cms/buttons/button_h.png)');
6
+ $('#login_button').css('background-image', 'url(<%= asset_path "cms/buttons/button_cap_h.png" %>)');
7
+ $('#login_button > input').css('background-image', 'url(<%= asset_path "cms/buttons/button_h.png" %>)');
8
8
  }, function(){
9
- $('#login_button').css('background-image', 'url(/images/cms/buttons/button_cap.png)');
10
- $('#login_button > input').css('background-image', 'url(/images/cms/buttons/button.png)');
9
+ $('#login_button').css('background-image', 'url(<%= asset_path "cms/buttons/button_cap.png" %>)');
10
+ $('#login_button > input').css('background-image', 'url(<%= asset_path "cms/buttons/button.png" %>)');
11
11
  })});
12
12
  <% end %>
13
13
  <% end %>
data/bin/bcms CHANGED
@@ -193,7 +193,7 @@ Cms.table_prefix = "cms_"
193
193
  def configure_mail_server
194
194
  [
195
195
  "# Configure your mail server's address below",
196
- "config.action_mailer.smtp_settings = {:address => 'mail.yourmailserver.com', :domain => config.cms.site_domain}}\n"
196
+ "config.action_mailer.smtp_settings = {:address => 'mail.yourmailserver.com', :domain => config.cms.site_domain}\n"
197
197
  ].reverse.each do |line|
198
198
  environment line, :env => "production"
199
199
  end
@@ -73,7 +73,7 @@ class Browsercms300 < ActiveRecord::Migration
73
73
 
74
74
  create_versioned_table :html_blocks do |t|
75
75
  t.string :name
76
- t.string :content, :limit => 64.kilobytes + 1
76
+ t.text :content, :limit => 64.kilobytes + 1
77
77
  end
78
78
 
79
79
  create_table prefix(:sections) do |t|
@@ -1,3 +1,18 @@
1
+ v3.5.5
2
+ ======
3
+
4
+ Community contributed bug fixes, including making it easier to start contributing to the project.
5
+
6
+ * [#561] Fix invalid code in generated production.rb file (Thanks RoopeHakulinen)
7
+ * [#557] Fix extra column on blocks index page (Thanks metalon)
8
+ * [#543] Allow cms_file_field to use default label (Thanks josiahivey)
9
+ * [#563] Continuous Integration - Get Travis CI up and working for the project.
10
+ * [#539] Fix missing assets on CMS Login page (Thanks korin)
11
+ * [#537] Better support core contributions by removing database.yml from checkin. Run `rake project:setup[mysql]` to create a database.yml for your local database. (Thanks josiahivey)
12
+ * [#564] Update to Rails 3.2.12 - Ensure tests to pass (there appeared to be some changes in inflection and html_safe between 3.2.5 and 3.2.8)
13
+
14
+ See https://github.com/browsermedia/browsercms/issues?milestone=18&page=1&state=closed for more details.
15
+
1
16
  v3.5.4
2
17
  ======
3
18
 
@@ -24,7 +24,7 @@ module Cms
24
24
 
25
25
  # i.e. BcmsWhatever
26
26
  def module_class
27
- current_project.classify
27
+ current_project.camelize
28
28
  end
29
29
 
30
30
  # Runs `bundle install` inside the correct project directory (unless --skip_bundle was passed to the command)
@@ -2,7 +2,7 @@
2
2
  # Allows the precise version of BrowserCMS to be determined programatically.
3
3
  #
4
4
  module Cms
5
- VERSION = "3.5.4"
5
+ VERSION = "3.5.5"
6
6
 
7
7
  # Return the current version of the CMS.
8
8
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browsercms
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.4
4
+ version: 3.5.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-05 00:00:00.000000000 Z
12
+ date: 2013-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -776,7 +776,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
776
776
  version: '0'
777
777
  segments:
778
778
  - 0
779
- hash: 250022716012071557
779
+ hash: -1146009963062196291
780
780
  requirements: []
781
781
  rubyforge_project:
782
782
  rubygems_version: 1.8.24