Project

General

Profile

Defect #3583 » app.views.welcome.index.rhtml

Sample View - Chris McKee, 2009-07-03 18:13

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

    
3
<div class="splitcontentleft">
4
  <%= textilizable Setting.welcome_text %>
5
  <br />
6
  <hr />
7
  <div id="ecommerce" class="box">
8
	<!-- OUR CUSTOM SITE CONTENT -->
9
  </div>
10
  <hr />
11
  <div id="svn" class="box">
12
	<!-- OUR CUSTOM SITE CONTENT -->
13
  </div>
14
  <hr />
15
  <div id="email" class="box">
16
	<!-- OUR CUSTOM SITE CONTENT -->
17
  </div>
18
  <hr />
19
  <% if @news.any? %>
20
  <div class="box">
21
	<h3><%=l(:label_news_latest)%></h3>
22
		<%= render :partial => 'news/news', :collection => @news %>
23
		<%= link_to l(:label_news_view_all), :controller => 'news' %>
24
  </div>
25
  <% end %>
26
</div>
27

    
28
<div class="splitcontentright">
29
	<div class="box homebox">
30
	<h3 class="icon22 icon22-projects">Common Projects</h3>
31
		<!-- OUR CUSTOM SITE CONTENT -->
32
	</div>
33
</div>	
34

    
35

    
36
<% content_for :header_tags do %>
37
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
38
                                   :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
39
<%= auto_discovery_link_tag(:atom, {:controller => 'projects', :action => 'activity', :key => User.current.rss_key, :format => 'atom'},
40
                                   :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
41
<% end %>
42
<p class="clear">&nbsp;</p>
    (1-1/1)