annotate app/views/welcome/index.rhtml @ 127:32b5adec7422 cannam

Bug #51: make New Member box show matching users only when at least 2 characters have been typed in search (avoid really long results lists)
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 19 Jan 2011 13:27:01 +0000
parents 74cb18079dd6
children cede720e8f53
rev   line source
luisf@48 1 <% if not Setting.notifications_text.empty? %>
luisf@48 2 <div class="notifications flash error">
luisf@47 3 <%= textilizable Setting.notifications_text %>
luisf@48 4 </div>
luisf@48 5 <% end %>
luisf@47 6
Chris@95 7 <h2><%= l(:label_home_heading) %></h2>
Chris@0 8
Chris@0 9 <div class="splitcontentleft">
Chris@0 10 <%= textilizable Setting.welcome_text %>
luisf@42 11
luisf@49 12 <% if not @tipsoftheday.empty? %>
luisf@49 13 <div class="newsoftheday box">
luisf@49 14 <h3><%=l(:label_tipoftheday)%></h3>
luisf@49 15 <%= textilizable @tipsoftheday %>
luisf@49 16 </div>
luisf@49 17 <% end %>
luisf@49 18
luisf@42 19
Chris@0 20 <% if @news.any? %>
Chris@0 21 <div class="news box">
Chris@0 22 <h3><%=l(:label_news_latest)%></h3>
Chris@0 23 <%= render :partial => 'news/news', :collection => @news %>
Chris@0 24 <%= link_to l(:label_news_view_all), :controller => 'news' %>
Chris@0 25 </div>
Chris@0 26 <% end %>
Chris@0 27 <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
Chris@0 28 </div>
Chris@0 29
Chris@0 30 <div class="splitcontentright">
Chris@0 31 <% if @projects.any? %>
Chris@0 32 <div class="projects box">
Chris@0 33 <h3><%=l(:label_project_latest)%></h3>
Chris@0 34 <ul>
Chris@0 35 <% for project in @projects %>
Chris@0 36 <% @project = project %>
Chris@0 37 <li>
Chris@14 38 <%= link_to_project project %> (<%= format_time(project.created_on) %>)
Chris@0 39 <%= textilizable project.short_description, :project => project %>
Chris@0 40 </li>
Chris@0 41 <% end %>
Chris@0 42 <% @project = nil %>
Chris@0 43 </ul>
Chris@0 44 </div>
Chris@0 45 <% end %>
Chris@0 46 <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
Chris@0 47 </div>
Chris@0 48
Chris@0 49 <% content_for :header_tags do %>
Chris@0 50 <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
Chris@0 51 :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
chris@22 52 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
Chris@0 53 :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
Chris@0 54 <% end %>