<% if can_complete_module?(@my_module) %>
<% if !@my_module.completed? %>
<%= render 'my_modules/state_button_complete.html.erb' %>
<% else @my_module.completed? %>
<%= render 'my_modules/state_button_uncomplete.html.erb' %>
<% end %>
<% end %>