diff --git a/header.html.erb b/header.html.erb
index cad5b00..909ff77 100644
--- a/header.html.erb
+++ b/header.html.erb
@@ -29,19 +29,23 @@
<% cache_timeout('dialoga_statistics', 1.hour) do %>
- Usuários:
- <%= environment.users.count %> (<%= environment.users.where('users.activated_at IS NOT NULL').count %> ativos)
+ Usuários:
+ <% users = environment.users %>
+ <%= users.count %>
+ (<%= users.where('users.activated_at IS NOT NULL').count %> ativos,
+ <%= users.joins(:oauth_providers).where(:oauth_client_plugin_providers => {:strategy => 'google_oauth2'}).count %> google,
+ <%= users.joins(:oauth_providers).where(:oauth_client_plugin_providers => {:strategy => 'facebook'}).count %> facebook)
- Votos:
+ Votos:
<%= Vote.count %>
- Participações nos hangouts:
+ Participações nos hangouts:
<%= ArticleFollower.count %>
- Propostas:
+ Propostas:
<% proposals = profile.tasks.where(:type => 'ProposalsDiscussionPlugin::ProposalTask') %>
<%= proposals.count %>
(<%= proposals.where(:status => Task::Status::ACTIVE).count %> pendentes,
diff --git a/style.css b/style.css
index 57a9337..621ab1a 100644
--- a/style.css
+++ b/style.css
@@ -256,9 +256,14 @@ div#inlineLoginBox label.formlabel {
right: 0;
color: gray;
font-size: 11px;
- max-width: 300px;
+ max-width: 350px;
+ margin-right: 10px;
}
#dialoga-statistics .updated-at {
font-size: 10px;
color: rgb(182, 182, 182);
}
+#dialoga-statistics .label {
+ font-weight: bold;
+ color: rgb(170, 170, 170);
+}
--
libgit2 0.21.2