change truncate function

This commit is contained in:
Mojca Lorber 2017-05-25 11:01:24 +02:00
parent 8540f88b7e
commit c3051421b2
2 changed files with 1 additions and 8 deletions

View file

@ -1,5 +0,0 @@
$(document).ready(function() {
$('.repository-nav-tab').each(function() {
truncateLongString($(this), <%= Constants::NAME_TRUNCATION_LENGTH %>);
});
})

View file

@ -12,7 +12,7 @@
href="#custom_repo_<%= repo.id %>"
data-toggle="tab"
aria-controls="custom_repo_<%= repo.id %>"
title="<%=repo.name%>"><%= repo.name %></a>
title="<%=repo.name%>"><%= truncate(repo.name, length: Constants::NAME_TRUNCATION_LENGTH) %></a>
</li>
<% end %>
</ul>
@ -35,5 +35,3 @@
<p><%=t 'repositories.index.no_teams.text' %></p>
</div>
<% end %>
<%= javascript_include_tag "repositories/index" %>