summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-22 15:44:19 +0100
committerAlex Legler <alex@a3li.li>2015-02-22 15:44:19 +0100
commitf93dd2d194eaa5b9b23715edf6b71ecb5001d839 (patch)
tree56a9078bdb95c709f7cd307e9dd6bdce0b14f082 /views
parentFix mail count (diff)
downloadfrontend-f93dd2d194eaa5b9b23715edf6b71ecb5001d839.tar.gz
frontend-f93dd2d194eaa5b9b23715edf6b71ecb5001d839.tar.bz2
frontend-f93dd2d194eaa5b9b23715edf6b71ecb5001d839.zip
Cache message counts
Diffstat (limited to 'views')
-rw-r--r--views/index.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/index.erb b/views/index.erb
index d1454ea..c2cee2c 100644
--- a/views/index.erb
+++ b/views/index.erb
@@ -9,7 +9,7 @@
<a href="<%= h list %>/" class="list-group-item">
<span class="fa fa-fw fa-archive"></span>
<%= h list %>
- <span class="badge"><%= get_message_count(list) %></span>
+ <span class="badge"><%= MessageCountCache.instance[list] %></span>
</a>
<% end %>
</div>
@@ -32,7 +32,7 @@
<a href="<%= h list %>/" class="list-group-item">
<span class="fa fa-fw fa-archive"></span>
<%= h list %>
- <span class="badge"><%= get_message_count(list) %></span>
+ <span class="badge"><%= MessageCountCache.instance[list] %></span>
</a>
<% end %>
</div>