mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-14 03:14:22 +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,4 +1,4 @@
|
|||
<%= render :partial => 'chart', :locals => {:width => @chart_width, :height => @chart_height, :data => url_for(:action => @chart_name)} -%>
|
||||
<%= render :partial => 'chart', :locals => {:chart => @chart} -%>
|
||||
<br/>
|
||||
<p>
|
||||
<%= t('stats.click_to_update_actions') %> <%= raw t('stats.click_to_return', :link => link_to(t('stats.click_to_return_link'), stats_path)) %>
|
||||
|
|
@ -22,4 +22,4 @@
|
|||
</div>
|
||||
<%= render :partial => "todos/todo", :collection => @selected_actions, :locals => { :parent_container_type => 'stats' } %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue