Newer
Older
dmpopidor / app / views / plans / _progress.html.erb
<%
    nanswers = plan.num_answered_questions()
    nquestions = plan.num_questions()
%>
<% answered = %(#{nanswers}/#{nquestions})%>
<div class="bar-container bordered right">
  <span id="questions-progress-title"><%= answered -%> <%= _(' answered')%></span>
  <span id="questions-progress" class="bar" style="width: <%= number_to_percentage(nanswers.to_f/nquestions.to_f*100) %>;" title="<%= answered -%> <%= _('questions answered')%>"><span class="bar-fill"></span></span>
</div>