Permalink
Browse files

fix directory view for private site

  • Loading branch information...
will-r committed Nov 22, 2011
1 parent d0e4285 commit fa19552d5112d84bdd11596a7ebed130d7570444
Showing with 14 additions and 0 deletions.
  1. +14 −0 app/views/readers/_directory.html.haml
@@ -12,6 +12,20 @@
= t('reader_extension.people').titlecase
= render :partial => 'readers/list', :locals => {:readers => @readers}
+ - when 'private'
+ .groups
+ %h2
+ = t('reader_extension.your_groups')
+ - if @groups.any
+ = render :partial => 'groups/group', :collection => @groups
+ - else
+ = t('reader_extension.no_groups')
+ .readers
+ - if @readers.any?
+ %h2
+ = t('reader_extension.people')
+ = render :partial => 'readers/list', :locals => {:readers => @readers}
+
- when 'grouped'
.groups
%h2

0 comments on commit fa19552

Please sign in to comment.