unclesp1d3r/CipherSwarm

View on GitHub
app/views/attacks/new.html.erb

Summary

Maintainability
Test Coverage
<%= render Railsboot::HeaderComponent.new do |header| %>
  <% header.with_heading do %>
    <%= title "New #{@attack.attack_mode.humanize.titleize} Attack" %>
  <% end %>
  <% header.with_breadcrumb.with_items([
       { text: "Dashboard", href: root_path },
       { text: "Activity", href: campaigns_path },
       { text: @attack.campaign.name, href: @attack.campaign },
       { text: "New", active: true }
     ]) %>
<% end %>

<%= render "form", attack: @attack %>