Project

General

Profile

Feature #5920 » 5920_git.diff

Jean-Baptiste Barth, 2010-07-21 05:24

View differences:

app/views/calendars/show.html.erb
<% end %>
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
<% end %>
<%= render (@project ? 'issues/sidebar' : 'common/cross_sidebar') %>
<% end -%>
<% html_title(l(:label_calendar)) -%>
app/views/common/_cross_sidebar.html.erb
<h3><%=l(:label_project_plural) %></h3>
<%= link_to(l(:label_project_all), {:controller => 'projects'}) %><br />
<%= call_hook(:view_cross_sidebar_projects_bottom) %>
<h3><%=l(:label_issue_plural)%></h3>
<% if User.current.allowed_to?(:view_issues, nil, :global => true) -%>
<%= link_to(l(:label_issue_view_all), {:controller => 'issues', :set_filter => 1}) %><br />
<% end -%>
<% if User.current.allowed_to?(:view_calendar, nil, :global => true) %>
<%= link_to(l(:label_calendar), :controller => 'issues', :action => 'calendar') %><br />
<% end -%>
<% if User.current.allowed_to?(:view_gantt, nil, :global => true) %>
<%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show') %><br />
<% end -%>
<%= call_hook(:view_cross_sidebar_issues_bottom) %>
<% unless sidebar_queries.empty? -%>
<h3><%= l(:label_query_plural) %></h3>
<% sidebar_queries.each do |query| -%>
<%= link_to(h(query.name), :controller => 'issues', :action => 'index', :query_id => query) %><br />
<% end -%>
<% end -%>
<% if User.current.allowed_to?(:view_time_entries, nil, :global => true) \
&& EnabledModule.first(:conditions => {:name => "time_tracking"}) %>
<h3><%=l(:label_time_entry_plural)%></h3>
<%= link_to(l(:label_overall_spent_time), {:controller => 'time_entries'}) %><br />
<% end -%>
<%= call_hook(:view_cross_sidebar_time_entries_bottom) %>
<h3><%=l(:label_activity) %></h3>
<%= link_to l(:label_overall_activity), {:controller => 'projects', :action => 'activity'} %><br />
app/views/gantts/show.html.erb
<% end # query.valid? %>
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
<% end %>
<%= render (@project ? 'issues/sidebar' : 'common/cross_sidebar') %>
<% end -%>
<% html_title(l(:label_gantt)) -%>
app/views/issues/index.rhtml
<%= call_hook(:view_issues_index_bottom, { :issues => @issues, :project => @project, :query => @query }) %>
<% content_for :sidebar do %>
<%= render :partial => 'issues/sidebar' %>
<% end %>
<%= render (@project ? 'issues/sidebar' : 'common/cross_sidebar') %>
<% end -%>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, {:query_id => @query, :format => 'atom', :page => nil, :key => User.current.rss_key}, :title => l(:label_issue_plural)) %>
app/views/projects/activity.rhtml
<% content_for :sidebar do %>
<% form_tag({}, :method => :get) do %>
<h3><%= l(:label_activity) %></h3>
<% if @project -%>
<h3><%= l(:label_activity) %></h3>
<% else -%>
<%= render 'common/cross_sidebar' if @project.nil? %>
<% end -%>
<p><% @activity.event_types.each do |t| %>
<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
<%= link_to(l("label_#{t.singularize}_plural"), {"show_#{t}" => 1, :user_id => params[:user_id]})%>
app/views/projects/index.rhtml
<% end %>
<div class="contextual">
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
<%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
<%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
<%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') if User.current.allowed_to?(:add_project, nil, :global => true) %>
</div>
<h2><%=l(:label_project_plural)%></h2>
......
<%= f.link_to 'Atom', :url => {:key => User.current.rss_key} %>
<% end %>
<% content_for :sidebar do -%>
<%= render 'common/cross_sidebar' %>
<% end -%>
<% html_title(l(:label_project_plural)) -%>
app/views/timelog/details.rhtml
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(:atom, {:issue_id => @issue, :format => 'atom', :key => User.current.rss_key}, :title => l(:label_spent_time)) %>
<% end %>
<% if @project.nil? && @issue.nil? -%>
<% content_for :sidebar do -%>
<%= render 'common/cross_sidebar' %>
<% end -%>
<% end -%>
(1-1/4)