Skip to content

Commit

Permalink
Add the managers group to infos of StagingWorkflow
Browse files Browse the repository at this point in the history
Now in the show action for a StagingWorkflow we show the name and link
of the group of managers
  • Loading branch information
Moises Deniz Aleman committed Nov 19, 2018
1 parent 302771b commit b984408
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def show
@ignored_requests = @staging_workflow.ignored_requests.first(5)
@more_ignored_requests = @staging_workflow.ignored_requests.count - @ignored_requests.size
@empty_projects = @staging_workflow.staging_projects.without_staged_requests
@managers = @staging_workflow.managers_group
end

def edit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
%h5.card-header Infos
.card-body
%dl
%dt Managers:
%dd
%ul.pl-2.list-unstyled
%li= link_to managers.title, group_show_path(managers)

%dt Empty projects:
%dd= render 'empty_projects_list', projects: empty_projects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
unassigned_requests: @unassigned_requests, more_unassigned_requests: @more_unassigned_requests,
ready_requests: @ready_requests, more_ready_requests: @more_ready_requests,
ignored_requests: @ignored_requests, more_ignored_requests: @more_ignored_requests,
project: @project }
project: @project, managers: @managers }

- content_for :ready_function do
$('#staging-projects-datatable').DataTable({ responsive: true });

0 comments on commit b984408

Please sign in to comment.