Skip to content
Extraits de code Groupes Projets
Valider a63bcd00 rédigé par David Morley's avatar David Morley
Parcourir les fichiers

make popular tags human readable

parent c4192308
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -36,7 +36,7 @@ class AdminsController < ApplicationController ...@@ -36,7 +36,7 @@ class AdminsController < ApplicationController
end end
def stats def stats
@popular_tags = ActsAsTaggableOn::Tagging.joins(:tag).limit(15).count(:group => :tag, :order => 'count(taggings.id) DESC') @popular_tags = ActsAsTaggableOn::Tagging.joins(:tag).limit(50).count(:group => :tag, :order => 'count(taggings.id) DESC')
case params[:range] case params[:range]
when "week" when "week"
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
%li= link_to 'Pod Stats', pod_stats_path %li= link_to 'Pod Stats', pod_stats_path
%li= link_to 'Correlations', correlations_path %li= link_to 'Correlations', correlations_path
- if AppConfig[:mount_resque_web] - if AppConfig[:mount_resque_web]
%li= link_to 'Resque', '/admins/resque'
%li= link_to 'Resque Overview', resque_web_path %li= link_to 'Resque Overview', resque_web_path
-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
.stream
= render :partial => resque_web_path
...@@ -49,8 +49,6 @@ ...@@ -49,8 +49,6 @@
%span.percent_change{:class => (model[:change] > 0 ? "green" : "red")} %span.percent_change{:class => (model[:change] > 0 ? "green" : "red")}
= "(#{model[:change]}%)" = "(#{model[:change]}%)"
%br
%br
%br %br
%br %br
%br %br
...@@ -65,63 +63,12 @@ ...@@ -65,63 +63,12 @@
%b %b
#{@posts[:day_before]/@user_count.to_f} #{@posts[:day_before]/@user_count.to_f}
/%h3
/ Posts over time
/#stats_graph{:style => "text-align:right;position:relative;vertical-align:bottom;background-color:#eee;"}
/ = @posts_per_day.inspect
/ /- @posts_per_day.each do |key, val|
/ /.asdo{:style => "display:inline-block;width:35px;vertical-align:bottom;background-color:#666;height:#{(val/@most_posts_within)*200}px;"}
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
%br
.span-24.last .span-24.last
%h2
Misc Stuff
%br
%br
%h3
= for tg in @popular_tags
= link_to tg, tags_path(tg)
%br
%br
.span-12
%h3
New public posts
/.stream
/ /= render 'shared/stream', :posts => @new_public_posts
.span-12.last
%h3 %h3
Most Liked 50 Most Popular Tags
.stream - @popular_tags.each do |name,count|
= render 'shared/stream', :posts => @most_liked_posts Tag Name:
%b= name
Count:
%b= count
%br
...@@ -110,7 +110,6 @@ Diaspora::Application.routes.draw do ...@@ -110,7 +110,6 @@ Diaspora::Application.routes.draw do
get :admin_inviter get :admin_inviter
get :weekly_user_stats get :weekly_user_stats
get :correlations get :correlations
get :resque
get :stats, :as => 'pod_stats' get :stats, :as => 'pod_stats'
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter