-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from refinery/feature/refinery-4
Feature/refinery 4
- Loading branch information
Showing
12 changed files
with
36 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ group :assets do | |
end | ||
|
||
group :development do | ||
gem 'quiet_assets' | ||
gem 'listen' | ||
end | ||
|
||
group :test do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
<% # setup params for various action links | ||
edit_url ||= refinery.edit_admin_setting_path(setting, dialog: true, width: 725, height: 525) | ||
delete_url ||= refinery.admin_setting_path(setting) | ||
delete_options ||= { | ||
class: "cancel confirm-delete", | ||
data: { | ||
confirm: t('message', scope: 'refinery.admin.delete', title: setting.title) | ||
} | ||
} | ||
%> | ||
|
||
<li class='clearfix record <%= cycle("on", "on-hover") %>'> | ||
<span class='title'> | ||
<%= t(setting.name, :scope => 'refinery.admin.settings.form.title', :default => setting.title) %> | ||
<span class="preview">- <%= truncate(setting.value.to_s, :length => 40) %></span> | ||
</span> | ||
<span class='actions'> | ||
<%= link_to refinery_icon_tag('application_edit.png'), | ||
refinery.edit_admin_setting_path(setting, :dialog => true, :width => 725, :height => 525), | ||
:title => t('edit', :scope => 'refinery.admin.settings') %> | ||
<%= link_to refinery_icon_tag('delete.png'), | ||
refinery.admin_setting_path(setting), | ||
:class => 'cancel confirm-delete', | ||
:title => t('delete', :scope => 'refinery.admin.settings'), | ||
:data => { :confirm => t('message', :scope => 'refinery.admin.delete', :title => setting.title) }, | ||
:method => :delete if setting.destroyable %> | ||
|
||
<% unless (help = t(setting.name, :scope => 'refinery.admin.settings.form.help', :default => '')).blank? %> | ||
<%= link_to refinery_icon_tag('information.png'), '#', | ||
:tooltip => help, | ||
:class => 'information suppress' %> | ||
<% end %> | ||
<%= action_icon(:info, '#', t('restricted', scope: 'refinery.admin.settings')) if setting.restricted %> | ||
<%= action_icon(:edit, edit_url, t('edit', scope: 'refinery.admin.settings')) %> | ||
<%= action_icon(:delete, delete_url, t('delete', scope: 'refinery.admin.settings'), delete_options) if setting.destroyable %> | ||
</span> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/usr/bin/env ruby | ||
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application. | ||
# This command will automatically be run when you run "rails" with Rails gems | ||
# installed from the root of your application. | ||
|
||
ENGINE_PATH = File.expand_path('../..', __FILE__) | ||
load File.expand_path('../../spec/dummy/bin/rails', __FILE__) | ||
begin | ||
load File.join(File.expand_path('../../', __FILE__), 'spec/dummy/bin/rails') | ||
rescue LoadError => load_error | ||
warn "No dummy Rails application found! \n" \ | ||
"To create one in spec/dummy, please run: \n\n" \ | ||
" rake refinery:testing:dummy_app" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
db/migrate/20100913234710_create_refinerycms_settings_schema.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
Gem::Specification.new do |s| | ||
s.platform = Gem::Platform::RUBY | ||
s.name = %q{refinerycms-settings} | ||
s.version = %q{3.0.1} | ||
s.version = %q{4.0.0} | ||
s.summary = %q{Settings engine for Refinery CMS} | ||
s.description = %q{Adds programmer creatable, user editable settings.} | ||
s.email = %q{[email protected]} | ||
|
@@ -15,6 +15,6 @@ Gem::Specification.new do |s| | |
s.files = `git ls-files`.split("\n") | ||
s.test_files = `git ls-files -- spec/*`.split("\n") | ||
|
||
s.add_dependency 'refinerycms-core', ['~> 3.0', '>= 3.0.0'] | ||
s.add_dependency 'friendly_id', ['~> 5.0', '>= 5.0.1'] | ||
s.add_dependency 'refinerycms-core', ['~> 4.0', '>= 4.0.0'] | ||
s.add_dependency 'friendly_id', ['>= 5.1.0', '< 5.3'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters