Mercurial > hg > soundsoftware-site
diff app/views/layouts/base.rhtml @ 341:b6ec5451fd0d feature_118
Make the project title (h1 in top of page) a link to the project overview (fixes #118). Does not work for the "special" soundsoftware project, which uses image replacement rather than clickable text.
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Thu, 31 Mar 2011 11:12:48 +0100 |
parents | 6d10c3b6fe17 |
children | efa1e508bdef |
line wrap: on
line diff
--- a/app/views/layouts/base.rhtml Thu Mar 31 10:37:04 2011 +0100 +++ b/app/views/layouts/base.rhtml Thu Mar 31 11:12:48 2011 +0100 @@ -52,11 +52,16 @@ <h3 id="project-ancestors-title"><%= page_header_title[1] %></h3> <% end %> - <h1 id="project-title" + <h1 id="project-title" <% unless page_header_title[1].empty? %> style="margin-top: 0px; " <% end %> - ><%= page_header_title[0] %></h1> + ><% if display_main_menu?(@project) %> + <%= link_to_project(@project) %> + <% else %> + <%= page_header_title[0] %> + <% end %> + </h1> <% if display_main_menu?(@project) %> <div id="main-menu"> @@ -83,7 +88,7 @@ <div id="footer"> <div class="bgl"><div class="bgr"> - Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2010 Jean-Philippe Lang + Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> © 2006-2011 Jean-Philippe Lang </div></div> </div> </div>