Project

General

Profile

Defect #2573 » index.rhtml

Remine 0.7.4 fixed - Arkady Marchenko, 2009-01-24 16:47

 
1
<h2><%= l(:label_home) %></h2>
2

    
3
<div class="splitcontentleft">
4
  <%= textilizable Setting.welcome_text %>
5
  <% if @news.any? %>
6
  <div class="box">
7
	<h3><%=l(:label_news_latest)%></h3>
8
		<%= render :partial => 'news/news', :collection => @news %>
9
		<%= link_to l(:label_news_view_all), :controller => 'news' %>
10
  </div>
11
  <% end %>
12
</div>
13

    
14
<div class="splitcontentright">
15
    <% if @projects.any? %>
16
	<div class="box">
17
	<h3 class="icon22 icon22-projects"><%=l(:label_project_latest)%></h3>
18
		<ul>
19
		<% for project in @projects %>
20
			<li>
21
			<%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)<br/>
22
			<%= textilizable project.short_description, :project => project %>
23
			</li>
24
		<% end %>
25
		</ul>
26
	</div>
27
	<% end %>
28
</div>	
29

    
30
<% content_for :header_tags do %>
31
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
32
                                   :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
33
<%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :key => User.current.rss_key, :format => 'atom'},
34
                                   :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
35
<% end %>
(3-3/4)