mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
browse: switch to eye for views/hits stats
This commit is contained in:
parent
43e6098b19
commit
56bd469bcd
1 changed files with 6 additions and 7 deletions
|
@ -98,26 +98,25 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="site-info">
|
<div class="site-info">
|
||||||
<div class="username">
|
<div class="username">
|
||||||
<a href="/site/<%= site.username %>" title="Profile">
|
<a href="/site/<%= site.username %>" title="Site Profile">
|
||||||
<i class="fa fa-user"><% if site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= site.username %>
|
<i class="fa fa-user"><% if site.supporter? %><i class="fa fa-heart"></i><% end %></i><%= site.username %>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="site-stats hide-on-mobile">
|
<div class="site-stats hide-on-mobile">
|
||||||
<a href="/site/<%= site.username %>">
|
<a href="/site/<%= site.username %>" title="<% if params[:sort_by] == 'hits' %>Hits<% else %>Visitors<% end %>">
|
||||||
<span class="show-on-mobile">
|
<span>
|
||||||
<i class="fa fa-eye"></i>
|
<i class="fa fa-eye"></i>
|
||||||
</span>
|
</span>
|
||||||
<% if params[:sort_by] == 'hits' %>
|
<% if params[:sort_by] == 'hits' %>
|
||||||
<%= site.hits.format_large_number %><span class="hide-on-mobile"> hit<%= site.hits == 1 ? '' : 's' %></span>
|
<%= site.hits.format_large_number %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= site.views.format_large_number %><span class="hide-on-mobile"> view<%= site.views == 1 ? '' : 's' %></span>
|
<%= site.views.format_large_number %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="site-tags">
|
<div class="site-tags">
|
||||||
<% if @site_tags[site.id].length > 0 %>
|
<% if @site_tags[site.id].length > 0 %>
|
||||||
<i class="fa fa-tag"></i>
|
<i class="fa fa-tag" title="Tags"></i>
|
||||||
<% @site_tags[site.id].each_with_index do |tag, index| %>
|
<% @site_tags[site.id].each_with_index do |tag, index| %>
|
||||||
<a class="" href="/browse?tag=<%= Rack::Utils.escape tag %>"><%= tag %></a><% if index != @site_tags[site.id].length - 1 %>,<% end %>
|
<a class="" href="/browse?tag=<%= Rack::Utils.escape tag %>"><%= tag %></a><% if index != @site_tags[site.id].length - 1 %>,<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue