diff --git a/app/assets/javascripts/application.js.erb b/app/assets/javascripts/application.js.erb index 240899728..fcea01b3b 100644 --- a/app/assets/javascripts/application.js.erb +++ b/app/assets/javascripts/application.js.erb @@ -60,7 +60,6 @@ function initFormSubmitLinks(el) { } /* Enable loading bars */ -Turbolinks.enableProgressBar(); $(document) .bind("ajaxSend", function(){ animateLoading(); diff --git a/app/views/project_comments/_comment.html.erb b/app/views/project_comments/_comment.html.erb index 54652df72..33a53f28f 100644 --- a/app/views/project_comments/_comment.html.erb +++ b/app/views/project_comments/_comment.html.erb @@ -18,6 +18,7 @@
  • <%= t('comments.options_dropdown.edit') %> diff --git a/app/views/projects/archive.html.erb b/app/views/projects/archive.html.erb index 985808a77..6cac501d4 100644 --- a/app/views/projects/archive.html.erb +++ b/app/views/projects/archive.html.erb @@ -45,7 +45,7 @@
    - <%= link_to t("projects.index.back_to_projects_index"), projects_path %> + <%= link_to t("projects.index.back_to_projects_index"), projects_path, data: { turbolinks: 'false' } %>
    <% end %> diff --git a/app/views/projects/index.html.erb b/app/views/projects/index.html.erb index 58e47d5fa..7ab6584cb 100644 --- a/app/views/projects/index.html.erb +++ b/app/views/projects/index.html.erb @@ -59,7 +59,7 @@
    - + diff --git a/app/views/shared/_secondary_navigation.html.erb b/app/views/shared/_secondary_navigation.html.erb index 36b2006cc..90c300cb2 100644 --- a/app/views/shared/_secondary_navigation.html.erb +++ b/app/views/shared/_secondary_navigation.html.erb @@ -100,7 +100,7 @@
  • <% end %> <% if can_view_project_archive(@project) then %> -
  • "> +
  • ">
  • <% end %> @@ -135,7 +135,7 @@ <% end %> <% if can_view_experiment_archive(@experiment) then %> -
  • "> +
  • ">
  • <% end %> @@ -211,7 +211,7 @@ <% end %> <% if can_view_module_archive(@my_module) then %> -
  • "> +
  • ">
  • diff --git a/app/views/user_projects/_index.html.erb b/app/views/user_projects/_index.html.erb index 2956ce50c..be9a9f2b7 100644 --- a/app/views/user_projects/_index.html.erb +++ b/app/views/user_projects/_index.html.erb @@ -4,7 +4,7 @@ <% if @users.size == 0 then %>
  • <%= t 'projects.index.no_users' %>
  • <% else %> - <% @users.each_index do |i| user = @users[i].user %> + <% @users.each_with_index do |user_proj, i| user = user_proj.user %>
  • <% if i > 0 %>
    <% end %>
    @@ -13,9 +13,9 @@
    <%= user.full_name %> -
    <%= t('user_projects.enums.role.'<<@users[i].role.to_s) %> +
    <%= t('user_projects.enums.role.'<< user_proj.role.to_s) %>
    - +
  • <% end %> <% end %> diff --git a/app/views/user_projects/_index_edit.html.erb b/app/views/user_projects/_index_edit.html.erb index 199a6c410..0794c0545 100644 --- a/app/views/user_projects/_index_edit.html.erb +++ b/app/views/user_projects/_index_edit.html.erb @@ -3,7 +3,7 @@ <% if @users.size == 0 then %>
  • <%= t 'projects.index.modal_manage_users.no_users' %>
  • <% else %> - <% @users.each_index do |i| user = @users[i].user %> + <% @users.each_with_index do |user_proj, i| user = user_proj.user %>
  • <% if i > 0 %>
    <% end %>
    @@ -14,15 +14,15 @@
    <%= user.full_name %> -
    <%= t('user_projects.enums.role.'<<@users[i].role) %> +
    <%= t('user_projects.enums.role.'<< user_proj.role) %>
    <% unless user.id == current_user.id %>
     
    - <%= form_for @up, url: project_user_project_path(@project, @users[i].id, method: :put, format: :json), format: :json, method: 'put', remote: true, html: { class: 'update-user-form' } do |f| %> + <%= form_for @up, url: project_user_project_path(@project, user_proj.id, method: :put, format: :json), format: :json, method: 'put', remote: true, html: { class: 'update-user-form' } do |f| %> <% # TODO replace with form helper %> - + <% # TODO replace hardcoded select html with rails helper %>