incubator-deltacloud-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1151425 - /incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb
Date Wed, 27 Jul 2011 10:54:27 GMT
Author: marios
Date: Wed Jul 27 10:54:27 2011
New Revision: 1151425

URL: http://svn.apache.org/viewvc?rev=1151425&view=rev
Log:
Fix typo in XML for EC2 create_key (extraneous <pem> tag added)+single
trailing whitespace

Modified:
    incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb

Modified: incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb?rev=1151425&r1=1151424&r2=1151425&view=diff
==============================================================================
--- incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb (original)
+++ incubator/deltacloud/trunk/server/lib/deltacloud/helpers/application_helper.rb Wed Jul
27 10:54:27 2011
@@ -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



Mime
View raw message