Revision 1031:873d052b361b

View differences:

app/views/activities/_busy.html.erb
1 1
<% events = @events_by_day %>
2 2
<% if (events.nil?) 
3
     activity = Redmine::Activity::Fetcher.new(User.current)
3
     activity = Redmine::Activity::Fetcher.new(User.anonymous)
4 4
     events = activity.events(Date.today - 14, Date.today + 1)
5 5
   end
6 6
%>
app/views/activities/_busy_institution.html.erb
1 1
<% events = @events_by_day %>
2 2
<% if (events.nil?) 
3
     activity = Redmine::Activity::Fetcher.new(User.current)
4
     events = activity.events(Date.today - 14, Date.today + 1)
3
     activity = Redmine::Activity::Fetcher.new(User.anonymous)
4
     days = Setting.activity_days_default.to_i
5
     events = activity.events(Date.today - days, Date.today + 1)
5 6
   end
6 7
%>
7 8

  
......
24 25
    <% end %>
25 26
  </ul>
26 27
<% end %>
28

  
app/views/projects/explore.html.erb
1 1

  
2
<% cache(:action => 'explore', :action_suffix => 'tags') do %>
2 3
<h2><%= l(:label_explore_projects) %></h2>
3

  
4 4
  <div class="tags box">
5 5
  <h3><%=l(:label_project_tags_all)%></h3>
6 6
    <%= render :partial => 'projects/tagcloud' %>
7 7
  </div>
8
<% end %>
9

  
8 10
<div class="splitcontentleft">
11
  <% cache(:action => 'explore', :action_suffix => 'busy_institutions') do %>
9 12
  <div class="institutions box">
10 13
  <h3><%=l(:label_institutions_busy)%></h3>
11 14
    <%= render :partial => 'activities/busy_institution' %>
12 15
  </div>
16
  <% end %>
13 17
  <div class="projects box">
14 18
  <h3><%=l(:label_project_latest)%></h3>
15 19
    <%= render :partial => 'projects/latest' %>
16 20
  </div>
17 21
</div>
18 22
<div class="splitcontentright">
23
  <% cache(:action => 'explore', :action_suffix => 'busy_projects') do %>
19 24
  <div class="projects box">
20 25
  <h3><%=l(:label_projects_busy)%></h3>
21 26
    <%= render :partial => 'activities/busy' %>
22 27
  </div>
28
  <% end %>
23 29
</div>
vendor/plugins/redmine_tags/app/controllers/tags_controller.rb
1
class TagsController < ApplicationController
2
  
3
  def index
4
    respond_to do |format|
5
      format.html {
6
        render :template => 'tags/index.html.erb', :layout => !request.xhr?
7
      }
8
      format.api  {
9
      }
10
      format.atom {
11
      }
12
    end
13
  end
14

  
15
end
vendor/plugins/redmine_tags/app/views/tags/index.html.erb
1
<% content_for :header_tags do %>
2
    <%= auto_discovery_link_tag(:atom, {:action => 'index', :format => 'atom', :key => User.current.rss_key}) %>
3
    <%= stylesheet_link_tag 'redmine_tags', :plugin => 'redmine_tags' %>
4
<% end %>
5

  
6

  
7
<div style="clear:both;"></div>
8
<h2>
9
  <%= l("label_project_tags_all") %>
10
</h2>
11

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

  

Also available in: Unified diff