summaryrefslogtreecommitdiffstats
path: root/app/views/welcome
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-06-30 03:32:18 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-06-30 03:32:18 +0000
commit64d2221db526f695919eb9aba370e22ed3dc09f8 (patch)
treefa6aa5ffbf10e27808b50fd523e6ae0239616db2 /app/views/welcome
parent43bbda1966d2f666318e1339c3f42d34761ddbaa (diff)
downloadredmine-64d2221db526f695919eb9aba370e22ed3dc09f8.tar.gz
redmine-64d2221db526f695919eb9aba370e22ed3dc09f8.zip
Set @project so macros will work on the welcome and project list. #5781
Contributed by Holger Just git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3824 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/welcome')
-rw-r--r--app/views/welcome/index.rhtml2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/welcome/index.rhtml b/app/views/welcome/index.rhtml
index 279c35421..a0ada7cce 100644
--- a/app/views/welcome/index.rhtml
+++ b/app/views/welcome/index.rhtml
@@ -18,11 +18,13 @@
<h3><%=l(:label_project_latest)%></h3>
<ul>
<% for project in @projects %>
+ <% @project = project %>
<li>
<%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
<%= textilizable project.short_description, :project => project %>
</li>
<% end %>
+ <% @project = nil %>
</ul>
</div>
<% end %>