orbit-basic/app/views/admin/sites/index.html.erb

7 lines
261 B
Plaintext

<% if @site && @site.registered? %>
registered
<% else %>
<%= link_to 'register', "http://#{APP_CONFIG['store_ip']}/user/sites/register?" +
{:site => {:school => @site.school, :department => @site.department}}.to_query,
:target => '_blank' %>
<% end %>