From 33dc3168e825307c809f952b90d40f97cec51fc4 Mon Sep 17 00:00:00 2001 From: Manager Bot Date: Fri, 11 Nov 2022 06:37:40 +0000 Subject: [PATCH] Remove old build interface. --- Web/templates/dashboard/_blog_nav.html.ep | 10 -- Web/templates/dashboard/_milestone.html.ep | 15 -- Web/templates/dashboard/blog_builds.html.ep | 171 -------------------- 3 files changed, 196 deletions(-) delete mode 100644 Web/templates/dashboard/_milestone.html.ep delete mode 100644 Web/templates/dashboard/blog_builds.html.ep diff --git a/Web/templates/dashboard/_blog_nav.html.ep b/Web/templates/dashboard/_blog_nav.html.ep index d9dfb17..f2ba6eb 100644 --- a/Web/templates/dashboard/_blog_nav.html.ep +++ b/Web/templates/dashboard/_blog_nav.html.ep @@ -58,16 +58,6 @@ - diff --git a/Web/templates/dashboard/_milestone.html.ep b/Web/templates/dashboard/_milestone.html.ep deleted file mode 100644 index 1def528..0000000 --- a/Web/templates/dashboard/_milestone.html.ep +++ /dev/null @@ -1,15 +0,0 @@ - -
-
-% if ( $milestone->{is_complete} && $milestone->{is_complete} == 1 ) { - - %= include '_svg/checkmark' - -% } else { - %= include '_svg/loading' -% } - <%= $milestone->{text} %> -
-
- - diff --git a/Web/templates/dashboard/blog_builds.html.ep b/Web/templates/dashboard/blog_builds.html.ep deleted file mode 100644 index 5f103c6..0000000 --- a/Web/templates/dashboard/blog_builds.html.ep +++ /dev/null @@ -1,171 +0,0 @@ -% layout 'standard', title => 'Dashboard', sb_active => 'dashboard'; - -% if ( $c->minion->jobs({ states => [ 'inactive', 'active' ], notes => [ '_bid_' . $blog->id ] } )->total >= 1 ) { - % $c->stash->{http_refresh} = 5; -% } - -%= include 'dashboard/_blog_nav', page => 'builds' - -%= include '_base/status_window'; - -%# Job Rejection Panel -% if ( $c->param('reject_job') ) { -
-
- %= include '_svg/failed' - Build Rejected -
-
- % my $sba = $blog->get_build_allowance; -

Rules

-
    -
  • Must wait <%= $sba->{wait_minutes}{required} %> between builds. You have waited <%= $sba->{wait_minutes}{current} %> minutes.
  • -
  • In one hour, <%= $sba->{builds_over_hour}{allowed} %> builds are allowed. You have built <%= $sba->{builds_over_hour}{used} %> times in that time.
  • -
  • In one day, <%= $sba->{builds_over_day}{allowed} %> builds are allowed. You have built <%= $sba->{builds_over_day}{used} %> times in that time.
  • -
-
-
-% } - -% if ( $c->stash->{success} ) { - -% } - -% if ( $c->stash->{errors} ) { - -% } - -%# Job Panel % -% my $index = 0; -% foreach my $build ( @{$blog->get_builds} ) { - % $index++; - % if ( my $build_job = $c->minion->job( $build->{job_id} ) ) { - % my $job = $build_job->info; - - % if ( $job->{state} eq 'finished' ) { -
-
- %= include '_svg/checkmark' - Build job <%= $build->{id} %>/<%= $job->{task} %> completed successfully. (Queued: <%= $build->{date} %>) - -
-
- - %= include 'dashboard/_milestone', milestone => { is_complete => $job->{notes}->{is_deploy_complete}, text => 'Deploy to Webserver' }; - - %= include 'dashboard/_milestone', milestone => { is_complete => $job->{notes}->{is_build_complete}, text => 'Build Website' }; - - %= include 'dashboard/_milestone', milestone => { is_complete => $job->{notes}->{is_clone_complete}, text => 'Clone Repo & Check Settings' }; - -
- - - -
-
-
-                            % for my $line ( @{$job->{notes}{logs}} ) {
-                                <%= "$line\n" =%>
-                            % }
-                        
-
-
-
- % } elsif ( $job->{state} eq 'inactive' ) { -
-
-
- Waiting... -
- Build <%= $build->{id} %> pending build. (Queued: <%= $build->{date} %>) -
-
- - % } elsif ( $job->{state} eq 'failed' ) { -
-
- %= include '_svg/failed' - Build <%= $build->{id} %> failed. (Queued: <%= $build->{date} %>) - -
-
- - %= include 'dashboard/_website/milestone', milestone => { is_complete => $job->{notes}->{is_deploy_complete}, text => 'Deploy to Webserver' }; - - %= include 'dashboard/_website/milestone', milestone => { is_complete => $job->{notes}->{is_build_complete}, text => 'Build Website' }; - - %= include 'dashboard/_website/milestone', milestone => { is_complete => $job->{notes}->{is_clone_complete}, text => 'Clone Repo & Check Settings' }; - -
- - % if ( ! ref $job->{result} ) { -

System Error: <%= $job->{result} %>

- % } else { -

Error: <%= $job->{result}{error} %>

- % } - - - -
-
-
-                            % for my $line ( @{$job->{notes}{logs}} ) {
-                                <%= "$line\n" =%>
-                            % }
-                        
-
-
-
- - % } elsif ( $job->{state} eq 'active' ) { -
-
-
- Building... -
- - Building job <%= $build->{id} %>/<%= $job->{task} %>... (Queued: <%= $build->{date} %>) - -
-
- - %= include 'dashboard/_milestone', milestone => { is_complete => $job->{notes}->{is_deploy_complete}, text => 'Deploy to Webserver' }; - - %= include 'dashboard/_milestone', milestone => { is_complete => $job->{notes}->{is_build_complete}, text => 'Build Website' }; - - %= include 'dashboard/_milestone', milestone => { is_complete => $job->{notes}->{is_clone_complete}, text => 'Clone Repo & Check Settings' }; - -
- -
-
-
-                            % for my $line ( @{$job->{notes}{logs}} ) {
-                                <%= "$line\n" =%>
-                            % }
-                        
-
-
-
- - % } else { - Job in unknown state: <%= $build->{job_id} %> - %= $job->{state} - % } - % } else { - Job not found: <%= $build->{job_id} %> - % } -% }