Skip to content

Commit 9052b4f

Browse files
committed
Merge pull request #200 from OWASP/visit_tutorial_btn
i hate myself for using onclick but, it works
2 parents d7f6522 + 4076358 commit 9052b4f

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

app/views/layouts/shared/_header.html.erb

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@
3131
</ul>
3232
<ul class="mini-nav">
3333
<li>
34-
<%= button_to "Visit Tutorial", "https://github.com/OWASP/railsgoat/wiki/tutorials", {:class => "btn", :method => "get"} %>
34+
<%= button_to "Visit Tutorial", nil,
35+
{
36+
:class => "btn",
37+
:method => "get",
38+
:onclick => "window.open('https://github.com/OWASP/railsgoat/wiki/tutorials', '_blank')"
39+
} %>
3540
</li>
3641
</ul>
3742
</header>
@@ -55,7 +60,12 @@
5560
</ul>
5661
<ul class="mini-nav">
5762
<li>
58-
<%= button_to "Visit Tutorial", "https://github.com/OWASP/railsgoat/wiki/tutorials", {:class => "btn", :method => "get"} %>
63+
<%= button_to "Visit Tutorial", nil,
64+
{
65+
:class => "btn",
66+
:method => "get",
67+
:onclick => "window.open('https://github.com/OWASP/railsgoat/wiki/tutorials', '_blank')"
68+
} %>
5969
</li>
6070
</ul>
6171
</header>

0 commit comments

Comments
 (0)