Revision 1361:7c0909052511 app/controllers
| app/controllers/projects_controller.rb | ||
|---|---|---|
| 196 | 196 |
@issue_category ||= IssueCategory.new |
| 197 | 197 |
@member ||= @project.members.new |
| 198 | 198 |
@trackers = Tracker.sorted.all |
| 199 |
@repository ||= @project.repository |
|
| 199 | 200 |
@wiki ||= @project.wiki |
| 200 | 201 |
end |
| 201 | 202 |
|
| app/controllers/welcome_controller.rb | ||
|---|---|---|
| 24 | 24 |
def index |
| 25 | 25 |
@site_project = Project.find_by_identifier "soundsoftware-site" |
| 26 | 26 |
@site_news = [] |
| 27 |
@site_news = News.latest_for @site_project if @site_project
|
|
| 27 |
@site_news = News.latest_for(@site_project, 3) if @site_project
|
|
| 28 | 28 |
|
| 29 | 29 |
# tests if user is logged in to generate the tips of the day list |
| 30 | 30 |
if User.current.logged? |
Also available in: Unified diff