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 @ 442:753f1380d6bc

History | View | Annotate | Download (1.73 KB)

1
<% if not Setting.notifications_text.empty? %>
2
  <div class="notifications flash error">
3
    <%= textilizable Setting.notifications_text %>
4
  </div>
5
<% end %>
6

    
7
<h2><%= l(:label_home_heading) %></h2>
8

    
9
<div class="splitcontentleft">
10
  <%= textilizable Setting.welcome_text %>
11
  
12
  <% if @news.any? %>
13
  <div class="news box">
14
        <h3><%=l(:label_news_latest)%></h3>
15
                <%= render :partial => 'news/news', :collection => @news %>
16
                <%= link_to l(:label_news_view_all), :controller => 'news' %>
17
  </div>
18
  <% end %>
19
  <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
20
</div>
21

    
22
<div class="splitcontentright">
23
  <% if not @tipsoftheday.empty? %>
24
    <div class="newsoftheday box">
25
          <h3><%=l(:label_tipoftheday)%></h3>
26
          <%= textilizable @tipsoftheday %>
27
    </div>
28
  <% end %>
29

    
30
    <% if @projects.any? %>
31
        <div class="projects box">
32
        <h3><%=l(:label_project_latest)%></h3>
33
                <ul>
34
                <% for project in @projects %>
35
                  <% @project = project %>
36
                        <li>
37
                        <%= link_to_project project %> (<%= format_time(project.created_on) %>)
38
                        <%= textilizable project.short_description, :project => project %>
39
                        </li>
40
                <% end %>
41
    <% @project = nil %>
42
                </ul>
43
        </div>
44
        <% end %>
45
    <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
46
</div>        
47

    
48
<% content_for :header_tags do %>
49
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
50
                                   :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
51
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
52
                                   :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
53
<% end %>