<% content_for :side_bar do %>
  <%= render :partial => 'layouts/side_bar', :locals => {:link_name => t('site.settings'), :link_url => admin_site_site_info_path(@site), :icon => 'icons-cog', :side_bar_content => 'admin/sites/side_bar'} %>
<% end %>

<% content_for :page_specific_css do %>
  <%= stylesheet_link_tag 'normalize' %>
  <%= stylesheet_link_tag 'bootstrap-responsive' %>
  <%= stylesheet_link_tag 'rulingorbit' %>
  <%= stylesheet_link_tag 'module-store' %>
<% end %>
<% content_for :page_specific_javascript do %>
  <%= javascript_include_tag "jquery.cycle" %>
  <%= javascript_include_tag "rulingorbit" %>
<% end %>


<div class="wrapper">
  <div id="toolbar">
    <div class="fn"><a class="ui btn" href="/admin/module_store">Back to Store</a></div>
  </div>
  <div id="content" class="clearfix">
    <div class="side">
      <div id="item-info">
        <img src="/assets/module/thumb/mt<%= params[:m] %>.jpg" alt="" class="item-thumb">
        <h2 class="item-name"><%= @extension["title"] %></h2>
        <a id="download" href="">free download</a>
        <ul class="item-extra-info">
          <li><span class="title">downloads</span><span class="count"><%= Random.new.rand(10..100) %></span></li>
        </ul>
        <h3>who use it?</h3>
        <ul class="user-list">
          <li>Unversity 1</li>
          <li>Unversity 2</li>
          <li>Unversity 3</li>
          <li>Unversity 4</li>
          <li>Unversity 5</li>
        </ul>
      </div>
    </div>
    <div class="main clearfix">
      <h3>Description</h3>
      <div id="desc-holder" class="paragraph"><%= @extension["description"].html_safe%></div>
      <h3>screen shot</h3>
      <div id="screen-shot">
        <div class="holder">
          <%= image_tag "#{STORE_CONFIG[:store_settings]["url"]}/#{@extension['preview']['preview']['url']}"%>          
        </div>
      </div>
    </div>
  </div>
</div>