"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/helpers/projects_helper.rb" between
redmine-4.1.0.tar.gz and redmine-4.1.1.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

projects_helper.rb  (redmine-4.1.0):projects_helper.rb  (redmine-4.1.1)
skipping to change at line 173 skipping to change at line 173
if bookmarked if bookmarked
css << "icon-bookmark" css << "icon-bookmark"
method = "delete" method = "delete"
text = l(:button_project_bookmark_delete) text = l(:button_project_bookmark_delete)
else else
css << "icon-bookmark-off" css << "icon-bookmark-off"
method = "post" method = "post"
text = l(:button_project_bookmark) text = l(:button_project_bookmark)
end end
url = bookmark_project_url(project) url = bookmark_project_path(project)
link_to text, url, remote: true, method: method, class: css link_to text, url, remote: true, method: method, class: css
end end
def grouped_project_list(projects, query, &block) def grouped_project_list(projects, query, &block)
ancestors = [] ancestors = []
grouped_query_results(projects, query) do |project, group_name, group_count, group_totals| grouped_query_results(projects, query) do |project, group_name, group_count, group_totals|
ancestors.pop while ancestors.any? && !project.is_descendant_of?(ancestors .last) ancestors.pop while ancestors.any? && !project.is_descendant_of?(ancestors .last)
yield project, ancestors.size, group_name, group_count, group_totals yield project, ancestors.size, group_name, group_count, group_totals
ancestors << project unless project.leaf? ancestors << project unless project.leaf?
end end
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)