Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ffac0654a7 |
No files matched your search
Vendored
+3
-3
@@ -184,7 +184,7 @@
|
||||
<td><%= t('survey_b.no_data') %></td>
|
||||
<% @tcount = @tcount + @results[i_key]['count'] %>
|
||||
<% else %>
|
||||
<td><%= ( ( @results[i_key]['sum'].to_f / t('survey_b.questions').count.to_f ) / @results[i_key]['count'].to_f ).round(2) %></td>
|
||||
<td><%= sprintf("%.2f", ( @results[i_key]['sum'].to_f / t('survey_b.questions').count.to_f ) / @results[i_key]['count'].to_f ) %></td>
|
||||
<% @tcount = @tcount + (( @results[i_key]['sum'].to_f / t('survey_b.questions').count.to_f ) / @results[i_key]['count'].to_f ) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -198,7 +198,7 @@
|
||||
<td><%= t('survey_b.no_data') %></td>
|
||||
<% @tcount = @tcount + @results[i_key]['count'] %>
|
||||
<% else %>
|
||||
<td><%= ( ( @results[i_key]['sum7'].to_f / 7.0 ) / @results[i_key]['count'].to_f ).round(2) %></td>
|
||||
<td><%= sprintf("%.2f", ( @results[i_key]['sum7'].to_f / 7.0 ) / @results[i_key]['count'].to_f ) %></td>
|
||||
<% @tcount = @tcount + ( ( @results[i_key]['sum7'].to_f / 7.0 ) / @results[i_key]['count'].to_f ) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
@@ -223,7 +223,7 @@
|
||||
<td><%= t('survey_b.no_data') %></td>
|
||||
<% @tcount = @tcount + @results[i_key]['count'] %>
|
||||
<% else %>
|
||||
<td><%= ( @results[i_key][q_key].to_f / @results[i_key]['count'].to_f ).round(2) %></td>
|
||||
<td><%= sprintf("%.2f", ( @results[i_key][q_key].to_f / @results[i_key]['count'].to_f )) %></td>
|
||||
<% @tcount = @tcount + ( @results[i_key][q_key].to_f / @results[i_key]['count'].to_f ) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
Vendored
+6
-4
@@ -30,14 +30,16 @@
|
||||
<% if @results[i_key]['count'] == 0 %>
|
||||
<%= t('survey_b.no_data') %>
|
||||
<% else %>
|
||||
<%= ( ( @results[i_key]['sum'].to_f / t('survey_b.questions').count.to_f ) / @results[i_key]['count'].to_f ).round(2) %>
|
||||
<%= sprintf("%.2f", ( @results[i_key]['sum'].to_f / t('survey_b.questions').count.to_f ) / @results[i_key]['count'].to_f ) %>
|
||||
<%#= ( ( @results[i_key]['sum'].to_f / t('survey_b.questions').count.to_f ) / @results[i_key]['count'].to_f ).round(2) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
<% if @results[i_key]['count'] == 0 %>
|
||||
<%= t('survey_b.no_data') %>
|
||||
<% else %>
|
||||
<%= ( ( @results[i_key]['sum7'].to_f / 7.0 ) / @results[i_key]['count'].to_f ).round(2) %>
|
||||
<%= sprintf("%.2f", ( @results[i_key]['sum7'].to_f / 7.0 ) / @results[i_key]['count'].to_f ) %>
|
||||
<%#= ( ( @results[i_key]['sum7'].to_f / 7.0 ) / @results[i_key]['count'].to_f ).round(2) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<td>
|
||||
@@ -48,7 +50,8 @@
|
||||
<% if @results[i_key]['count'] == 0 %>
|
||||
<%= t('survey_b.no_data') %>
|
||||
<% else %>
|
||||
<%= ( @results[i_key][q_key].to_f / @results[i_key]['count'].to_f ).round(2) %>
|
||||
<%= sprintf("%.2f", ( @results[i_key][q_key].to_f / @results[i_key]['count'].to_f )) %>
|
||||
<%#= ( @results[i_key][q_key].to_f / @results[i_key]['count'].to_f ).round(2) %>
|
||||
<% end %>
|
||||
</td>
|
||||
<% end %>
|
||||
@@ -92,7 +95,6 @@
|
||||
|
||||
//bar
|
||||
|
||||
|
||||
var data_bar_<%= item %> = google.visualization.arrayToDataTable([
|
||||
['<%= t("survey_b.#{item}_label") %>', '%'],
|
||||
<% @results[item].each do |institution, count| %>
|
||||
|
||||
Reference in new issue
Block a user