typingpool 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
|
|
1
|
-
<% if voices_count > 0 %>
|
1
|
+
<% if voices_count.to_i > 0 %>
|
2
2
|
<h3>Names</h3>
|
3
3
|
<p>There are <%= voices_count %> speakers:
|
4
4
|
<ul>
|
5
|
-
<% 1.upto(voices_count) do |i| %>
|
5
|
+
<% 1.upto(voices_count.to_i) do |i| %>
|
6
6
|
<li><strong><%= send("voice#{i}") %></strong><% if send("voice#{i}title").to_s.empty? %><% if i == 1 %>, the person asking the questions<% end %><% else %>, <%= send("voice#{i}title") %><% end %>.
|
7
7
|
<% end %>
|
8
8
|
</ul>
|
@@ -1,8 +1,8 @@
|
|
1
|
-
<% if voices_count > 0 %>
|
1
|
+
<% if voices_count.to_i > 0 %>
|
2
2
|
<h3>Names</h3>
|
3
3
|
<p>There are <%= voices_count %> speakers:
|
4
4
|
<ul>
|
5
|
-
<% 1.upto(voices_count) do |i| %>
|
5
|
+
<% 1.upto(voices_count.to_i) do |i| %>
|
6
6
|
<li><strong><%= send("voice#{i}") %></strong><% unless send("voice#{i}title").to_s.empty? %>, <%= send("voice#{i}title") %><% end %>.
|
7
7
|
<% end %>
|
8
8
|
</ul>
|
data/lib/typingpool.rb
CHANGED