You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@deltacloud.apache.org by lu...@apache.org on 2010/07/09 01:21:15 UTC

svn commit: r962075 - in /incubator/deltacloud/trunk/framework/app: models/image.rb views/images/index.html.erb views/images/show.html.erb

Author: lutter
Date: Thu Jul  8 23:21:14 2010
New Revision: 962075

URL: http://svn.apache.org/viewvc?rev=962075&view=rev
Log:
Add a name to template

Modified:
    incubator/deltacloud/trunk/framework/app/models/image.rb
    incubator/deltacloud/trunk/framework/app/views/images/index.html.erb
    incubator/deltacloud/trunk/framework/app/views/images/show.html.erb

Modified: incubator/deltacloud/trunk/framework/app/models/image.rb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/app/models/image.rb?rev=962075&r1=962074&r2=962075&view=diff
==============================================================================
--- incubator/deltacloud/trunk/framework/app/models/image.rb (original)
+++ incubator/deltacloud/trunk/framework/app/models/image.rb Thu Jul  8 23:21:14 2010
@@ -1,6 +1,7 @@
 
 class Image < BaseModel
 
+  attr_accessor :name
   attr_accessor :owner_id
   attr_accessor :description
   attr_accessor :architecture

Modified: incubator/deltacloud/trunk/framework/app/views/images/index.html.erb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/app/views/images/index.html.erb?rev=962075&r1=962074&r2=962075&view=diff
==============================================================================
--- incubator/deltacloud/trunk/framework/app/views/images/index.html.erb (original)
+++ incubator/deltacloud/trunk/framework/app/views/images/index.html.erb Thu Jul  8 23:21:14 2010
@@ -7,6 +7,9 @@
       ID
     </th>
     <th>
+      Name
+    </th>
+    <th>
       Owner
     </th>
     <th>
@@ -22,6 +25,9 @@
         <%= link_to image.id, image_url( image.id ) %>
       </td>
       <td>
+        <%= image.name %>
+      </td>
+      <td>
         <%= link_to image.owner_id, images_url( :owner_id=>image.owner_id ) %>
       </td>
       <td>

Modified: incubator/deltacloud/trunk/framework/app/views/images/show.html.erb
URL: http://svn.apache.org/viewvc/incubator/deltacloud/trunk/framework/app/views/images/show.html.erb?rev=962075&r1=962074&r2=962075&view=diff
==============================================================================
--- incubator/deltacloud/trunk/framework/app/views/images/show.html.erb (original)
+++ incubator/deltacloud/trunk/framework/app/views/images/show.html.erb Thu Jul  8 23:21:14 2010
@@ -5,6 +5,14 @@
 <dl>
   <di>
     <dt>
+      Name
+    </dt>
+    <dd>
+      <%= @image.name %>
+    </dd>
+  </di>
+  <di>
+    <dt>
       Owner
     </dt>
     <dd>
@@ -28,7 +36,7 @@
     </dd>
   </di>
 </dl>
-  
+
 <div>
   <%= link_to 'launch', new_instance_url( :image_id=>@image.id ) %>
 </div>