Sha256: 1666d7eb022ad813f2052455fdc633a45432f189848dba38f73f1c7f64f11377

Contents?: true

Size: 1.55 KB

Versions: 4

Compression:

Stored size: 1.55 KB

Contents

<% if apps.any? %>
<% 
  block_width = "#{100/per_row}%"
  block_height ||= "120px;"
%> 
    <div class="section_title" style="padding-top:0px;">
      <span style="float:right; font-size:12px; font-weight:normal">
			  <%=render(:partial => "paginator", :locals => {:apps => apps, :element_id => "featured_apps"})%> 
      </span>
      <%=tr(Platform::Config.featured_apps_title)%>
    </div>
    <div class="apps_body" style="">
      <table style="width:100%;">
        <tr>
          <% apps.each_with_index do |app, index| %>
            <td style="width:<%=block_width%>;text-align:left">
                   <div class="section" style="height:<%=block_height%>; padding:5px; margin:3px;">
                      <div style="float:right;padding-left:10px;padding-bottom:1px;">
                         <%= link_to(image_tag(app.logo_url), {:action => :view, :id => app.id}) %>
                      </div> 
                      <div style="font-size:14px;padding-bottom:10px;">
                        <%= link_to(h(app.name), {:action => :view, :id => app.id}) %><br>
                      </div>
                      <div style="font-size:11px;">
                        <%= app.short_description %>
                      </div>
                   </div>
             </td> 
             <% if (index+1) % per_row == 0 %>
               </tr><tr>
             <% end %>
          <% end %>
					<% 0.upto(per_row - (apps.size % per_row) -1).each do  %>
					   <td style="width:<%=block_width%>;">&nbsp;</td>
					<% end %>
        </tr>
      </table>
    </div>  
<% end %> 
					

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
platform-3.1.4 app/views/platform/apps/_featured_apps_module.html.erb
platform-3.1.3 app/views/platform/apps/_featured_apps_module.html.erb
platform-3.1.2 app/views/platform/apps/_featured_apps_module.html.erb
platform-3.1.1 app/views/platform/apps/_featured_apps_module.html.erb