Adding "View all issues" links, although the created_on one doesn't work as the field doesn't display by default. Hrm.
This commit is contained in:
parent
0af8813020
commit
edb51fb483
|
@ -3,17 +3,31 @@
|
||||||
<%= tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'issue_age_graph', :project_id => @project.id)) unless @project.nil? %>
|
<%= tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'issue_age_graph', :project_id => @project.id)) unless @project.nil? %>
|
||||||
|
|
||||||
<div class="splitcontentleft">
|
<div class="splitcontentleft">
|
||||||
<div class="box">
|
|
||||||
<h3 class="icon22 icon-time"><%= l(:label_issues_by, :value => l(:field_created_on)) %></h3>
|
<h3 class="icon22 icon-time"><%= l(:label_issues_by, :value => l(:field_created_on)) %></h3>
|
||||||
<%= render :partial => 'issues/list_simple', :locals => { :issues => @issues_by_created_on[0..9] } %>
|
<%= render :partial => 'issues/list_simple', :locals => { :issues => @issues_by_created_on[0..9] } %>
|
||||||
</div>
|
<% if @issues_by_created_on.length > 0 %>
|
||||||
|
<p class="small">
|
||||||
|
<%
|
||||||
|
link_params = { :controller => :issues, :action => :index, :set_filter => 1, :sort_key => :created_on, :sort_order => :desc }
|
||||||
|
link_params[:project_id] = @project unless @project.nil?
|
||||||
|
%>
|
||||||
|
<%= link_to l(:label_issue_view_all), link_params %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="splitcontentright">
|
<div class="splitcontentright">
|
||||||
<div class="box">
|
|
||||||
<h3 class="icon22 icon-comment"><%= l(:label_issues_by, :value => l(:field_updated_on)) %></h3>
|
<h3 class="icon22 icon-comment"><%= l(:label_issues_by, :value => l(:field_updated_on)) %></h3>
|
||||||
<%= render :partial => 'issues/list_simple', :locals => { :issues => @issues_by_updated_on[0..9] } %>
|
<%= render :partial => 'issues/list_simple', :locals => { :issues => @issues_by_updated_on[0..9] } %>
|
||||||
</div>
|
<% if @issues_by_updated_on.length > 0 %>
|
||||||
|
<p class="small">
|
||||||
|
<%
|
||||||
|
link_params = { :controller => :issues, :action => :index, :set_filter => 1, :sort_key => :updated_on, :sort_order => :desc }
|
||||||
|
link_params[:project_id] = @project unless @project.nil?
|
||||||
|
%>
|
||||||
|
<%= link_to l(:label_issue_view_all), link_params %>
|
||||||
|
</p>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<% content_for :sidebar do %>
|
<% content_for :sidebar do %>
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
#target_version_graph { clear: both; }
|
||||||
|
|
||||||
.fill1 { fill: #666 !important; }
|
.fill1 { fill: #666 !important; }
|
||||||
.line1 { stroke: #666 !important; }
|
.line1 { stroke: #666 !important; }
|
||||||
.key1, .dataPoint1 { fill: #666 !important; }
|
.key1, .dataPoint1 { fill: #666 !important; }
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
class TargetVersionGraphHook < Redmine::Hook::ViewListener
|
class TargetVersionGraphHook < Redmine::Hook::ViewListener
|
||||||
def view_versions_show_bottom(context = { })
|
def view_versions_show_bottom(context = { })
|
||||||
if !context[:version].fixed_issues.empty?
|
if !context[:version].fixed_issues.empty?
|
||||||
output = "<fieldset id='filters'><legend>#{ l(:label_graphs_total_vs_closed_issues) }</legend>"
|
output = "<fieldset id='target_version_graph'><legend>#{ l(:label_graphs_total_vs_closed_issues) }</legend>"
|
||||||
output << tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'target_version_graph', :id => context[:version]))
|
output << tag("embed", :width => "100%", :height => 300, :type => "image/svg+xml", :src => url_for(:controller => 'graphs', :action => 'target_version_graph', :id => context[:version]))
|
||||||
output << "</fieldset>"
|
output << "</fieldset>"
|
||||||
return output
|
return output
|
||||||
|
|
Loading…
Reference in New Issue
Block a user