mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
small fix - renaming of ids and hrefs
This commit is contained in:
parent
58ac457d38
commit
8540f88b7e
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
<% @repositories.each.with_index do |repo, i| %>
|
||||
<li role="presentation" class="<%= 'active' if i == 0 %>">
|
||||
<a class="repository-nav-tab"
|
||||
href="#<%= repo.name.downcase %>"
|
||||
href="#custom_repo_<%= repo.id %>"
|
||||
data-toggle="tab"
|
||||
aria-controls="<%= repo.name.downcase %>"
|
||||
aria-controls="custom_repo_<%= repo.id %>"
|
||||
title="<%=repo.name%>"><%= repo.name %></a>
|
||||
</li>
|
||||
<% end %>
|
||||
|
@ -19,7 +19,7 @@
|
|||
<!-- Tab panes -->
|
||||
<div class="tab-content">
|
||||
<% @repositories.each.with_index do |repo, i| %>
|
||||
<div class="tab-pane tab-pane-settings <%= 'active' if i == 0 %>" id="<%= repo.name.downcase %>">
|
||||
<div class="tab-pane tab-pane-settings <%= 'active' if i == 0 %>" id="custom_repo_<%= repo.id %>">
|
||||
<!-- Tab Content -->
|
||||
</div>
|
||||
<% end %>
|
||||
|
@ -36,5 +36,4 @@
|
|||
</div>
|
||||
<% end %>
|
||||
|
||||
<%#= render partial: "repositories/index/create_new_modal.html.erb" %>
|
||||
<%= javascript_include_tag "repositories/index" %>
|
||||
|
|
Loading…
Reference in a new issue