Last active
August 29, 2015 14:04
-
-
Save aep/cf26c59f8dd2caf4f856 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveAdmin.register Foo | |
show do |b| | |
panel "Bar" do | |
table_for [0] do | |
column :api do | |
e+= (controller.render_to_string :partial => "status", :locals => {:status => | |
VpnConnection.is_ap_connected(b.endpoint, b) ? :up : :down }) | |
e+= b.name | |
e | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment