Commit 25c4d89b authored by David DeSanto's avatar David DeSanto

Remove variables to calculate date

parent 4723101b
<%= require 'date' %>
<%= current_month = Date::MONTHNAMES[Date.today.month] %>
<%= previous_date = Date.today.prev_month %>
<%= previous_month = Date::MONTHNAMES[previous_date.month] %>
<%= performance_indicator.name %>
......@@ -60,12 +54,21 @@
<% if performance_indicator.monthly %>
<b>Lessons Learned <%= previous_month %>:</b>
<b>Lessons Learned (<%= Date::MONTHNAMES[Date.today.prev_month.month] %>):</b>
<% performance_indicator.monthly.reasons.each do |reason| %>
<%=" * #{reason}"%>
<% end %>
<% if performance_indicator.monthly %>
<b>Focus This Month (<%= Date::MONTHNAMES[Date.today.month] %>):</b>
<% performance_indicator.monthly.reasons.each do |reason| %>
<%=" * #{reason}"%>
<% end %>
<% end %>
<% end %>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment