-// Place all the styles related to the Projects controller here.
+// Place all the styles related to the Groups controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
if l.tail_kind == 'orvos#collection'
c = (@collection_info[l.tail_uuid] ||= {uuid: l.tail_uuid})
if l.link_class == 'group' and l.name == 'member_of'
- c[:projects] ||= {}
- c[:projects][l.tail_uuid] = true
+ c[:groups] ||= {}
+ c[:groups][l.tail_uuid] = true
end
if l.link_class == 'data_origin'
c[:origin] = l
-class ProjectsController < ApplicationController
+class GroupsController < ApplicationController
before_filter :ensure_current_user_is_admin
end
--- /dev/null
+module GroupsHelper
+end
+++ /dev/null
-module ProjectsHelper
-end
end
if stats[:collection_uuid]
Link.where(tail_uuid: stats[:collection_uuid],
- head_kind: Project)[0..0].each do |c2p|
+ head_kind: Group)[0..0].each do |c2p|
stats[:project_uuid] = c2p.head_uuid
- project = Project.find stats[:project_uuid]
- stats[:project_name] = project.name rescue nil
+ group = Group.find stats[:project_uuid]
+ stats[:project_name] = group.name rescue nil
end
Link.where(tail_uuid: stats[:collection_uuid],
head_kind: Specimen)[0..0].each do |c2s|
--- /dev/null
+class Group < OrvosBase
+end
'j58dm' => 'orvos#specimen',
'mxsvm' => 'orvos#pipeline',
'uo14g' => 'orvos#pipeline_invocation',
- 'ldvyl' => 'orvos#project'
+ 'j7d0g' => 'orvos#group',
+ 'ldvyl' => 'orvos#group' # only needed for legacy Project objects
}
end
+++ /dev/null
-class Project < OrvosBase
-end
</th><th>
protected
</th><th>
- projects
+ groups
</th><th>
origin
</th>
</td><td>
<%= ('Y' if c[:wanted_by_me]) or ('y' if c[:wanted]) %>
</td><td>
- <%= c[:projects].size if c[:projects] %>
+ <%= c[:groups].size if c[:groups] %>
</td><td>
<% if c[:origin] %>
<span class="deemphasize"><%= c[:origin].name %></span>
resources :uploaded_datasets
- resources :projects
+ resources :groups
resources :specimens