@@ -511,13 +511,13 @@ def render_projects_for_jump_box(projects, selected: nil, query: nil)
511
511
end
512
512
jump = params [ :jump ] . presence || current_menu_item
513
513
s = ( +'' ) . html_safe
514
- build_project_link = -> ( project , level = 0 ) {
514
+ build_project_link = -> ( project , level = 0 ) do
515
515
padding = level * 16
516
516
text = content_tag ( 'span' , project . name , :style => "padding-left:#{ padding } px;" )
517
517
s << link_to ( text , project_path ( project , :jump => jump ) ,
518
518
:title => project . name ,
519
519
:class => ( project == selected ? 'selected' : nil ) )
520
- }
520
+ end
521
521
[
522
522
[ bookmarked , :label_optgroup_bookmarks , true ] ,
523
523
[ recents , :label_optgroup_recents , false ] ,
@@ -706,7 +706,10 @@ def page_header_title
706
706
b << "\xe2 \x80 \xa6 "
707
707
ancestors = ancestors [ -2 , 2 ]
708
708
end
709
- b += ancestors . collect { |p | link_to_project ( p , { :jump => current_menu_item } , :class => 'ancestor' ) }
709
+ b +=
710
+ ancestors . collect do |p |
711
+ link_to_project ( p , { :jump => current_menu_item } , :class => 'ancestor' )
712
+ end
710
713
end
711
714
b << content_tag ( :span , h ( @project ) , class : 'current-project' )
712
715
if b . size > 1
@@ -1723,9 +1726,9 @@ def bulk_edit_error_messages(items)
1723
1726
messages [ message ] << item
1724
1727
end
1725
1728
end
1726
- messages . map { |message , items |
1729
+ messages . map do |message , items |
1727
1730
"#{ message } : " + items . map { |i | "##{ i . id } " } . join ( ', ' )
1728
- }
1731
+ end
1729
1732
end
1730
1733
1731
1734
def render_if_exist ( options = { } , locals = { } , &block )
0 commit comments