Skip to content

Commit

Permalink
i hate myself for using onclick but, it works
Browse files Browse the repository at this point in the history
  • Loading branch information
cktricky committed Jun 9, 2015
1 parent d7f6522 commit 4076358
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions app/views/layouts/shared/_header.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@
</ul>
<ul class="mini-nav">
<li>
<%= button_to "Visit Tutorial", "https://github.com/OWASP/railsgoat/wiki/tutorials", {:class => "btn", :method => "get"} %>
<%= button_to "Visit Tutorial", nil,
{
:class => "btn",
:method => "get",
:onclick => "window.open('https://github.com/OWASP/railsgoat/wiki/tutorials', '_blank')"
} %>
</li>
</ul>
</header>
Expand All @@ -55,7 +60,12 @@
</ul>
<ul class="mini-nav">
<li>
<%= button_to "Visit Tutorial", "https://github.com/OWASP/railsgoat/wiki/tutorials", {:class => "btn", :method => "get"} %>
<%= button_to "Visit Tutorial", nil,
{
:class => "btn",
:method => "get",
:onclick => "window.open('https://github.com/OWASP/railsgoat/wiki/tutorials', '_blank')"
} %>
</li>
</ul>
</header>
Expand Down

0 comments on commit 4076358

Please sign in to comment.