Skip to content

Commit

Permalink
Fixed truncation.
Browse files Browse the repository at this point in the history
  • Loading branch information
nchapman committed Apr 1, 2010
1 parent d16fe67 commit 6b5b84c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/index.html.erb
Expand Up @@ -7,7 +7,7 @@
<% if @top_subdomains_today.size > 0 %>
<ol>
<% @top_subdomains_today.each do |subdomain| %>
<li><%= link_to truncate("#{subdomain.name}.#{subdomain.site_domain}", :length => 40, "&#8230;"), "http://#{subdomain.name}.#{subdomain.site_domain}" %> <span class="quiet">(<%= subdomain.views_today %>)</span></li>
<li><%= link_to truncate("#{subdomain.name}.#{subdomain.site_domain}", :length => 40), "http://#{subdomain.name}.#{subdomain.site_domain}" %> <span class="quiet">(<%= subdomain.views_today %>)</span></li>
<% end %>
</ol>
<% else %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/subdomains/index.html.erb
Expand Up @@ -11,7 +11,7 @@

<% @subdomains.each do |subdomain| %>
<tr>
<td><%= truncate(subdomain.name, :length => 60, "&#8230;") %></td>
<td><%= truncate(subdomain.name, :length => 60) %></td>
<td>?</td>
<td>?</td>
<td><%= link_to 'Show', [:admin, @site, subdomain] %></td>
Expand Down

0 comments on commit 6b5b84c

Please sign in to comment.