Permalink
Browse files

small directory page tweaks

  • Loading branch information...
1 parent b655a6b commit bacab276440fd46ef2c90777661eec6b07e0b90a @will-r will-r committed Aug 9, 2011
Showing with 18 additions and 9 deletions.
  1. +4 −6 app/views/accounts/_list.html.haml
  2. +14 −3 public/stylesheets/sass/reader.sass
@@ -2,19 +2,17 @@
- if readers.any?
- %h3
- = t('reader_extension.people').titlecase
-
- if readers.respond_to?(:previous_page) && readers.previous_page
= pagination_and_summary_for(readers, t('reader_extension.person'))
- if readers.size > 1
- - columns = [readers[0..readers.size/2], readers[readers.size/2+1..readers.size]]
+ - cols = 3
+ - columns = readers.in_groups_of((readers.size / cols), false)
- else
- columns = [readers]
- - columns.each do |readers|
+ - columns.each do |column|
%div.column
- = render :partial => 'accounts/reader', :collection => readers
+ = render :partial => 'accounts/reader', :collection => column
- if readers.respond_to?(:next_page) && readers.next_page
= pagination_and_summary_for(readers, t('reader_extension.person'))
@@ -161,6 +161,8 @@ a.csv
background-image: url(/images/furniture/csv_tiny.png)
h2
+ span.headernote
+ font-size: 70%
a.vcard, a.csv
display: inline-block
height: 14px
@@ -181,9 +183,18 @@ a.mailto
.column
float: left
- width: 45%
- margin-right: 3%
-
+ width: 30%
+ margin-right: 2%
+ .reader
+ margin-bottom: 1em
+ overflow: hidden
+ .speaker
+ margin-left: 0
+ h2
+ font-size: 125%
+ a.title
+ padding-top: 0.5em
+
ul.groups
padding: 0
margin: 0 0 1em 0

0 comments on commit bacab27

Please sign in to comment.