webs 0.1.19 → 0.1.20

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  require 'rake'
4
4
  require 'echoe'
5
5
 
6
- Echoe.new('webs', '0.1.19') do |p|
6
+ Echoe.new('webs', '0.1.20') do |p|
7
7
  p.description = "Reusable webs stuff."
8
8
  p.url = "https://colczak@github.com/websdev/websgem.git"
9
9
  p.author = "Chuck Olczak"
@@ -86,7 +86,7 @@ module Webs
86
86
 
87
87
  # FILTERS
88
88
  def set_page_title
89
- @title = Webs::app_title
89
+ @title = @page_title = Webs::app_title
90
90
  end
91
91
 
92
92
  def set_webs_permapath pp=nil
@@ -103,7 +103,7 @@ module Webs
103
103
  end
104
104
 
105
105
  def require_webs_admin
106
- render( :text => "You are not authorized.", :status=>403 ) unless webs_admin?
106
+ render( :text => "You are not authorized.", :status=>403 ) unless webs_admin_owner?
107
107
  end
108
108
 
109
109
  def require_sitebuilder
@@ -35,6 +35,14 @@ module Webs
35
35
  [ lvl[:value], names[lvl_key] || lvl[:name] ]
36
36
  end
37
37
  end
38
+
39
+ def webs_page_settings options = {}
40
+ options.keys.each do |k|
41
+ val = options[k]
42
+ val = h(val)
43
+ self.instance_variable_set("@#{k.to_s}".to_sym, val)
44
+ end
45
+ end
38
46
  end
39
47
  end
40
48
  end
@@ -8,8 +8,8 @@
8
8
  <fw:paragraph>
9
9
  <fw:title>
10
10
  <span style="float:left" class="pageTitle">
11
- <% if @title %>
12
- <%= @title %>
11
+ <% if @page_title %>
12
+ <%= @page_title %>
13
13
  <% else %>
14
14
  <%= raw( %(<fw:page-title path='/' />) ) %>
15
15
  <% end %>
@@ -1,4 +1,4 @@
1
- <%= fwml :utility, :title=>@page_title do %>
1
+ <%= fwml :utility, :title=>@title do %>
2
2
  <fw:head>
3
3
  <%= javascript_include_tag 'application' %>
4
4
  <%= stylesheet_link_tag 'styles' %>
data/lib/webs.rb CHANGED
@@ -7,7 +7,7 @@ require dir + 'helper/params'
7
7
  require dir + 'helper/tags'
8
8
 
9
9
  module Webs
10
- VERSION = '0.1.19'.freeze
10
+ VERSION = '0.1.20'.freeze
11
11
 
12
12
  # def self.load_constants
13
13
  # s = File.read("#{Pathname(__FILE__).dirname.expand_path}/config/webs_constants.yml")
data/webs.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{webs}
5
- s.version = "0.1.19"
5
+ s.version = "0.1.20"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chuck Olczak"]
9
- s.date = %q{2011-03-16}
9
+ s.date = %q{2011-03-17}
10
10
  s.description = %q{Reusable webs stuff.}
11
11
  s.email = %q{chuck@webs.com}
12
12
  gemfiles = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 51
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 19
10
- version: 0.1.19
9
+ - 20
10
+ version: 0.1.20
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chuck Olczak
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-16 00:00:00 -04:00
18
+ date: 2011-03-17 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21