To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / welcome / index.rhtml @ 443:350acce374a2

History | View | Annotate | Download (1.78 KB)

1 48:8032b626953b luisf
<% if not Setting.notifications_text.empty? %>
2
  <div class="notifications flash error">
3 47:22ae926000f9 luisf
    <%= textilizable Setting.notifications_text %>
4 48:8032b626953b luisf
  </div>
5
<% end %>
6 47:22ae926000f9 luisf
7 95:74cb18079dd6 Chris
<h2><%= l(:label_home_heading) %></h2>
8 0:513646585e45 Chris
9
<div class="splitcontentleft">
10
  <%= textilizable Setting.welcome_text %>
11 42:df605e25de58 luisf
12 371:4188c6eaadf7 chris
  <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
13
</div>
14
15
<div class="splitcontentright">
16 374:dcfde3922ec2 chris
  <% if @site_news.any? %>
17 0:513646585e45 Chris
  <div class="news box">
18 374:dcfde3922ec2 chris
        <h3><%=l(:label_news_site_latest)%></h3>
19
        <%= render :partial => 'news/news', :locals => { :project => @site_project }, :collection => @site_news %>
20
21
        <%= link_to l(:label_news_more), { :controller => 'projects', :action => @site_project.identifier, :id => 'news' } %>
22 0:513646585e45 Chris
  </div>
23
  <% end %>
24
    <% if @projects.any? %>
25
        <div class="projects box">
26
        <h3><%=l(:label_project_latest)%></h3>
27
                <ul>
28
                <% for project in @projects %>
29
                  <% @project = project %>
30 335:7acd282bee3c chris
                        <li class="latest">
31 361:30f68ecfdde4 chris
                        <span class="title"><%= link_to_project project %></span>
32
                        <span class="time"><%= format_time(project.created_on)%></span>
33 335:7acd282bee3c chris
                        <%= render_project_short_description project %>
34 0:513646585e45 Chris
                        </li>
35
                <% end %>
36
    <% @project = nil %>
37
                </ul>
38 374:dcfde3922ec2 chris
        <%= link_to l(:label_projects_more), :controller => 'projects' %>
39 0:513646585e45 Chris
        </div>
40
        <% end %>
41
    <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
42
</div>
43
44
<% content_for :header_tags do %>
45
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
46
                                   :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
47 22:40f7cfd4df19 chris
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
48 0:513646585e45 Chris
                                   :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
49
<% end %>