Mercurial > hg > soundsoftware-site
comparison app/views/activities/index.html.erb @ 1009:066b55d7c053 browsing
Add busy institutions list
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Mon, 12 Nov 2012 13:34:32 +0000 |
parents | cbb26bc654de |
children | bb32da3bea34 |
comparison
equal
deleted
inserted
replaced
1008:8196ed891e54 | 1009:066b55d7c053 |
---|---|
1 <h2><%= @author.nil? ? l(:label_activity) : l(:label_user_activity, link_to_user(@author)) %></h2> | 1 <h2><%= |
2 if @author.nil? | |
3 if @institution_name.blank? | |
4 l(:label_activity) | |
5 else | |
6 l(:label_institution_activity, h(@institution_name)) | |
7 end | |
8 else | |
9 l(:label_user_activity, link_to_user(@author)) | |
10 end | |
11 %></h2> | |
2 <p class="subtitle"><%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %></p> | 12 <p class="subtitle"><%= l(:label_date_from_to, :start => format_date(@date_to - @days), :end => format_date(@date_to-1)) %></p> |
3 | 13 |
4 <div id="activity"> | 14 <div id="activity"> |
5 <% @events_by_day.keys.sort.reverse.each do |day| %> | 15 <% @events_by_day.keys.sort.reverse.each do |day| %> |
6 <h3><%= format_activity_day(day) %></h3> | 16 <h3><%= format_activity_day(day) %></h3> |