Commit 16038590 authored by Eugen Rochko's avatar Eugen Rochko

Display count of users on frontpage

parent 9dc66aca
class HomeController < ApplicationController
def index
@twitter_count = Authorization.where(provider: :twitter).count
@mastodon_count = Authorization.where(provider: :mastodon).count
......@@ -29,7 +29,11 @@
<p><%= link_to "Find friends on Mastodon", friends_path %></p>
<li><%= link_to "Find friends on Mastodon", friends_path %></li>
<% else %>
<p>You are not signed in</p>
<% end %>
<p>So far, <strong><%= @twitter_count %></strong> users signed in with Twitter, and <strong><%= @mastodon_count %></strong> with Mastodon. Are your friends or followers among them?</p>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment