Commit 55dc0159
Changed files (2)
app
views
creations
home
app/views/creations/_form.html.erb
@@ -9,7 +9,7 @@
<div class="control-group">
<%= f.label :caption, "Image Watermark", :class => "control-label" %>
<div class="controls">
- <%= f.text_field :caption, :class => "input-xlarge" %>
+ <%= f.text_field :caption, :class => "input-xlarge", :maxlength=> 20 %>
</div>
</div>
<div class="control-group">
app/views/home/index.html.erb
@@ -79,7 +79,7 @@
<% @creations.each do |creation| %>
<li class="span3">
<div class="thumbnail">
- <a href="<%= creation.image.large.url %>" class="gallery"><img src="<%= creation.image.thumb.url %>" alt="<%= creation.name %>" style="width:260px;height:180px;" /></a>
+ <a href="<%= creation.image.large.url %>" class="gallery" title="<%= creation.name %>"><img src="<%= creation.image.thumb.url %>" alt="<%= creation.name %>" style="width:260px;height:180px;" /></a>
<div class="caption">
<h5><a href="<%= url_for creation %>"><%= short_name(creation, 20) %></a></h5>
<h6><a href="<%= url_for profile_path(creation.user) %>"><%= shrink(creation.user.name, 20) %></a></h6>