<% @table_fields.each do |f| %> <%= thead(f) %> <% end %> <% @registeredsites.each do |site| %> <% end %>
<%= site.title.nil? ? site.site_domain : site.title %>
<%= site.admin_email %> <% if !site.site_confirmed %> <%= t("registered_sites.site_inactive") %>
<%= t("registered_sites.email_not_confirmed") %> <% elsif !site.access_granted %> <%= t("registered_sites.site_inactive") %>
<%= t("registered_sites.site_permission_revoked") %> <% else %> <%= t("registered_sites.site_active") %>
<% end %>
<%= site.category.nil? ? "Category not assigned." : "#{site.category.title}".html_safe %> <% site.tags.each do |tag| %> <%= tag.name %> <% end %> <% if !site.site_confirmed %> <%=t('resend_email')%> <% elsif !site.access_granted %> <%= "&keywords=#{params[:keywords]}" if params[:keywords] %>" class="btn btn-success" data-remote="true">Grant <% else %> <%= "&keywords=#{params[:keywords]}" if params[:keywords] %>" class="btn btn-warning" data-remote="true">Revoke <% end %> <% if current_user.is_admin? %> <%= "&keywords=#{params[:keywords]}" if params[:keywords] %>" class="btn btn-danger" data-remote="true" data-method="delete" data-confirm="Are you sure?"> <% end %>
<%= content_tag :div, class: "bottomnav clearfix" do content_tag :div, paginate(@registeredsites), class: "pagination pagination-centered" end %>