Sha256: e70a5ddbd77460f2cc04e3f17f82794d099003ce8f32b65c7577dd3b2b1af8f8
Contents?: true
Size: 1.99 KB
Versions: 23
Compression:
Stored size: 1.99 KB
Contents
<% @page.title = "Agents" @agents = CabooseRets::Agent.where("(lo_code = ? or lo_code = ?) and hide = false", '46', 'SPACES').reorder("last_name, first_name").all %> <style> .assistant_name { font-size: 0.9em; margin-left: 10px; } </style> <div class="l-wrapper"> <div class="l-sidebar-border inflate-tenor-baritone h-space-pvm"> <div class="sidebar-body"> <h3>Meet Our Agents</h3> <ul class="agent_thumbs"> <% a = CabooseRets::Agent.where(:la_code => '048540000').first %> <% if a %> <li><a href="/agents/<%= a.la_code %>"> <img src='<%= a.image_url(:thumb) %>' /> <span><%= a.first_name %> <%= a.last_name %><% if a.designation %>, <%= a.designation %><% end %></span> </a></li> <% end %> <% @agents.each do |a| %> <% next if !a.assistant_to.nil? && a.assistant_to.length > 0 %> <% next if a.la_code == '048540000' %> <li><a href="/agents/<%= a.la_code %>"> <img src='<%= a.image_url(:thumb) %>' /> <span><%= a.first_name %> <%= a.last_name %><% if a.designation %>, <%= a.designation %><% end %></span> </a></li> <% end %> </ul> <br style="clear: left;" /> </div> <!-- .sidebar-body --> </div> </div> <!-- .l-wrapper --> <%= content_for :css do %> <style type='text/css'> ul.agent_thumbs { margin: 0; padding: 0; list-style: none; } ul.agent_thumbs li { margin: 1px; padding: 0px; list-style: none; float: left; } ul.agent_thumbs li a { display: block; margin: 0; padding: 8px; width: 140px; height: 240px; background: #fff; line-height: 1em; text-align: center; border: transparent 1px solid; overflow: hidden; } ul.agent_thumbs li a:hover { background: #efefef; border: #ccc 1px solid; } ul.agent_thumbs li img { display: block; margin: 0 auto 4px auto; border: transparent 1px solid; min-height: 150px; } ul.agent_thumbs li a:hover img { border: #ccc 1px solid; } </style> <% end %> <%= content_for :js do %> <script type="text/javascript"> </script> <% end %>
Version data entries
23 entries across 23 versions & 1 rubygems