Project

General

Profile

« Previous | Next » 

Revision bb25ebe6

Added by Tomer Brisker about 8 years ago

Fixes #12979 - Create helper for "new" button

Previously the button classes were applied to new buttons using jQuery.
This commit creates a `new_link` helper that makes sure all new buttons
will receive the correct class and only display if authorized. Also a
little bit of cleanup.

View differences:

app/views/hostgroups/index.html.erb
<% title _("Host Groups") %>
<% title_actions display_link_if_authorized(_("New Host Group"), hash_for_new_hostgroup_path), help_path %>
<% title_actions new_link(_("New Host Group")), help_path %>
<table class="table table-bordered table-striped">
<thead>

Also available in: Unified diff