To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / welcome / index.html.erb @ 912:5e80956cc792
History | View | Annotate | Download (1.82 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 | 0:513646585e45 | 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 | 22:40f7cfd4df19 | 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 | 22:40f7cfd4df19 | chris | </div>
|
| 23 | <% end %>
|
||
| 24 | 0:513646585e45 | Chris | <% if @projects.any? %>
|
| 25 | 909:cbb26bc654de | Chris | <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 | 909:cbb26bc654de | Chris | </li>
|
| 35 | <% end %>
|
||
| 36 | 0:513646585e45 | Chris | <% @project = nil %>
|
| 37 | 909:cbb26bc654de | Chris | </ul>
|
| 38 | 374:dcfde3922ec2 | chris | <%= link_to l(:label_projects_more), :controller => 'projects' %>
|
| 39 | 909:cbb26bc654de | Chris | </div>
|
| 40 | <% end %>
|
||
| 41 | 0:513646585e45 | Chris | <%= call_hook(:view_welcome_index_right, :projects => @projects) %>
|
| 42 | 909:cbb26bc654de | Chris | </div>
|
| 43 | 0:513646585e45 | Chris | |
| 44 | <% content_for :header_tags do %>
|
||
| 45 | 507:0c939c159af4 | Chris | <%= stylesheet_link_tag 'scm' %>
|
| 46 | 0:513646585e45 | Chris | <%= 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 | 22:40f7cfd4df19 | chris | <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :key => User.current.rss_key, :format => 'atom'},
|
| 49 | 0:513646585e45 | Chris | :title => "#{Setting.app_title}: #{l(:label_activity)}") %>
|
| 50 | <% end %> |