radiant-locked_page_parts-extension 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,9 +3,9 @@
3
3
  position:relative;
4
4
  }
5
5
  .part .lock_page_part{
6
- position:absolute;
7
- right:0;
8
- top:0;
6
+ float: right;
7
+ font-size: 85%;
8
+ margin-left: 1em;
9
9
  }
10
10
 
11
11
  #content #tabs span.tab.disabled {
@@ -0,0 +1,8 @@
1
+ module RadiantLockedPagePartsExtension
2
+ VERSION = "0.1.10"
3
+ SUMMARY = %q{Allows you to hide certain page parts from normal users}
4
+ DESCRIPTION = %q{Adds a checkbox for every page part that allows admins to 'lock' them}
5
+ URL = "https://github.com/jomz/radiant_locked_page_parts"
6
+ AUTHORS = ["Benny Degezelle", "Jan De Poorter"]
7
+ EMAIL = ["hi@monkeypatch.be"]
8
+ end
@@ -1,15 +1,13 @@
1
+ require 'radiant-locked_page_parts-extension'
2
+
1
3
  class LockedPagePartsExtension < Radiant::Extension
2
- version "0.1.9"
3
- description "Allows you to hide certain page parts from normal users"
4
- url "https://github.com/jomz/radiant_locked_page_parts"
4
+ version RadiantLockedPagePartsExtension::VERSION
5
+ description RadiantLockedPagePartsExtension::DESCRIPTION
6
+ url RadiantLockedPagePartsExtension::URL
5
7
 
6
8
  def activate
7
9
  admin.page.edit.add :part_controls, 'lock_page_part'
8
10
  admin.page.edit.add :main, 'locked_page_style'
9
11
  end
10
12
 
11
- def deactivate
12
- # admin.tabs.remove "Locked Page Parts"
13
- end
14
-
15
13
  end
@@ -0,0 +1,24 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "radiant-locked_page_parts-extension"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "radiant-locked_page_parts-extension"
7
+ s.version = RadiantLockedPagePartsExtension::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = RadiantLockedPagePartsExtension::AUTHORS
10
+ s.email = RadiantLockedPagePartsExtension::EMAIL
11
+ s.homepage = RadiantLockedPagePartsExtension::URL
12
+ s.summary = RadiantLockedPagePartsExtension::SUMMARY
13
+ s.description = RadiantLockedPagePartsExtension::DESCRIPTION
14
+
15
+ ignores = if File.exist?('.gitignore')
16
+ File.read('.gitignore').split("\n").inject([]) {|a,p| a + Dir[p] }
17
+ else
18
+ []
19
+ end
20
+ s.files = Dir['**/*'] - ignores
21
+ s.test_files = Dir['test/**/*','spec/**/*','features/**/*'] - ignores
22
+ # s.executables = Dir['bin/*'] - ignores
23
+ s.require_paths = ["lib"]
24
+ end
metadata CHANGED
@@ -1,60 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: radiant-locked_page_parts-extension
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
5
- prerelease: false
4
+ hash: 15
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 9
10
- version: 0.1.9
9
+ - 10
10
+ version: 0.1.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Benny Degezelle
14
+ - Jan De Poorter
14
15
  autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2011-06-19 00:00:00 +02:00
19
+ date: 2012-02-09 00:00:00 +01:00
19
20
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- name: radiant
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 57
30
- segments:
31
- - 0
32
- - 9
33
- - 1
34
- version: 0.9.1
35
- type: :runtime
36
- version_requirements: *id001
37
- description: Allows you to hide certain page parts from normal users
38
- email: benny@gorilla-webdesign.be
21
+ dependencies: []
22
+
23
+ description: Adds a checkbox for every page part that allows admins to 'lock' them
24
+ email:
25
+ - hi@monkeypatch.be
39
26
  executables: []
40
27
 
41
28
  extensions: []
42
29
 
43
- extra_rdoc_files:
44
- - README
30
+ extra_rdoc_files: []
31
+
45
32
  files:
46
- - README
47
- - Rakefile
48
- - VERSION
49
33
  - app/views/admin/page_parts/_lock_page_part.html.haml
50
34
  - app/views/admin/pages/_lock_page_part.haml
51
35
  - app/views/admin/pages/_locked_page_style.erb
52
36
  - config/locales/en.yml
53
37
  - config/locales/nl.yml
54
38
  - db/migrate/20091210124548_add_locked_to_page_parts.rb
39
+ - lib/radiant-locked_page_parts-extension.rb
55
40
  - lib/tasks/locked_page_parts_extension_tasks.rake
56
41
  - locked_page_parts_extension.rb
57
- - pkg/radiant-locked_page_parts-extension-0.1.1.gem
42
+ - radiant-locked_page_parts-extension.gemspec
43
+ - Rakefile
44
+ - README
45
+ - VERSION
58
46
  has_rdoc: true
59
47
  homepage: https://github.com/jomz/radiant_locked_page_parts
60
48
  licenses: []
@@ -85,9 +73,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
73
  requirements: []
86
74
 
87
75
  rubyforge_project:
88
- rubygems_version: 1.3.7
76
+ rubygems_version: 1.4.2
89
77
  signing_key:
90
78
  specification_version: 3
91
- summary: Locked Page Parts extension for Radiant CMS
79
+ summary: Allows you to hide certain page parts from normal users
92
80
  test_files: []
93
81