Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bump to 10 items in the email

  • Loading branch information...
commit f4c2adfe2642f12bdf8023f2a0174140d280f5ab 1 parent fa0b1b4
Tom Insam authored
4 app/views/guild_mailer/weekly_summary.text.html.rhtml
View
@@ -16,10 +16,10 @@
<% for character, items in @people %>
<p><%= link_to h(character.name), character_url(character, @guild.realm) %> (level <%= character.level %> <%= character.classname %>, <%= character.achpoints %> achievement points) gained the following achievements:</p>
<ul>
- <% for item in ( items.size > 6 ? items[0,5] : items ) %>
+ <% for item in ( items.size > 10 ? items[0,9] : items ) %>
<li><%= link_to h(item.achievement.name), achievement_url(item.achievement, item.character.guild) %> (<%= item.achievement.description %>)</li>
<% end %>
- <% if items.size > 6 %>
+ <% if items.size > 10 %>
<li>And a <%= link_to "whole lot more stuff (#{ items.size } things total)", character_url( character, @guild.realm ) %></li>
<% end %>
</ul>
4 app/views/guild_mailer/weekly_summary.text.plain.rhtml
View
@@ -12,9 +12,9 @@ In the last week..
<% for character, items in @people %>
<%= character.name %> (level <%= character.level %> <%= character.classname %>, <%= character.achpoints %> achievement points) gained the following achievements:
-<% for item in ( items.size > 6 ? items[0,5] : items ) %>
+<% for item in ( items.size > 10 ? items[0,9] : items ) %>
* <%= item.achievement.name %> (<%= item.achievement.description %>)<% end %>
-<% if items.size > 6 %>
+<% if items.size > 10 %>
And a whole lot more stuff (<%= items.size %> things total)<% end %>
<<%= character_url( character, @guild.realm ) %>>
Please sign in to comment.
Something went wrong with that request. Please try again.