From 8540f88b7e48e75aedbcf999f21e0e90ed6007db Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Thu, 25 May 2017 10:06:48 +0200 Subject: [PATCH] small fix - renaming of ids and hrefs --- app/controllers/repositories_controller.rb | 3 +-- app/views/repositories/index.html.erb | 7 +++---- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index bf7269fc9..a37fb06dd 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -10,9 +10,8 @@ class RepositoriesController < ApplicationController def load_vars @team = Team.find_by_id(params[:team_id]) - @repositories = @team.repositories.order(created_at: :asc) - render_404 unless @team + @repositories = @team.repositories.order(created_at: :asc) end def check_view_all_permissions diff --git a/app/views/repositories/index.html.erb b/app/views/repositories/index.html.erb index 8fc20e603..b1de8209f 100644 --- a/app/views/repositories/index.html.erb +++ b/app/views/repositories/index.html.erb @@ -9,9 +9,9 @@ <% @repositories.each.with_index do |repo, i| %> <% end %> @@ -19,7 +19,7 @@
<% @repositories.each.with_index do |repo, i| %> -
+
<% end %> @@ -36,5 +36,4 @@
<% end %> -<%#= render partial: "repositories/index/create_new_modal.html.erb" %> <%= javascript_include_tag "repositories/index" %>