add reputation view and improve queries
This commit is contained in:
8
app/views/wow_characters/_reputations.html.erb
Normal file
8
app/views/wow_characters/_reputations.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<h3>Reputation</h3>
|
||||
|
||||
<% standings.each do |standing| %>
|
||||
<div>
|
||||
<h5><%= standing.wow_reputation.name %></h5>
|
||||
<%= render partial: 'wow_characters/standing', locals: { standing: standing, tier: standing.wow_reputation.wow_reputation_tier.wow_reputation_tier_levels[standing.tier] } %>
|
||||
</div>
|
||||
<% end %>
|
||||
Reference in New Issue
Block a user