2016-04-07 10:28:31 -04:00
|
|
|
<% if crawler_layout? %>
|
|
|
|
|
2016-03-07 15:28:02 -05:00
|
|
|
<% content_for :title do %><%=t "about" %><% end %>
|
|
|
|
|
|
|
|
<section itemscope itemtype="https://schema.org/AboutPage">
|
|
|
|
<h1 itemprop="name">
|
|
|
|
<%=t "js.about.title", {title: @about.title} %>
|
|
|
|
</h1>
|
|
|
|
|
|
|
|
<div itemprop="text">
|
|
|
|
<%= @about.description %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h2><%=t "js.about.our_admins" %></h2>
|
|
|
|
|
|
|
|
<div class='admins-list' itemscope itemtype='http://schema.org/ItemList'>
|
|
|
|
<% @about.admins.each do |user| %>
|
|
|
|
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
|
|
|
<meta itemprop='url' content='<%= user_path(user) %>'>
|
|
|
|
<a href='<%= user_path(user) %>' itemprop='item'>
|
|
|
|
<span itemprop='image'>
|
|
|
|
<img width="45" height="45" class="avatar" src="<%= user.small_avatar_url %>">
|
|
|
|
</span>
|
|
|
|
<span itemprop='name'>
|
|
|
|
<%= user.username %>
|
|
|
|
<% if user.name.present? %>
|
|
|
|
- <%= user.name %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<% if @about.moderators.count > 0 %>
|
|
|
|
<h2><%=t "js.about.our_moderators" %></h2>
|
|
|
|
<div class='moderators-list' itemscope itemtype='http://schema.org/ItemList'>
|
|
|
|
<% @about.moderators.each do |user| %>
|
|
|
|
<div itemprop='itemListElement' itemscope itemtype='http://schema.org/ListItem'>
|
|
|
|
<meta itemprop='url' content='<%= user_path(user) %>'>
|
|
|
|
<a href='<%= user_path(user) %>' itemprop='item'>
|
|
|
|
<span itemprop='image'>
|
|
|
|
<img width="45" height="45" class="avatar" src="<%= user.small_avatar_url %>">
|
|
|
|
</span>
|
|
|
|
<span itemprop='name'>
|
|
|
|
<%= user.username %>
|
|
|
|
<% if user.name.present? %>
|
|
|
|
- <%= user.name %>
|
|
|
|
<% end %>
|
|
|
|
</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2016-04-07 10:28:31 -04:00
|
|
|
<%- stats = About.fetch_cached_stats %>
|
|
|
|
|
2016-03-07 15:28:02 -05:00
|
|
|
<section class='about stats'>
|
|
|
|
<h2><%=t 'js.about.stats' %></h2>
|
|
|
|
|
|
|
|
<table class='table'>
|
|
|
|
<tr>
|
|
|
|
<th> </th>
|
|
|
|
<th><%=t 'js.about.stat.all_time' %></th>
|
|
|
|
<th><%=t 'js.about.stat.last_7_days' %></th>
|
|
|
|
<th><%=t 'js.about.stat.last_30_days' %></th>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class='title'><%=t 'js.about.topic_count' %></td>
|
2016-04-07 10:28:31 -04:00
|
|
|
<td><%= stats["topic_count"] %></td>
|
|
|
|
<td><%= stats["topics_7_days"] %></td>
|
|
|
|
<td><%= stats["topics_30_days"] %></td>
|
2016-03-07 15:28:02 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%=t 'js.about.post_count' %></td>
|
2016-04-07 10:28:31 -04:00
|
|
|
<td><%= stats["post_count"] %></td>
|
|
|
|
<td><%= stats["posts_7_days"] %></td>
|
|
|
|
<td><%= stats["posts_30_days"] %></td>
|
2016-03-07 15:28:02 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%=t 'js.about.user_count' %></td>
|
2016-04-07 10:28:31 -04:00
|
|
|
<td><%= stats["user_count"] %></td>
|
|
|
|
<td><%= stats["users_7_days"] %></td>
|
|
|
|
<td><%= stats["users_30_days"] %></td>
|
2016-03-07 15:28:02 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%=t 'js.about.active_user_count' %></td>
|
|
|
|
<td>—</td>
|
2016-04-07 10:28:31 -04:00
|
|
|
<td><%= stats["active_users_7_days"] %></td>
|
|
|
|
<td><%= stats["active_users_30_days"] %></td>
|
2016-03-07 15:28:02 -05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td><%=t 'js.about.like_count' %></td>
|
2016-04-07 10:28:31 -04:00
|
|
|
<td><%= stats["like_count"] %></td>
|
|
|
|
<td><%= stats["likes_7_days"] %></td>
|
|
|
|
<td><%= stats["likes_30_days"] %></td>
|
2016-03-07 15:28:02 -05:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<br/>
|
2016-04-07 10:28:31 -04:00
|
|
|
<br/>
|
|
|
|
|
|
|
|
<% end %>
|