# HG changeset patch # User Chris Cannam # Date 1352803026 0 # Node ID 873d052b361bb5a819e88d406623dce6c95e1737 # Parent 52be96e8308021ca7cc818e76fa63b2abe20e01d# Parent f2ec92061fca6731bac35576a7426741e196d861 Merge from browsing branch diff -r 52be96e83080 -r 873d052b361b app/views/activities/_busy.html.erb --- a/app/views/activities/_busy.html.erb Mon Nov 12 15:17:17 2012 +0000 +++ b/app/views/activities/_busy.html.erb Tue Nov 13 10:37:06 2012 +0000 @@ -1,6 +1,6 @@ <% events = @events_by_day %> <% if (events.nil?) - activity = Redmine::Activity::Fetcher.new(User.current) + activity = Redmine::Activity::Fetcher.new(User.anonymous) events = activity.events(Date.today - 14, Date.today + 1) end %> diff -r 52be96e83080 -r 873d052b361b app/views/activities/_busy_institution.html.erb --- a/app/views/activities/_busy_institution.html.erb Mon Nov 12 15:17:17 2012 +0000 +++ b/app/views/activities/_busy_institution.html.erb Tue Nov 13 10:37:06 2012 +0000 @@ -1,7 +1,8 @@ <% events = @events_by_day %> <% if (events.nil?) - activity = Redmine::Activity::Fetcher.new(User.current) - events = activity.events(Date.today - 14, Date.today + 1) + activity = Redmine::Activity::Fetcher.new(User.anonymous) + days = Setting.activity_days_default.to_i + events = activity.events(Date.today - days, Date.today + 1) end %> @@ -24,3 +25,4 @@ <% end %> <% end %> + diff -r 52be96e83080 -r 873d052b361b app/views/projects/explore.html.erb --- a/app/views/projects/explore.html.erb Mon Nov 12 15:17:17 2012 +0000 +++ b/app/views/projects/explore.html.erb Tue Nov 13 10:37:06 2012 +0000 @@ -1,23 +1,29 @@ +<% cache(:action => 'explore', :action_suffix => 'tags') do %>

<%= l(:label_explore_projects) %>

-

<%=l(:label_project_tags_all)%>

<%= render :partial => 'projects/tagcloud' %>
+<% end %> +
+ <% cache(:action => 'explore', :action_suffix => 'busy_institutions') do %>

<%=l(:label_institutions_busy)%>

<%= render :partial => 'activities/busy_institution' %>
+ <% end %>

<%=l(:label_project_latest)%>

<%= render :partial => 'projects/latest' %>
+ <% cache(:action => 'explore', :action_suffix => 'busy_projects') do %>

<%=l(:label_projects_busy)%>

<%= render :partial => 'activities/busy' %>
+ <% end %>
diff -r 52be96e83080 -r 873d052b361b vendor/plugins/redmine_tags/app/controllers/tags_controller.rb --- a/vendor/plugins/redmine_tags/app/controllers/tags_controller.rb Mon Nov 12 15:17:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,15 +0,0 @@ -class TagsController < ApplicationController - - def index - respond_to do |format| - format.html { - render :template => 'tags/index.html.erb', :layout => !request.xhr? - } - format.api { - } - format.atom { - } - end - end - -end diff -r 52be96e83080 -r 873d052b361b vendor/plugins/redmine_tags/app/views/tags/index.html.erb --- a/vendor/plugins/redmine_tags/app/views/tags/index.html.erb Mon Nov 12 15:17:17 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,13 +0,0 @@ -<% content_for :header_tags do %> - <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %> - <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %> -<% end %> - - -
-

- <%= l("label_project_tags_all") %> -

- -<%= render_tags_list(Project.available_tags, :style => :cloud) %> -