Soc/app/views/learning_goals/index.html.erb

26 lines
633 B
Plaintext

<h2><%= t(".learning_goals") %></h2>
<%= link_to t(".new"), new_learning_goal_path if logged_in? %>
<%= link_to t(".new_todo"), new_todo_path if logged_in? %>
<h3><%= t(".current") %></h3>
<% if LearningGoal.current.any? %>
<%= render LearningGoal.current %>
<% else %>
<p><%= t(".no_current_goals") %></p>
<% end %>
<h3><%= t(".future") %></h3>
<% if LearningGoal.future.any? %>
<%= render LearningGoal.future %>
<% else %>
<p><%= t(".no_future_goals") %></p>
<% end %>
<h3><%= t(".past") %></h3>
<% if LearningGoal.past.any? %>
<%= render LearningGoal.past %>
<% else %>
<p><%= t(".no_past_goals") %></p>
<% end %>