mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-09 18:58:51 +01:00
Pull logic into the controller from the view. There were only a couple of tiny differences between the running actions and the total actions view, so I added a couple of instance variables and then called the same template twice.
9 lines
441 B
Text
Executable file
9 lines
441 B
Text
Executable file
&title=<%= @title %>,{font-size:16}&
|
|
&pie=<%= @alpha %>,#505050,{font-size: 12px; color: #404040;}&
|
|
&x_axis_steps=1& &y_ticks=5,10,5& &line=3,#87421F& &y_min=0& &y_max=20&
|
|
&values=<%= @pie_slices.join(",") %>&
|
|
&pie_labels=<%= @pie_labels.join(",") %>&
|
|
&links=<%= @pie_links.join(",") %>&
|
|
&colours=#d01f3c,#356aa0,#C79810,#c61fd0,#1fc6d0,#1fd076,#72d01f,#c6d01f,#d0941f,#40941f&
|
|
&tool_tip=#x_label#: #val#%25&
|
|
&x_label_style=9,,2,1&
|