client_management/app/views/client_managements/_user_site.html.erb

19 lines
1.0 KiB
Plaintext

<li class="item-servers">
<span class="name-server"><%= user_site.title %></span>
<div class="info-server">
<span class="address-server"><a href="http://<%= user_site.site_domain %>" target="_blank"><i class="fa fa-sitemap" aria-hidden="true"></i><%= user_site.site_domain %></a></span>
<span class="regdate-server"><i class="fa fa-calendar" aria-hidden="true"></i></i><%= user_site.created_at.strftime("%d %B %Y") %></span>
</div>
<% if !user_site.site_confirmed %>
<span class="status-server offline"><%= t("registered_sites.site_inactive") %></span>
<%= t("registered_sites.email_not_confirmed") %>
<% elsif !user_site.access_granted %>
<span class="status-server offline"><%= t("registered_sites.site_inactive") %></span>
<%= t("registered_sites.site_permission_revoked") %>
<% else %>
<span class="status-server online"><%= t("registered_sites.site_active") %></span>
<% end %>
<span class="action-server">
<a href="/cpanel/site/<%= user_site.uid %>" class="btn btn-info">Manage</a>
</span>
</li>