Skip to content

Instantly share code, notes, and snippets.

@andrellima
Created April 4, 2011 02:15
Show Gist options
  • Save andrellima/901049 to your computer and use it in GitHub Desktop.
Save andrellima/901049 to your computer and use it in GitHub Desktop.
<html>
<head>
<%= javascript_include_tag "rotator", "jquery-rails", "jquery" %>
<%= stylesheet_link_tag "rotator", "s1", "s2" %>
</head>
<body>
<div class="main_page">
<% if @gallery_photos.first.geometry == 'vertical' %>
<a href= "<%= @gallery_photos.first.photo.url("large") %>" > <img src="<%= @gallery_photos.first.photo.url("large") %>" style="height:420px;" />
<% else %>
<img src="<%= @gallery_photos.first.photo.url("large") %>" style="width:500px;" />
<% end %>
<div class="desc">
<a href="#" class="collapse">Close Me!</a>
<div class="block">
<a href="http://twitter.com/share" class="twitter-share-button" data-text="Foto de divulgação." data-count="none" data-via="andre_llima_">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<small>Date</small>
<p>Copy</p>
</div>
</div>
</div>
<div class="image_thumb">
<ul>
<li>
<% @gallery_photos.each do |g| %>
<% if g.geometry == 'vertical' %>
<a href = "0" id = "thumb" > <img src = "<%= g.photo.url("small") %>" style="height:65px;"/></a>
<% else %>
<img src="<%= g.photo.url("small") %>" style="height:65px; width:80px;"/></li></a>
<% end %>
<% end %>
<div class="block">
<h2>Title</h2>
<small>Date</small>
<p>Copy</p>
</div>
</li>
</ul>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment