diff --git a/app/assets/javascripts/repositories/index.js.erb b/app/assets/javascripts/repositories/index.js.erb deleted file mode 100644 index 75e187c29..000000000 --- a/app/assets/javascripts/repositories/index.js.erb +++ /dev/null @@ -1,5 +0,0 @@ -$(document).ready(function() { - $('.repository-nav-tab').each(function() { - truncateLongString($(this), <%= Constants::NAME_TRUNCATION_LENGTH %>); - }); -}) \ No newline at end of file diff --git a/app/views/repositories/index.html.erb b/app/views/repositories/index.html.erb index b1de8209f..779b9a8f6 100644 --- a/app/views/repositories/index.html.erb +++ b/app/views/repositories/index.html.erb @@ -12,7 +12,7 @@ href="#custom_repo_<%= repo.id %>" data-toggle="tab" aria-controls="custom_repo_<%= repo.id %>" - title="<%=repo.name%>"><%= repo.name %> + title="<%=repo.name%>"><%= truncate(repo.name, length: Constants::NAME_TRUNCATION_LENGTH) %> <% end %> @@ -35,5 +35,3 @@
<%=t 'repositories.index.no_teams.text' %>
<% end %> - -<%= javascript_include_tag "repositories/index" %>