Skip to content

Commit

Permalink
Merge pull request #200 from OWASP/visit_tutorial_btn
Browse files Browse the repository at this point in the history
i hate myself for using onclick but, it works
  • Loading branch information
cktricky committed Jun 9, 2015
2 parents d7f6522 + 4076358 commit 9052b4f
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 9052b4f

Please sign in to comment.