Skip to content

Commit

Permalink
Merge branch 'development' of github.com:cykod/Webiva into development
Browse files Browse the repository at this point in the history
  • Loading branch information
cykod committed Jun 7, 2011
2 parents 47463c1 + c458776 commit ff6924d
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions app/controllers/paragraph_feature.rb
Expand Up @@ -1284,6 +1284,11 @@ def define_publication_filter_fields_tags(prefix,arg,publication,options={})
end
end


def define_domain_prefix_tag
define_tag("domain_prefix") { |t| (request.ssl? ? "https://" : "http://") + Configuration.full_domain }
end


def define_content_model_fields_value_tags(prefix,content_model_fields,options = {})
c = self
Expand Down Expand Up @@ -1421,6 +1426,8 @@ def define_results_tags(tag_base,options ={ },&block)

end



# Given the pages hash output of DomainModel#self.paginate
# it will display a list of pages
# TODO: rewrite for customization
Expand Down Expand Up @@ -1493,7 +1500,7 @@ def define_pagelist_tag(tag_name,options = {})

end
end

# Defines the a list of tags that are available in a loop tag
def define_position_tags(prefix=nil)
prefix += ':' if prefix
Expand Down Expand Up @@ -1620,8 +1627,8 @@ def define_header_tag(name)
content = yield(tag) if block_given?
content ||= tag.expand unless tag.single?
html_include(:head_html, content) unless content.blank?
nil
end
nil
end

def define_meta_tag(name, options={})
Expand All @@ -1643,8 +1650,8 @@ def define_meta_tag(name, options={})
opts['content'] = content
html_include(:head_html, tag(:meta, opts))
end
nil
end
nil
end

# get versions of all the define_... methods without the define
Expand Down Expand Up @@ -1850,6 +1857,7 @@ def webiva_feature(feature_name,data={})
if !self.documentation
parser_context = FeatureContext.new(self) do |c|
c.define_position_tags
c.define_domain_prefix_tag
yield c

# Get each of the handler option models
Expand Down

0 comments on commit ff6924d

Please sign in to comment.