orbit-4-2/app/views/admin/sites/_registration.html.erb

13 lines
361 B
Plaintext
Raw Permalink Normal View History

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