On Jul 26, 2011, at 1:45 PM, [email protected] wrote:

ACK. Good catch!

  -- Michal

> From: marios <[email protected]>
> 
> 
> Signed-off-by: marios <[email protected]>
> ---
> .../lib/deltacloud/helpers/application_helper.rb   |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/server/lib/deltacloud/helpers/application_helper.rb 
> b/server/lib/deltacloud/helpers/application_helper.rb
> index ebfcf35..527aac4 100644
> --- a/server/lib/deltacloud/helpers/application_helper.rb
> +++ b/server/lib/deltacloud/helpers/application_helper.rb
> @@ -147,7 +147,7 @@ module ApplicationHelper
>   end
> 
>   def render_cdata(text)
> -    "<pem><![CDATA[#{text.strip}]]></pem>"
> +    "<![CDATA[#{text.strip}]]>"
>   end
> 
>   def link_to_action(action, url, method)
> @@ -176,7 +176,7 @@ module ApplicationHelper
>   def link_to_documentation
>     return '' unless request.env['REQUEST_URI']
>     uri = request.env['REQUEST_URI'].dup
> -    uri.gsub!(Sinatra::UrlForHelper::DEFAULT_URI_PREFIX, 
> +    uri.gsub!(Sinatra::UrlForHelper::DEFAULT_URI_PREFIX,
>               api_url_for(:docs)) unless uri.include?("docs") #i.e. if 
> already serving under /api/docs, leave it be
>     '<a href="%s">[ Documentation ]</a>' % uri
>   end
> -- 
> 1.7.3.4
> 

------------------------------------------------------
Michal Fojtik, [email protected]
Deltacloud API: http://deltacloud.org

Reply via email to