You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by to...@apache.org on 2011/06/03 22:03:23 UTC
svn commit: r1131172 - in /libcloud/site/trunk: lib/view.pm
templates/providers.html
Author: tomaz
Date: Fri Jun 3 20:03:23 2011
New Revision: 1131172
URL: http://svn.apache.org/viewvc?rev=1131172&view=rev
Log:
Add providers member to the args hash table.
Modified:
libcloud/site/trunk/lib/view.pm
libcloud/site/trunk/templates/providers.html
Modified: libcloud/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/lib/view.pm?rev=1131172&r1=1131171&r2=1131172&view=diff
==============================================================================
--- libcloud/site/trunk/lib/view.pm (original)
+++ libcloud/site/trunk/lib/view.pm Fri Jun 3 20:03:23 2011
@@ -61,9 +61,9 @@ sub providers {
read_text_file($filepath, \%args);
my %parsed = %{decode_json($args{content})};
- $args{providers} = $parsed;
+ $args{providers} = \%parsed;
- my $rendered = Dotiac::DTL->new($template_path)->render(\%parsed);
+ my $rendered = Dotiac::DTL->new($template_path)->render(\%args);
return ($rendered, 'html', \%args);
}
Modified: libcloud/site/trunk/templates/providers.html
URL: http://svn.apache.org/viewvc/libcloud/site/trunk/templates/providers.html?rev=1131172&r1=1131171&r2=1131172&view=diff
==============================================================================
--- libcloud/site/trunk/templates/providers.html (original)
+++ libcloud/site/trunk/templates/providers.html Fri Jun 3 20:03:23 2011
@@ -15,7 +15,7 @@
<th><a href="driver-features.html#sizes">sizes</a></th>
<th><a href="driver-features.html#deploy">deploy</a></th>
</tr>
-{% for provider in compute %}
+{% for provider in providers.compute %}
<tr>
<th><a href="{{ provider.website }}" title="{{ provider.name }}">{{ provider.name }}</a></th>
<td>{% if provider.features.list %}y{% endif %}</td>
@@ -43,7 +43,7 @@
<th><a href="driver-features.html">streaming object download</a></th>
<th><a href="driver-features.html">delete object</a></th>
</tr>
-{% for provider in storage %}
+{% for provider in providers.storage %}
<tr>
<th><a href="{{ provider.website }}" title="{{ provider.name }}">{{ provider.name }}</a></th>
<td>{% if provider.features.list_containers %}y{% endif %}</td>
@@ -69,7 +69,7 @@
<th><a href="driver-features.html">detach member</a></th>
<th><a href="driver-features.html">attach compute node</a></th>
</tr>
-{% for provider in loadbalancers %}
+{% for provider in providers.loadbalancers %}
<tr>
<th><a href="{{ provider.website }}" title="{{ provider.name }}">{{ provider.name }}</a></th>
<td>{% if provider.features.create %}y{% endif %}</td>