annotate app/views/welcome/index.rhtml @ 1452:d6b9fd02bb89 feature_36_js_refactoring

Deprecated develoment branch.
author luisf <luis.figueira@eecs.qmul.ac.uk>
date Fri, 11 Oct 2013 17:01:24 +0100
parents 851510f1b535
children
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
Chris@0 12 <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
Chris@0 13 </div>
Chris@0 14
Chris@0 15 <div class="splitcontentright">
chris@374 16 <% if @site_news.any? %>
chris@22 17 <div class="news box">
chris@374 18 <h3><%=l(:label_news_site_latest)%></h3>
chris@374 19 <%= render :partial => 'news/news', :locals => { :project => @site_project }, :collection => @site_news %>
chris@374 20
chris@374 21 <%= link_to l(:label_news_more), { :controller => 'projects', :action => @site_project.identifier, :id => 'news' } %>
chris@22 22 </div>
chris@22 23 <% end %>
Chris@0 24 <% if @projects.any? %>
Chris@0 25 <div class="projects box">
Chris@0 26 <h3><%=l(:label_project_latest)%></h3>
Chris@0 27 <ul>
Chris@0 28 <% for project in @projects %>
Chris@0 29 <% @project = project %>
chris@335 30 <li class="latest">
chris@361 31 <span class="title"><%= link_to_project project %></span>
chris@361 32 <span class="time"><%= format_time(project.created_on)%></span>
chris@335 33 <%= render_project_short_description project %>
Chris@0 34 </li>
Chris@0 35 <% end %>
Chris@0 36 <% @project = nil %>
Chris@0 37 </ul>
chris@374 38 <%= link_to l(:label_projects_more), :controller => 'projects' %>
Chris@0 39 </div>
Chris@0 40 <% end %>
Chris@0 41 <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
Chris@0 42 </div>
Chris@0 43
Chris@0 44 <% content_for :header_tags do %>
Chris@507 45 <%= stylesheet_link_tag 'scm' %>
Chris@0 46 <%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
Chris@0 47 :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
chris@22 48 <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
Chris@0 49 :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
Chris@0 50 <% end %>