Revision 2ef88134
Added by Ohad Levy about 13 years ago
- ID 2ef88134ded90e30649bcc5e21a4409763cfdc1b
app/views/home/_topbar.rhtml | ||
---|---|---|
<%= link_to("Sign Out #{User.current.login}", logout_users_path) if SETTINGS[:login] and SETTINGS[:login] == true and User.current %>
|
||
<%= link_to 'Wiki', "http://theforeman.org/wiki/foreman" %>
|
||
<%= link_to 'Support', "http://theforeman.org/projects/foreman/wiki/Support" %>
|
||
<%= link_to 'Wiki', "http://theforeman.org/wiki/foreman", :rel => "external" %>
|
||
<%= link_to 'Support', "http://theforeman.org/projects/foreman/wiki/Support", :rel => "external" %>
|
public/javascripts/application.js | ||
---|---|---|
n = n.next();
|
||
}
|
||
}
|
||
|
||
// allow opening new window for selected links
|
||
$(function() {
|
||
$('a[rel="external"]').click( function() {
|
||
window.open( $(this).attr('href') );
|
||
return false;
|
||
});
|
||
});
|
Also available in: Unified diff
fixes #852 - Open "Support" and "Wiki" Links In New Window