##// END OF EJS Templates
Display the last 30 days on the activity view rather than the current month....
Display the last 30 days on the activity view rather than the current month. Number of days can be configured in the application settings. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1196 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1009:bb8d360188b6
r1182:bbe8ea29e8d3
Show More
_project_selector.rhtml
12 lines | 750 B | text/html+ruby | RhtmlLexer
/ app / views / layouts / _project_selector.rhtml
Jean-Philippe Lang
Application layout refactored....
r736 <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %>
<select onchange="if (this.value != '') { window.location = this.value; }">
Jean-Philippe Lang
Set doctype to transitional. Fixed a few non matching tags in views....
r1009 <option selected="selected"><%= l(:label_jump_to_a_project) %></option>
<option disabled="disabled">---</option>
Jean-Philippe Lang
Application layout refactored....
r736 <% user_projects_by_root.keys.sort.each do |root| %>
Jean-Philippe Lang
Project name format limitation removed (name can now contain any character)....
r936 <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root)) %>
Jean-Philippe Lang
Application layout refactored....
r736 <% user_projects_by_root[root].sort.each do |project| %>
<% next if project == root %>
Jean-Philippe Lang
Project name format limitation removed (name can now contain any character)....
r936 <%= content_tag('option', ('&#187; ' + h(project.name)), :value => url_for(:controller => 'projects', :action => 'show', :id => project)) %>
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
<% end %>
</select>