Revision 912:5e80956cc792 app/views/welcome

View differences:

app/views/welcome/index.html.erb
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
  <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
13
</div>
14

  
15
<div class="splitcontentright">
16
  <% if @site_news.any? %>
17
  <div class="news box">
18
	<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
  </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
			<li class="latest">
31
			<span class="title"><%= link_to_project project %></span>
32
			<span class="time"><%= format_time(project.created_on)%></span>
33
			<%= render_project_short_description project %>
34
      </li>
35
    <% end %>
36
    <% @project = nil %>
37
    </ul>
38
	<%= link_to l(:label_projects_more), :controller => 'projects' %>
39
  </div>
40
  <% end %>
41
    <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
42
</div>
43

  
44
<% content_for :header_tags do %>
45
<%= stylesheet_link_tag 'scm' %>
46
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
47
                                   :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
48
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
49
                                   :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
50
<% end %>
app/views/welcome/index.rhtml
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
  <%= call_hook(:view_welcome_index_left, :projects => @projects) %>
13
</div>
14

  
15
<div class="splitcontentright">
16
  <% if @site_news.any? %>
17
  <div class="news box">
18
	<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
  </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
			<li class="latest">
31
			<span class="title"><%= link_to_project project %></span>
32
			<span class="time"><%= format_time(project.created_on)%></span>
33
			<%= render_project_short_description project %>
34
			</li>
35
		<% end %>
36
    <% @project = nil %>
37
		</ul>
38
	<%= link_to l(:label_projects_more), :controller => 'projects' %>
39
	</div>
40
	<% end %>
41
    <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
42
</div>	
43

  
44
<% content_for :header_tags do %>
45
<%= stylesheet_link_tag 'scm' %>
46
<%= auto_discovery_link_tag(:atom, {:controller => 'news', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
47
                                   :title => "#{Setting.app_title}: #{l(:label_news_latest)}") %>
48
<%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
49
                                   :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
50
<% end %>
app/views/welcome/robots.html.erb
1
User-agent: *
2
<% @projects.each do |p| -%>
3
Disallow: /projects/<%= p.to_param %>/repository
4
Disallow: /projects/<%= p.to_param %>/issues
5
Disallow: /projects/<%= p.to_param %>/activity
6
<% end -%>
7
Disallow: /issues/gantt
8
Disallow: /issues/calendar
9
Disallow: /activity
app/views/welcome/robots.rhtml
1
User-agent: *
2
<% @projects.each do |p| -%>
3
Disallow: /projects/<%= p.to_param %>/repository
4
Disallow: /projects/<%= p.to_param %>/issues
5
Disallow: /projects/<%= p.to_param %>/activity
6
<% end -%>
7
Disallow: /issues/gantt
8
Disallow: /issues/calendar
9
Disallow: /activity

Also available in: Unified diff