diff options
author | Alex Legler <alex@a3li.li> | 2015-02-22 15:44:19 +0100 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2015-02-22 15:44:19 +0100 |
commit | f93dd2d194eaa5b9b23715edf6b71ecb5001d839 (patch) | |
tree | 56a9078bdb95c709f7cd307e9dd6bdce0b14f082 /views/index.erb | |
parent | Fix mail count (diff) | |
download | frontend-f93dd2d194eaa5b9b23715edf6b71ecb5001d839.tar.gz frontend-f93dd2d194eaa5b9b23715edf6b71ecb5001d839.tar.bz2 frontend-f93dd2d194eaa5b9b23715edf6b71ecb5001d839.zip |
Cache message counts
Diffstat (limited to 'views/index.erb')
-rw-r--r-- | views/index.erb | 4 |
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> |