Skip to content

Instantly share code, notes, and snippets.

@domcleal
Created September 4, 2013 15:25
Show Gist options
  • Select an option

  • Save domcleal/6438576 to your computer and use it in GitHub Desktop.

Select an option

Save domcleal/6438576 to your computer and use it in GitHub Desktop.
Deface::Override.new(:virtual_path => "dashboard/_status_table",
:name => "add_dashboard_table",
:insert_after => "ul:last",
:text => "
<h4 class='header'><%= _('Host Pool') %></h4>
<ul>
<li>
<%= link_to(_('Unassigned hosts'), discovers_path, :class=>'dashboard-links' ) %>
<h4><%= Host::Discovered.count %></h4>
</li>
</ul>" )
# strings used above, for the purposes of extraction only, as they're not
# detected within the full override template string above
N_('Host Pool')
N_('Unassigned hosts')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment