mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-13 10:54:23 +01:00
Extract chart value object
This simplifies the views (slightly).
This commit is contained in:
parent
8b0f3e986a
commit
0aa6ea183b
7 changed files with 65 additions and 41 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<%= render :partial => 'chart', :locals => {:width => @pie_width, :height => @pie_height, :data => url_for(:action => 'context_total_actions_data')} -%>
|
||||
|
||||
<%= render :partial => 'chart', :locals => {:width => @pie_width, :height => @pie_height, :data => url_for(:action => 'context_running_actions_data')} -%>
|
||||
<% @context_charts.each do |chart| %><%=
|
||||
render :partial => 'chart', :locals => {:chart => chart}
|
||||
-%><% end %>
|
||||
|
||||
<br style="clear:both">
|
||||
|
||||
|
|
@ -34,4 +34,4 @@
|
|||
<br/><%
|
||||
end
|
||||
-%>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue