refinerycms 0.9.7.5 → 0.9.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile +4 -4
- data/bin/refinery +3 -141
- data/bin/refinery-upgrade-096-to-097 +39 -32
- data/bin/refinerycms +150 -0
- data/changelog.md +25 -12
- data/db/schema.rb +1 -1
- data/features/refinery/site_bar.feature +5 -4
- data/features/step_definitions/refinery/page_steps.rb +6 -2
- data/lib/gemspec.rb +1 -1
- data/lib/refinery/tasks/refinery.rake +24 -18
- data/lib/tasks/rspec.rake +0 -1
- data/public/javascripts/refinery/admin.js +3 -9
- data/public/javascripts/refinery/boot_wym.js +3 -3
- data/public/javascripts/wymeditor/jquery.refinery.wymeditor.js +5 -5
- data/public/javascripts/wymeditor/lang/pt-br.js +44 -43
- data/public/stylesheets/refinery/refinery.css +37 -34
- data/readme.md +3 -6
- data/test/test_helper.rb +1 -1
- data/test/unit/image_test.rb +6 -2
- data/vendor/plugins/authentication/app/controllers/users_controller.rb +4 -5
- data/vendor/plugins/authentication/config/locales/pt-BR.yml +22 -19
- data/vendor/plugins/dashboard/config/locales/pt-BR.yml +2 -1
- data/vendor/plugins/images/app/controllers/admin/images_controller.rb +9 -5
- data/vendor/plugins/images/app/models/image.rb +15 -3
- data/vendor/plugins/images/app/views/admin/images/{_existing_image.erb → _existing_image.html.erb} +2 -2
- data/vendor/plugins/images/app/views/admin/images/index.html.erb +8 -4
- data/vendor/plugins/images/app/views/admin/images/insert.html.erb +28 -9
- data/vendor/plugins/images/config/locales/en.yml +5 -1
- data/vendor/plugins/images/config/locales/es.yml +1 -1
- data/vendor/plugins/images/config/locales/nl.yml +1 -1
- data/vendor/plugins/images/config/locales/pt-BR.yml +6 -2
- data/vendor/plugins/inquiries/app/views/admin/inquiries/index.html.erb +1 -1
- data/vendor/plugins/inquiries/app/views/admin/inquiries/show.html.erb +2 -2
- data/vendor/plugins/inquiries/app/views/admin/inquiries/spam.html.erb +1 -1
- data/vendor/plugins/inquiries/config/locales/en.yml +1 -0
- data/vendor/plugins/inquiries/config/locales/pt-BR.yml +12 -9
- data/vendor/plugins/pages/app/controllers/admin/{page_dialogs_controller.rb → pages_dialogs_controller.rb} +8 -6
- data/vendor/plugins/pages/app/models/page.rb +1 -1
- data/vendor/plugins/pages/app/views/admin/{page_dialogs → pages_dialogs}/_page_link.html.erb +0 -0
- data/vendor/plugins/pages/app/views/admin/{page_dialogs → pages_dialogs}/link_to.html.erb +11 -9
- data/vendor/plugins/pages/config/locales/en.yml +1 -1
- data/vendor/plugins/pages/config/locales/pt-BR.yml +27 -0
- data/vendor/plugins/pages/config/locales/sl.yml +1 -1
- data/vendor/plugins/pages/config/routes.rb +5 -3
- data/vendor/plugins/pages/rails/init.rb +1 -1
- data/vendor/plugins/refinery/app/views/shared/admin/_form_actions.html.erb +19 -12
- data/vendor/plugins/refinery/app/views/shared/admin/_image_picker.html.erb +15 -5
- data/vendor/plugins/refinery/config/locales/pt-BR.yml +2 -0
- data/vendor/plugins/refinery/lib/refinery.rb +1 -1
- data/vendor/plugins/refinery/lib/refinery/admin_base_controller.rb +0 -1
- data/vendor/plugins/refinery/lib/refinery/initializer.rb +2 -2
- data/vendor/plugins/refinery/lib/refinery/link_renderer.rb +6 -2
- data/vendor/plugins/refinery/lib/tasks/refinery.rake +1 -1
- data/vendor/plugins/refinery_dialogs/app/controllers/admin/dialogs_controller.rb +2 -4
- data/vendor/plugins/refinery_settings/app/controllers/admin/refinery_settings_controller.rb +2 -2
- data/vendor/plugins/refinery_settings/config/locales/pt-BR.yml +17 -17
- data/vendor/plugins/resources/app/controllers/admin/resources_controller.rb +4 -0
- data/vendor/plugins/resources/app/models/resource.rb +2 -6
- data/vendor/plugins/resources/app/views/admin/resources/_existing_resource.html.erb +3 -3
- data/vendor/plugins/resources/app/views/admin/resources/_form.html.erb +8 -5
- data/vendor/plugins/resources/app/views/admin/resources/insert.html.erb +33 -10
- data/vendor/plugins/resources/config/locales/da.yml +1 -1
- data/vendor/plugins/resources/config/locales/pt-BR.yml +4 -3
- metadata +15 -12
- data/vendor/plugins/authentication/test/functional/admin/base_controller_test.rb +0 -8
- data/vendor/plugins/authentication/test/functional/admin/dashboard_controller_test.rb +0 -8
- data/vendor/plugins/authentication/test/functional/admin/pages_controller_test.rb +0 -8
- data/vendor/plugins/authentication/test/test_helper.rb +0 -38
data/changelog.md
CHANGED
@@ -1,9 +1,22 @@
|
|
1
|
+
## 0.9.7.6 [15 July 2010]
|
2
|
+
|
3
|
+
- Bugfixes, fixed some failing tests. [Philip Arndt]
|
4
|
+
- More pt-BR translation keys translated [Kivanio Barbosa]
|
5
|
+
- Locked gems using Gemfile.lock [David Jones]
|
6
|
+
- Changed 'refinery' task to 'refinerycms' as that is our gem's name. [Steven Heidel]
|
7
|
+
- Fixed bug where settings were still considered restricted if NULL. [Steven Heidel]
|
8
|
+
- Ensures that bundler is available before creating an application from a gem. [Philip Arndt]
|
9
|
+
- Application generator (from gem) and application upgrade bin task (from 0.9.6) is now Ruby 1.9.2 compatible. [Philip Arndt]
|
10
|
+
- bin/refinery-upgrade-from-096-to-097 will no longer allow you to run it if Gemfile is present and thus signifying an upgraded app. [Philip Arndt]
|
11
|
+
- Cleaned up syntax, changed CSS involving dialogues [Philip Arndt]
|
12
|
+
- [See full list](http://github.com/resolve/refinerycms/compare/0.9.7.5...0.9.7.6)
|
13
|
+
|
1
14
|
## 0.9.7.5 [08 July 2010]
|
2
15
|
|
3
16
|
- Wrote an upgrade task for migrating from 0.9.6.x releases of RefineryCMS. Just run refinery-update-096-to-097 inside your application's directory. [Philip Arndt]
|
4
|
-
- Improved code used to include gem rake tasks and script/generate tasks into the Refinery application to fix issue with these tasks not being found [Philip Arndt]
|
5
|
-
- Fixed a broken migration that would mean pages were missing upon upgrading [Jesper Hvirring Henriksen]
|
6
|
-
- More pt-BR translation keys translated [Kivanio Barbosa]
|
17
|
+
- Improved code used to include gem rake tasks and script/generate tasks into the Refinery application to fix issue with these tasks not being found. [Philip Arndt]
|
18
|
+
- Fixed a broken migration that would mean pages were missing upon upgrading. [Jesper Hvirring Henriksen]
|
19
|
+
- More pt-BR translation keys translated. [Kivanio Barbosa]
|
7
20
|
- [See full list](http://github.com/resolve/refinerycms/compare/0.9.7.4...0.9.7.5)
|
8
21
|
|
9
22
|
## 0.9.7.4 [07 July 2010]
|
@@ -21,12 +34,12 @@
|
|
21
34
|
|
22
35
|
## 0.9.7.2 [06 July 2010]
|
23
36
|
|
24
|
-
- Bugfixes with users and roles [Philip Arndt and Amanda Wagener]
|
37
|
+
- Bugfixes with users and roles. [Philip Arndt and Amanda Wagener]
|
25
38
|
- Fixed the rake translate:lost_in_translation LOCALE=en and rake translate:lost_in_translation_all tasks so that they accurately reflect the missing i18n translation keys. [Philip Arndt]
|
26
39
|
- Refactored routing of i18n to allow different default frontend and backend locales. [Philip Arndt]
|
27
|
-
- Added better grammar support for some i18n [Halan Pinheiro]
|
40
|
+
- Added better grammar support for some i18n. [Halan Pinheiro]
|
28
41
|
- Improved output of rake refinery:update task and removed bin/refinery-update-core task. [Steven Heidel]
|
29
|
-
- Set config.ru to run in production RAILS_ENV by default [Philip Arndt]
|
42
|
+
- Set config.ru to run in production RAILS_ENV by default. [Philip Arndt]
|
30
43
|
- [See full list](http://github.com/resolve/refinerycms/compare/0.9.7.1...0.9.7.2)
|
31
44
|
|
32
45
|
## 0.9.7.1 [03 July 2010]
|
@@ -41,11 +54,11 @@
|
|
41
54
|
## 0.9.7 [02 July 2010]
|
42
55
|
|
43
56
|
- Full backend internationalisation (i18n) support and frontend i18n routing. [Maarten Hoogendoorn and Philip Arndt and many others]
|
44
|
-
- Marketable URLs, such as /contact [Joshua Davey and Joe Sak].
|
57
|
+
- Marketable URLs, such as "/contact". [Joshua Davey and Joe Sak].
|
45
58
|
- Switched to bundler and rack. [Alex Coles and Philip Arndt]
|
46
59
|
- Added options to Refinery Settings :restricted, :scoping, :callback_proc_as_string. [Steven Heidel and Philip Arndt]
|
47
|
-
- Added caching abilities to frontend and to RefinerySetting to drastically speed up the application under certain conditions [Philip Arndt]
|
48
|
-
- Added spam filtering to contact form. [
|
60
|
+
- Added caching abilities to frontend and to RefinerySetting to drastically speed up the application under certain conditions. [Philip Arndt]
|
61
|
+
- Added spam filtering to contact form. [David Jones]
|
49
62
|
- Full Refinery UI redesign. [Resolve Digital]
|
50
63
|
- User Role support. [Amanda Wagener and Philip Arndt]
|
51
64
|
- [See full list](http://github.com/resolve/refinerycms/compare/0.9.6.34...0.9.7)
|
@@ -329,8 +342,8 @@
|
|
329
342
|
|
330
343
|
## 0.9.3 [11 October 2009]
|
331
344
|
|
332
|
-
- Optimise loading of WYM Editors
|
333
|
-
- Supported more plugins' menu matches
|
345
|
+
- Optimise loading of WYM Editors.
|
346
|
+
- Supported more plugins' menu matches.
|
334
347
|
|
335
348
|
## 0.9.2.2 [08 October 2009]
|
336
349
|
|
@@ -354,7 +367,7 @@
|
|
354
367
|
|
355
368
|
## 0.9.1 [04 October 2009]
|
356
369
|
|
357
|
-
- Bugfixes
|
370
|
+
- Bugfixes.
|
358
371
|
- Renamed project from Refinery to refinerycms and released as a gem.
|
359
372
|
|
360
373
|
## 0.9 [29 May 2009]
|
data/db/schema.rb
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#
|
10
10
|
# It's strongly recommended to check this file into your version control system.
|
11
11
|
|
12
|
-
ActiveRecord::Schema.define(:version =>
|
12
|
+
ActiveRecord::Schema.define(:version => 20100708014636) do
|
13
13
|
|
14
14
|
create_table "images", :force => true do |t|
|
15
15
|
t.integer "parent_id"
|
@@ -1,20 +1,21 @@
|
|
1
1
|
Feature: Site Bar
|
2
2
|
In order to allow administrators to easily switch between editing and viewing their website
|
3
|
-
I want logged in refinery users to see a site bar
|
3
|
+
I want logged in refinery users to see a site bar
|
4
4
|
And I want logged in customers to not see a site bar
|
5
5
|
|
6
6
|
Background:
|
7
|
-
Given I
|
7
|
+
Given I have a home page titled "Home"
|
8
|
+
And I am not logged in
|
8
9
|
|
9
10
|
Scenario: Not logged in
|
10
11
|
When I go to the home page
|
11
12
|
Then I should not see "Log out"
|
12
|
-
|
13
|
+
|
13
14
|
Scenario: Logged in as a Refinery user
|
14
15
|
Given I am a logged in user
|
15
16
|
When I go to the home page
|
16
17
|
Then I should see "Log out"
|
17
|
-
|
18
|
+
|
18
19
|
Scenario: Logged in as a customer
|
19
20
|
Given A Refinery user exists
|
20
21
|
And I am a logged in customer
|
@@ -1,6 +1,10 @@
|
|
1
|
-
Given /^I (only )?have a page titled (.+)$/ do |only, title|
|
1
|
+
Given /^I (only )?have a (home )?page titled (.+)$/ do |only, home, title|
|
2
2
|
Page.delete_all if only
|
3
|
-
|
3
|
+
unless home
|
4
|
+
Page.create(:title => title)
|
5
|
+
else
|
6
|
+
Page.create(:title => title, :link_url => '/')
|
7
|
+
end
|
4
8
|
end
|
5
9
|
|
6
10
|
Given /^I (only )?have pages titled (.+)$/ do |only, titles|
|
data/lib/gemspec.rb
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
|
|
18
18
|
s.homepage = %q{http://refinerycms.com}
|
19
19
|
s.authors = %w(Resolve\\ Digital David\\ Jones Philip\\ Arndt)
|
20
20
|
s.require_paths = %w(lib)
|
21
|
-
s.executables = %w(
|
21
|
+
s.executables = %w(#{Dir.glob('bin/*').map{|d| d.gsub('bin/','')}.join(' ')})
|
22
22
|
|
23
23
|
s.files = [
|
24
24
|
'#{files.join("',\n '")}'
|
@@ -17,36 +17,42 @@ namespace :test do
|
|
17
17
|
abort "Errors running #{errors.to_sentence(:locale => :en)}!" if errors.any?
|
18
18
|
end
|
19
19
|
namespace :refinery do
|
20
|
-
Rake::TestTask.new(:units =>
|
21
|
-
t.libs
|
22
|
-
|
20
|
+
Rake::TestTask.new(:units => 'db:test:prepare') do |t|
|
21
|
+
t.libs += [Refinery.root.join('test').to_s,
|
22
|
+
Dir[Rails.root.join('vendor', 'plugins', '**', 'test').to_s]].flatten
|
23
|
+
t.pattern = [Refinery.root.join('test', 'unit', '**', '*_test.rb').to_s,
|
24
|
+
Rails.root.join('vendor', 'plugins', '**', 'test', '**', '*_test.rb').to_s]
|
23
25
|
t.verbose = true
|
24
|
-
ENV[
|
26
|
+
ENV['RAILS_ROOT'] = Rails.root.to_s
|
25
27
|
end
|
26
|
-
Rake::Task['test:refinery:units'].comment =
|
28
|
+
Rake::Task['test:refinery:units'].comment = 'Run the unit tests in Refinery.'
|
27
29
|
|
28
|
-
Rake::TestTask.new(:functionals =>
|
29
|
-
t.libs
|
30
|
-
|
30
|
+
Rake::TestTask.new(:functionals => 'db:test:prepare') do |t|
|
31
|
+
t.libs += [Refinery.root.join('test').to_s,
|
32
|
+
Dir[Rails.root.join('vendor', 'plugins', '**', 'test').to_s]].flatten
|
33
|
+
t.pattern = [Refinery.root.join('test', 'functional', '**', '*_test.rb').to_s,
|
34
|
+
Rails.root.join('vendor', 'plugins', '**', 'functional', '**', '*_test.rb').to_s]
|
31
35
|
t.verbose = true
|
32
|
-
ENV[
|
36
|
+
ENV['RAILS_ROOT'] = Rails.root.to_s
|
33
37
|
end
|
34
|
-
Rake::Task['test:refinery:functionals'].comment =
|
38
|
+
Rake::Task['test:refinery:functionals'].comment = 'Run the functional tests in Refinery.'
|
35
39
|
|
36
|
-
Rake::TestTask.new(:integration =>
|
37
|
-
t.libs
|
38
|
-
|
40
|
+
Rake::TestTask.new(:integration => 'db:test:prepare') do |t|
|
41
|
+
t.libs += [Refinery.root.join('test').to_s,
|
42
|
+
Dir[Rails.root.join('vendor', 'plugins', '**', 'test').to_s]].flatten
|
43
|
+
t.pattern = [Refinery.root.join('test', 'integration', '**', '*_test.rb').to_s,
|
44
|
+
Rails.root.join('vendor', 'plugins', '**', 'integration', '**', '*_test.rb').to_s]
|
39
45
|
t.verbose = true
|
40
|
-
ENV[
|
46
|
+
ENV['RAILS_ROOT'] = Rails.root.to_s
|
41
47
|
end
|
42
|
-
Rake::Task['test:refinery:integration'].comment =
|
48
|
+
Rake::Task['test:refinery:integration'].comment = 'Run the integration tests in Refinery.'
|
43
49
|
|
44
50
|
Rake::TestTask.new(:benchmark => 'db:test:prepare') do |t|
|
45
|
-
t.libs << Refinery.root.join(
|
46
|
-
t.pattern = Refinery.root.join(
|
51
|
+
t.libs << Refinery.root.join('test').to_s
|
52
|
+
t.pattern = Refinery.root.join('test', 'performance', '**', '*_test.rb')
|
47
53
|
t.verbose = true
|
48
54
|
t.options = '-- --benchmark'
|
49
|
-
ENV[
|
55
|
+
ENV['RAILS_ROOT'] = Rails.root.to_s
|
50
56
|
end
|
51
57
|
Rake::Task['test:refinery:benchmark'].comment = 'Benchmark the performance tests in Refinery'
|
52
58
|
end
|
data/lib/tasks/rspec.rake
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
gem 'test-unit', '1.2.3' if RUBY_VERSION.to_f >= 1.9
|
2
1
|
rspec_gem_dir = nil
|
3
2
|
Dir["#{RAILS_ROOT}/vendor/gems/*"].each do |subdir|
|
4
3
|
rspec_gem_dir = subdir if subdir.gsub("#{RAILS_ROOT}/vendor/gems/","") =~ /^(\w+-)?rspec-(\d+)/ && File.exist?("#{subdir}/lib/spec/rake/spectask.rb")
|
@@ -16,6 +16,7 @@ init_interface = function() {
|
|
16
16
|
$('#editor_switch a').appendTo($('<span></span>').prependTo('#editor_switch').corner('6px'));
|
17
17
|
$('#page_container, .wym_box').corner('5px bottom');
|
18
18
|
$('.wym_box').corner('5px tr');
|
19
|
+
$('.field > .wym_box').corner('5px tl');
|
19
20
|
$('.wym_iframe iframe').corner('2px');
|
20
21
|
$('.form-actions:not(".form-actions-dialog")').corner('5px');
|
21
22
|
$('#recent_activity li a, #recent_inquiries li a').each(function(i, a) {
|
@@ -327,7 +328,7 @@ var link_dialog = {
|
|
327
328
|
}
|
328
329
|
|
329
330
|
// Add any alternate resource stores that need a absolute URL in the regex below
|
330
|
-
if(
|
331
|
+
if(resourceUrl.hostname.match(/s3.amazonaws.com/)) {
|
331
332
|
relevant_href = resourceUrl.protocol + '//' + resourceUrl.host + relevant_href;
|
332
333
|
}
|
333
334
|
|
@@ -339,16 +340,9 @@ var link_dialog = {
|
|
339
340
|
});
|
340
341
|
}
|
341
342
|
}
|
342
|
-
|
343
|
-
if(parent && typeof(parent.tb_remove) == "function"){
|
344
|
-
parent.tb_remove();
|
345
|
-
}
|
346
343
|
});
|
347
344
|
|
348
|
-
$('.form-actions-dialog #cancel_button').click
|
349
|
-
e.preventDefault();
|
350
|
-
parent.tb_remove();
|
351
|
-
});
|
345
|
+
$('.form-actions-dialog #cancel_button').trigger('click');
|
352
346
|
},
|
353
347
|
|
354
348
|
init_close: function(){
|
@@ -138,8 +138,8 @@ var wymeditor_boot_options = $.extend({
|
|
138
138
|
|
139
139
|
, dialogPath: "/refinery/dialogs/"
|
140
140
|
, dialogFeatures: {
|
141
|
-
width:
|
142
|
-
, height:
|
141
|
+
width: 866
|
142
|
+
, height: 455
|
143
143
|
, modal: true
|
144
144
|
, draggable: true
|
145
145
|
, resizable: false
|
@@ -149,7 +149,7 @@ var wymeditor_boot_options = $.extend({
|
|
149
149
|
}
|
150
150
|
, dialogInlineFeatures: {
|
151
151
|
width: 600
|
152
|
-
, height:
|
152
|
+
, height: 485
|
153
153
|
, modal: true
|
154
154
|
, draggable: true
|
155
155
|
, resizable: false
|
@@ -1488,7 +1488,7 @@ WYMeditor.editor.prototype.format_block = function(selected) {
|
|
1488
1488
|
|
1489
1489
|
var container = selected || wym.selected() || $(wym._iframe).contents().find('body').get(0);
|
1490
1490
|
var name = container.tagName.toLowerCase();
|
1491
|
-
|
1491
|
+
|
1492
1492
|
//fix forbidden main containers
|
1493
1493
|
if($.inArray(name, ['strong', 'b', 'em', 'i', 'sub', 'sup', 'a']) > -1) {
|
1494
1494
|
name = container.parentNode.tagName.toLowerCase();
|
@@ -4579,7 +4579,7 @@ WYMeditor.WymClassMozilla.prototype.enableDesignMode = function() {
|
|
4579
4579
|
try {
|
4580
4580
|
this._doc.designMode = "on";
|
4581
4581
|
this._doc.execCommand("styleWithCSS", '', false);
|
4582
|
-
}
|
4582
|
+
}
|
4583
4583
|
catch(e) { }
|
4584
4584
|
}
|
4585
4585
|
};
|
@@ -4972,7 +4972,7 @@ WYMeditor.WymClassSafari.prototype.keydown = function(e) {
|
|
4972
4972
|
if(e.ctrlKey){
|
4973
4973
|
//'this' is the doc
|
4974
4974
|
var wym = WYMeditor.INSTANCES[this.title];
|
4975
|
-
|
4975
|
+
|
4976
4976
|
if(e.keyCode == 66) {
|
4977
4977
|
//CTRL+b => STRONG
|
4978
4978
|
wym._exec(WYMeditor.BOLD);
|
@@ -5011,7 +5011,7 @@ WYMeditor.WymClassSafari.prototype.keyup = function(e) {
|
|
5011
5011
|
if(e.keyCode == 13 && e.shiftKey) {
|
5012
5012
|
wym._exec('InsertLineBreak');
|
5013
5013
|
}
|
5014
|
-
else if(($.inArray(e.keyCode, [8, 17, 46, 224]) == -1) && !e.metaKey && !e.ctrlKey)
|
5014
|
+
else if(($.inArray(e.keyCode, [8, 17, 46, 224]) == -1) && !e.metaKey && !e.ctrlKey)
|
5015
5015
|
{
|
5016
5016
|
//NOT BACKSPACE, NOT DELETE, NOT CTRL, NOT COMMAND
|
5017
5017
|
//text nodes replaced by P
|
@@ -5023,7 +5023,7 @@ WYMeditor.WymClassSafari.prototype.keyup = function(e) {
|
|
5023
5023
|
if($.inArray(name, ['strong', 'b', 'em', 'i', 'sub', 'sup', 'a', 'span']) > -1) {
|
5024
5024
|
name = container.parentNode.tagName.toLowerCase();
|
5025
5025
|
}
|
5026
|
-
|
5026
|
+
|
5027
5027
|
if(name == WYMeditor.BODY || name == WYMeditor.DIV) {
|
5028
5028
|
wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); //fix #110 for DIV
|
5029
5029
|
}
|
@@ -1,46 +1,47 @@
|
|
1
1
|
WYMeditor.STRINGS['pt-BR'] = {
|
2
|
-
|
3
|
-
Strong:
|
4
|
-
Emphasis:
|
5
|
-
Superscript:
|
6
|
-
Subscript:
|
7
|
-
Ordered_List:
|
8
|
-
Unordered_List:
|
9
|
-
Indent:
|
10
|
-
Outdent:
|
11
|
-
Undo:
|
12
|
-
Redo:
|
13
|
-
Link:
|
14
|
-
Unlink:
|
15
|
-
Image:
|
16
|
-
Table:
|
17
|
-
HTML:
|
18
|
-
Paragraph:
|
19
|
-
Heading_1:
|
20
|
-
Heading_2:
|
21
|
-
Heading_3:
|
22
|
-
Heading_4:
|
23
|
-
Heading_5:
|
24
|
-
Heading_6:
|
25
|
-
Preformatted:
|
26
|
-
Blockquote:
|
27
|
-
Table_Header:
|
28
|
-
URL:
|
29
|
-
Title:
|
2
|
+
Bold: 'Negrito',
|
3
|
+
Strong: 'Resaltar',
|
4
|
+
Emphasis: 'Itálico',
|
5
|
+
Superscript: 'Sobre escrito',
|
6
|
+
Subscript: 'Sub escrito ',
|
7
|
+
Ordered_List: 'Lista ordenada',
|
8
|
+
Unordered_List: 'Lista desordenada',
|
9
|
+
Indent: 'Indentado',
|
10
|
+
Outdent: 'Desidentar',
|
11
|
+
Undo: 'Desfazer',
|
12
|
+
Redo: 'Refazer',
|
13
|
+
Link: 'Link',
|
14
|
+
Unlink: 'Remover Link',
|
15
|
+
Image: 'Imagem',
|
16
|
+
Table: 'Tabela',
|
17
|
+
HTML: 'HTML',
|
18
|
+
Paragraph: 'Parágrafo',
|
19
|
+
Heading_1: 'Título 1',
|
20
|
+
Heading_2: 'Título 2',
|
21
|
+
Heading_3: 'Título 3',
|
22
|
+
Heading_4: 'Título 4',
|
23
|
+
Heading_5: 'Título 5',
|
24
|
+
Heading_6: 'Título 6',
|
25
|
+
Preformatted: 'Preformatado',
|
26
|
+
Blockquote: 'Citação',
|
27
|
+
Table_Header: 'Título de tabela',
|
28
|
+
URL: 'URL',
|
29
|
+
Title: 'Título',
|
30
30
|
Alternative_Text: 'Texto alternativo',
|
31
|
-
Caption:
|
32
|
-
Summary:
|
33
|
-
Number_Of_Rows:
|
34
|
-
Number_Of_Cols:
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
31
|
+
Caption: 'Legenda',
|
32
|
+
Summary: 'Summary',
|
33
|
+
Number_Of_Rows: 'Número de linhas',
|
34
|
+
Number_Of_Cols: 'Número de colunas',
|
35
|
+
Insert: 'Inserir',
|
36
|
+
Submit: 'Enviar',
|
37
|
+
Cancel: 'Cancelar',
|
38
|
+
Choose: 'Selecionar',
|
39
|
+
Preview: 'Previsualizar',
|
40
|
+
Paste_From_Word: 'Copiar do Word',
|
41
|
+
Tools: 'Ferramentas',
|
42
|
+
Containers: 'Conteneiners',
|
43
|
+
Classes: 'Classes',
|
44
|
+
Status: 'Estado',
|
45
|
+
Source_Code: 'Código fonte',
|
46
|
+
Css_Class: 'Aplicar classe CSS'
|
45
47
|
};
|
46
|
-
|
@@ -117,8 +117,8 @@ hr {
|
|
117
117
|
border: 1px solid red !important;
|
118
118
|
background-color: #FFECF0 !important;
|
119
119
|
}
|
120
|
-
.fieldWithErrors iframe {
|
121
|
-
border:
|
120
|
+
.fieldWithErrors iframe, .fieldWithErrors .wym_box {
|
121
|
+
border-color: red !important;
|
122
122
|
}
|
123
123
|
#message, #flash {
|
124
124
|
padding: 8px 8px 8px 30px;
|
@@ -557,7 +557,7 @@ pre {
|
|
557
557
|
}
|
558
558
|
.pagination {
|
559
559
|
background-color: #C9DAE2;
|
560
|
-
padding:
|
560
|
+
padding: 5px 5px 4px 5px;
|
561
561
|
margin: 10px 0px;
|
562
562
|
}
|
563
563
|
.pagination .disabled {
|
@@ -787,17 +787,19 @@ body.dialog form {
|
|
787
787
|
font-weight: bold;
|
788
788
|
}
|
789
789
|
.dialog #dialog_menu_left {
|
790
|
+
position: fixed;
|
791
|
+
left: 12px;
|
792
|
+
top: 9px;
|
790
793
|
width: 130px;
|
791
|
-
float: left;
|
792
|
-
margin-top: 9px;
|
793
794
|
}
|
794
795
|
.dialog #dialog_main {
|
795
796
|
float: left;
|
797
|
+
margin-left: 130px;
|
796
798
|
min-height: 405px;
|
797
|
-
width:
|
799
|
+
width: 696px;
|
798
800
|
}
|
799
|
-
.wym_dialog_table{
|
800
|
-
height:250px;
|
801
|
+
.wym_dialog_table {
|
802
|
+
height: 250px;
|
801
803
|
}
|
802
804
|
.dialog #existing_image_content {
|
803
805
|
position: relative;
|
@@ -811,7 +813,7 @@ body.dialog form {
|
|
811
813
|
.dialog #existing_image_area_content ul li {
|
812
814
|
list-style: none;
|
813
815
|
padding: 0px;
|
814
|
-
margin: 0px
|
816
|
+
margin: 0px 2px 0px 0px;
|
815
817
|
float: left;
|
816
818
|
height: 114px;
|
817
819
|
max-height: 114px;
|
@@ -828,6 +830,9 @@ body.dialog form {
|
|
828
830
|
.dialog #existing_image_area_content ul li.selected img {
|
829
831
|
border: 4px solid #22A7F2;
|
830
832
|
}
|
833
|
+
.dialog #existing_image_size_area {
|
834
|
+
margin-top: 18px;
|
835
|
+
}
|
831
836
|
.dialog #existing_image_size_area ul {
|
832
837
|
margin: 0px;
|
833
838
|
padding: 10px 0px 0px 0px;
|
@@ -862,24 +867,12 @@ body.dialog form {
|
|
862
867
|
.dialog #existing_image_size_area #image_dialog_size_2 a { height: 70px; width: 70px; line-height: 70px; margin-top:-10px}
|
863
868
|
.dialog #existing_image_size_area #image_dialog_size_3 a { height: 90px; width: 90px; line-height: 90px; margin-top:-20px}
|
864
869
|
|
865
|
-
|
866
|
-
/*
|
867
|
-
#dialog_main {
|
868
|
-
position: relative;
|
869
|
-
}
|
870
|
-
*/
|
871
|
-
#existing_image_area_content {
|
872
|
-
height: 238px;
|
873
|
-
}
|
874
|
-
#existing_image_area .pagination {
|
875
|
-
background: #FFF;
|
876
|
-
/*bottom: 0px;*/
|
877
|
-
/*right: 0px;*/
|
878
|
-
text-align: right;
|
879
|
-
float: right;
|
880
|
-
/*position: absolute;*/
|
870
|
+
#dialog_main .pagination {
|
881
871
|
margin: 0px;
|
882
|
-
|
872
|
+
position: fixed;
|
873
|
+
bottom: 5px;
|
874
|
+
right: 12px;
|
875
|
+
z-index: 1000;
|
883
876
|
}
|
884
877
|
#upload_image_area, #upload_resource_area {
|
885
878
|
padding: 12px;
|
@@ -895,7 +888,7 @@ body.dialog form {
|
|
895
888
|
width: 100%;
|
896
889
|
}
|
897
890
|
#dialog_main #pages_list ul {
|
898
|
-
margin: 12px
|
891
|
+
margin: 0px 12px 0px 12px;
|
899
892
|
padding: 0px;
|
900
893
|
}
|
901
894
|
#dialog_main #pages_list ul li {
|
@@ -1109,6 +1102,12 @@ a#toggle_advanced_options:hover {
|
|
1109
1102
|
margin-top: 10px;
|
1110
1103
|
height: 45px;
|
1111
1104
|
}
|
1105
|
+
.dialog .dialog_area {
|
1106
|
+
margin-bottom: 45px;
|
1107
|
+
}
|
1108
|
+
.dialog .dialog_area > div > .field label:first-child, .dialog .dialog_area > div > label:first-child {
|
1109
|
+
margin-top: 0px;
|
1110
|
+
}
|
1112
1111
|
.wym_dialog .form-actions, #content.form-actions.dialog-form-actions, .ui-dialog .form-actions {
|
1113
1112
|
margin-top: 16px;
|
1114
1113
|
}
|
@@ -1132,7 +1131,7 @@ a#toggle_advanced_options:hover {
|
|
1132
1131
|
position: relative;
|
1133
1132
|
}
|
1134
1133
|
#dialog_container #content .form-actions, .ui-dialog .form-actions, .dialog_container .form-actions {
|
1135
|
-
position:
|
1134
|
+
position: fixed;
|
1136
1135
|
bottom: 0px;
|
1137
1136
|
left: 0px;
|
1138
1137
|
right: 0px;
|
@@ -1153,14 +1152,14 @@ textarea.wymeditor {
|
|
1153
1152
|
padding: 12px;
|
1154
1153
|
}
|
1155
1154
|
ul#image_grid {
|
1156
|
-
width:
|
1155
|
+
width: 100%;
|
1157
1156
|
padding: 0px;
|
1158
1157
|
margin: 10px 0px 15px 0px;
|
1159
1158
|
}
|
1160
1159
|
ul#image_grid li {
|
1161
1160
|
position: relative;
|
1162
1161
|
float: left;
|
1163
|
-
margin: 0px
|
1162
|
+
margin: 0px 7px 12px 0px;
|
1164
1163
|
padding: 0px;
|
1165
1164
|
width: 124px;
|
1166
1165
|
text-align: center;
|
@@ -1169,6 +1168,10 @@ ul#image_grid li {
|
|
1169
1168
|
max-width: 124px;
|
1170
1169
|
max-height: 165px;
|
1171
1170
|
}
|
1171
|
+
ul#image_grid li.image_4 {
|
1172
|
+
margin-left: 1px;
|
1173
|
+
margin-right: 0px;
|
1174
|
+
}
|
1172
1175
|
#records ul#image_grid li .actions {
|
1173
1176
|
top: auto;
|
1174
1177
|
bottom: 0px;
|
@@ -1399,15 +1402,15 @@ input.button.close_dialog:active, a.button.close_dialog:active, #content a.butto
|
|
1399
1402
|
}
|
1400
1403
|
#page_container, .wym_box {
|
1401
1404
|
border-radius-bottom: 5px;
|
1402
|
-
-
|
1403
|
-
-
|
1405
|
+
-moz-border-radius-bottomleft: 5px;
|
1406
|
+
-moz-border-radius-bottomright: 5px;
|
1404
1407
|
-webkit-border-bottom-left-radius: 5px;
|
1405
1408
|
-webkit-border-bottom-right-radius: 5px;
|
1406
1409
|
}
|
1407
1410
|
.wym_iframe iframe {
|
1408
1411
|
border-radius-bottom: 2px;
|
1409
|
-
-
|
1410
|
-
-
|
1412
|
+
-moz-border-radius-bottomleft: 2px;
|
1413
|
+
-moz-border-radius-bottomright: 2px;
|
1411
1414
|
-webkit-border-bottom-left-radius: 2px;
|
1412
1415
|
-webkit-border-bottom-right-radius: 2px;
|
1413
1416
|
}
|