mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-27 10:08:11 +08:00
Merge pull request #2564 from aignatov-bio/ai-sci-4632-remove-task-inventory-tab
Remove inventory tab from task and routes to inventory page [SCI-4632]
This commit is contained in:
commit
acb1b392fc
4 changed files with 2 additions and 25 deletions
|
@ -30,11 +30,6 @@ module SidebarHelper
|
|||
samples_my_module_url(my_module)
|
||||
elsif action_name.in?(%w(archive module_archive experiment_archive))
|
||||
archive_my_module_url(my_module)
|
||||
elsif action_name == 'repository' && @repository
|
||||
repository_my_module_url(
|
||||
id: my_module.id,
|
||||
repository_id: @repository.id
|
||||
)
|
||||
else
|
||||
protocols_my_module_url(my_module)
|
||||
end
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<% if can_read_experiment?(my_module.experiment) %>
|
||||
<% case link_to_page %>
|
||||
<% when :repositories %>
|
||||
<%= route_to_other_team repository_my_module_path(my_module, repository),
|
||||
<%= route_to_other_team protocols_my_module_path(my_module),
|
||||
my_module.experiment.project.team,
|
||||
text %>
|
||||
<% when :protocols %>
|
||||
|
|
|
@ -117,21 +117,6 @@
|
|||
<% end %>
|
||||
|
||||
<li data-hook="secondary-navigation-tabs"></li>
|
||||
<% if can_read_team?(@my_module.experiment.project.team) &&
|
||||
Repository.accessible_by_teams(current_team).exists? %>
|
||||
<li id="repositories-nav-tab"
|
||||
class="<%= "active" if module_repository_page? %> dropdown repositories-dropdown"
|
||||
data-url="<%= module_repository_page? ? repositories_dropdown_repository_tab_my_module_path(repository: @repository) : repositories_dropdown_my_module_path %>">
|
||||
<a href="#" id="repositoriesDropdownMenuLink" title="<%=t "nav2.modules.repositories" %>" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
<span class="hidden-sm hidden-md"><%=t "nav2.modules.repositories" %></span>
|
||||
<span class="hidden-xs hidden-lg fas fa-list-alt"></span>
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu repositories-dropdown-menu" aria-labelledby="repositoriesDropdownMenuLink">
|
||||
<%= render partial: "repositories_dropdown.html.erb", locals: { enable_counters: false } %>
|
||||
</ul>
|
||||
</li>
|
||||
<% end %>
|
||||
<% if can_read_experiment?(@my_module.experiment) then %>
|
||||
<li id="archive-nav-tab" class="<%= "active" if is_module_archive? %>">
|
||||
<a href="<%= archive_my_module_url(@my_module) %>" title="<%= t'nav2.modules.archive' %>">
|
||||
|
@ -148,7 +133,7 @@
|
|||
<h2 class="nav-name <%= @inline_editable_title_config.present? ? 'editable' : '' %>">
|
||||
<% if @inline_editable_title_config.present? %>
|
||||
<%= render partial: "shared/inline_editing",
|
||||
locals: {
|
||||
locals: {
|
||||
initial_value: title_element.name,
|
||||
config: @inline_editable_title_config
|
||||
} %>
|
||||
|
|
|
@ -435,9 +435,6 @@ Rails.application.routes.draw do
|
|||
get 'results' # Results view for single module
|
||||
# get 'samples' # Samples view for single module
|
||||
# Repository view for single module
|
||||
get 'repository/:repository_id',
|
||||
to: 'my_modules#repository',
|
||||
as: :repository
|
||||
post 'repository_index/:repository_id',
|
||||
to: 'my_modules#repository_index',
|
||||
as: :repository_index
|
||||
|
|
Loading…
Reference in a new issue