summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/glsa/prepare_release.html.erb')
-rw-r--r--app/views/glsa/prepare_release.html.erb112
1 files changed, 0 insertions, 112 deletions
diff --git a/app/views/glsa/prepare_release.html.erb b/app/views/glsa/prepare_release.html.erb
deleted file mode 100644
index 3a2d5dc..0000000
--- a/app/views/glsa/prepare_release.html.erb
+++ /dev/null
@@ -1,112 +0,0 @@
-<h1>Prepare release</h1>
-
-<div class="box w40em">
- <h2>Advisory information</h2>
-
- <table>
- <% if @glsa.status == 'draft' %>
- <tr>
- <td>Current ID</td>
- <td><strong>GLSA <%= @glsa.glsa_id %></strong></td>
- </tr>
- <tr>
- <td>Final ID</td>
- <td><strong>GLSA <%= Glsa.next_id %> (preliminary)</strong></td>
- </tr>
- <% elsif @glsa.status == 'release' %>
- <tr>
- <td>Release ID</td>
- <td><strong>GLSA <%= @glsa.glsa_id %></strong> (this will be a re-release)</td>
- </tr>
- <% end %>
- <tr>
- <td>Advisory title</td>
- <td><strong><%= @rev.title %></strong></td>
- </tr>
- </table>
-</div>
-
-<div class="box w40em">
- <h2>
- <span class="toolbar">
- <%= check_icon(@rev.bug_ready?) %>
- </span>
- <%= image_tag 'icons/bug.png' %> Bug Status
- </h2>
- <table class="list">
- <%= render :partial => "show_bug_row", :collection => @rev.bugs, :as => :bug %>
- </table>
-
- <% if not @rev.bug_ready? %>
- <div class="error">
- <p>
- <strong>You cannot release this draft unless all bugs are in a bug ready state.</strong><br />
- Visit Bugzilla and check the status of each bug marked with a <%= bugready_icon(false) %>, and set it to <tt>[glsa]</tt> if every arch is done.
- Then, refresh the bug caches.
- </p>
- <div class="actions">
- <%= button_to "Refresh bug caches and retry", { :action => 'update_cache', :id => @glsa.id, :redirect => request.url }, :method => 'get' %>
- </div>
- </div>
- <% end %>
-</div>
-
-<div class="box w40em">
- <h2>
- <span class="toolbar">
- <%= check_icon((@glsa.is_approved? or @comments_override)) %>
- </span>
- <%= image_tag 'icons/comment.png' %> Review Status
- (<%= @glsa.approvals.length %> <%= image_tag 'icons/approval.png' %>, <%= @glsa.rejections.length %> <%= image_tag 'icons/rejection.png' %>)
- </h2>
- <table class="list">
- <%= render :partial => "approval_row", :collection => @glsa.approvals, :as => :comment %>
- <%= render :partial => "approval_row", :collection => @glsa.rejections, :as => :comment %>
- </table>
-
- <% if not (@glsa.is_approved? or @comments_override) %>
- <div class="error">
- <p>
- <strong>You cannot release this draft unless it has at least two approvals.</strong><br />
- Ask other Security members to review your draft. (Team leads can override this check.)
- Then, refresh this page.
- </p>
- <% if current_user.is_el_jefe? %>
- <div class="actions">
- <%= button_to "Override this check (team leads only)", prepare_release_glsa_path(@glsa, :override_approvals => 1) %>
- </div>
- <% end %>
- </div>
- <% elsif @comments_override %>
- <p>
- <strong>Approval override used.</strong>
- </p>
- <% end %>
-</div>
-
-<div class="box w40em">
- <h2>
- <%= image_tag 'icons/sent.png', :alt => 'release' %> Release
- </h2>
- <% if @rev.bug_ready? and (@glsa.is_approved? or @comments_override) %>
- <p>
- All checks passed. You can release this advisory now.
- </p>
- <%= form_tag(release_glsa_path(@glsa)) do %>
- <table>
- <tr>
- <td><%= check_box_tag 'email' %></td>
- <td><label for='email'>Send me the final version via email.</label></td>
- </tr>
- </table>
- <div class='box-actions'>
- <%= submit_tag 'Release >', :class => 'largetext' %>
- </div>
- <% end %>
- <% else %>
- <p>
- At least one check failed. Please see the red boxes above.<br />
- You cannot release this draft at the moment.
- </p>
- <% end %>
-</div> \ No newline at end of file