-
Notifications
You must be signed in to change notification settings - Fork 436
/
subprojects.html.haml
30 lines (27 loc) · 1.19 KB
/
subprojects.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
:ruby
@pagetitle = "Subprojects of #{@project}"
.card.mb-3
= render partial: 'tabs', locals: { project: @project }
.card-body
.row
.col-md-12
- if @parentprojects.present?
= render partial: 'projects_table', locals: { table_title: 'Parent Project', project: @project, projects: @parentprojects }
.row{ class: ('mt-3' if @parentprojects.present?) }
.col-md-12
- if @subprojects.present?
= render partial: 'projects_table', locals: { table_title: 'Subproject', project: @project, projects: @subprojects }
- else
%p
%i This project has no subprojects
- if User.current.can_modify?(@project)
= link_to('#', data: { toggle: 'modal', target: '#new-project-modal' }, class: 'nav-link') do
%i.fas.fa-plus-circle.text-primary
Add New Subproject
.row.mt-3
.col-md-12
- if @siblings.present?
= render partial: 'projects_table', locals: { table_title: 'Sibling Project', project: @project, projects: @siblings }
= render partial: 'new_project_modal', locals: { project: @project, configuration: @configuration }
:javascript
initializeDataTable('.projects-table');