+ <% if @counter[:dailyactivities] >= 3 && @counter[:futureme] >= 3 && @counter[:interactions] >= 3 && @counter[:curiosity] >= 3 %>
+
+ <%= image_tag('medailles/dragon_3_all.png', size: "100") %>
+
+
+ <% elsif @counter[:dailyactivities] >= 2 && @counter[:futureme] >= 2 && @counter[:interactions] >= 2 && @counter[:curiosity] >= 2 %>
+
+ <%= image_tag('medailles/dragon_2_all.png', size: "100") %>
+
+
+ <% elsif @counter[:dailyactivities] >= 1 && @counter[:futureme] >= 1 && @counter[:interactions] >= 1 && @counter[:curiosity] >= 1 %>
+
+ <%= image_tag('medailles/dragon_1_all.png', size: "100") %>
+
+ <% end %>
+ <% @counter.each do |key, value| %>
+ <% if value >= 3 %>
+
+
+ <% if key == :futureme %>
+ <%= image_tag('medailles/dragon_3_future_me.png', size: "100") %>
+ <% elsif key == :dailyactivities %>
+ <%= image_tag('medailles/dragon_3_daily_activities.png', size: "100") %>
+ <% elsif key == :interactions %>
+ <%= image_tag('medailles/dragon_3_interactions.png', size: "100") %>
+ <% elsif key == :curiosity %>
+ <%= image_tag('medailles/dragon_3_curiosity.png', size: "100") %>
+ <% end %>
- <% end %>
- <% if @counter[:dailyactivities] >= 2 %>
-
- <%= image_tag('medailles/dragon_2_all.png', size: "100") %>
-
+
+ <% elsif value >= 2 %>
+
+
+ <% if key == :futureme %>
+ <%= image_tag('medailles/dragon_2_future_me.png', size: "100") %>
+ <% elsif key == :dailyactivities %>
+ <%= image_tag('medailles/dragon_2_daily_activities.png', size: "100") %>
+ <% elsif key == :interactions %>
+ <%= image_tag('medailles/dragon_2_interactions.png', size: "100") %>
+ <% elsif key == :curiosity %>
+ <%= image_tag('medailles/dragon_2_curiosity.png', size: "100") %>
+ <% end %>
- <% end %>
- <% if @counter[:dailyactivities] >= 3 %>
-
- <%= image_tag('medailles/dragon_3_all.png', size: "100") %>
-
+
+ <% elsif value >= 1 %>
+
+
+ <% if key == :futureme %>
+ <%= image_tag('medailles/dragon_1_future_me.png', size: "100") %>
+ <% elsif key == :dailyactivities %>
+ <%= image_tag('medailles/dragon_1_daily_activities.png', size: "100") %>
+ <% elsif key == :interactions %>
+ <%= image_tag('medailles/dragon_1_interactions.png', size: "100") %>
+ <% elsif key == :curiosity %>
+ <%= image_tag('medailles/dragon_1_curiosity.png', size: "100") %>
+ <% end %>
- <% end %>
+
+
<% end %>