Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 331
- Log:
Don't always attempt to link back to the root page if already there.
Part of a general navigation policy change in the March 2011 update.
- Author:
- rool
- Date:
- Sat Mar 19 17:11:20 +0000 2011
- Size:
- 467 Bytes
1 | # Methods added to this helper will be available to all templates in the application. |
2 | module ApplicationHelper |
3 | |
4 | def show_page_title |
5 | !@user.nil? && !@user.company.blank? ? @user.company : 'Photo gallery' |
6 | end |
7 | |
8 | def show_page_nav |
9 | user = User.find_first |
10 | return 'Photo gallery' if user.nil? |
11 | if ( @project ) |
12 | nav = link_to(user.company + ':', :controller => '/') + ' ' + @project.name |
13 | else |
14 | nav = user.company |
15 | end |
16 | nav |
17 | end |
18 | end |