@@ -306,7 +306,7 module ApplicationHelper | |||||
306 | def principals_options_for_select(collection, selected=nil) |
|
306 | def principals_options_for_select(collection, selected=nil) | |
307 | s = '' |
|
307 | s = '' | |
308 | if collection.include?(User.current) |
|
308 | if collection.include?(User.current) | |
309 | s << content_tag('option', "<< #{l(:label_me)} >>", :value => User.current.id) |
|
309 | s << content_tag('option', "<< #{l(:label_me)} >>".html_safe, :value => User.current.id) | |
310 | end |
|
310 | end | |
311 | groups = '' |
|
311 | groups = '' | |
312 | collection.sort.each do |element| |
|
312 | collection.sort.each do |element| | |
@@ -547,7 +547,7 module ApplicationHelper | |||||
547 | while tag = tags.pop |
|
547 | while tag = tags.pop | |
548 | parsed << "</#{tag}>" |
|
548 | parsed << "</#{tag}>" | |
549 | end |
|
549 | end | |
550 |
parsed |
|
550 | parsed | |
551 | end |
|
551 | end | |
552 |
|
552 | |||
553 | def parse_inline_attachments(text, project, obj, attr, only_path, options) |
|
553 | def parse_inline_attachments(text, project, obj, attr, only_path, options) | |
@@ -564,9 +564,9 module ApplicationHelper | |||||
564 | if !desc.blank? && alttext.blank? |
|
564 | if !desc.blank? && alttext.blank? | |
565 | alt = " title=\"#{desc}\" alt=\"#{desc}\"" |
|
565 | alt = " title=\"#{desc}\" alt=\"#{desc}\"" | |
566 | end |
|
566 | end | |
567 |
"src=\"#{image_url}\"#{alt}" |
|
567 | "src=\"#{image_url}\"#{alt}" | |
568 | else |
|
568 | else | |
569 |
m |
|
569 | m | |
570 | end |
|
570 | end | |
571 | end |
|
571 | end | |
572 | end |
|
572 | end | |
@@ -618,10 +618,10 module ApplicationHelper | |||||
618 | link_to(title.present? ? title.html_safe : h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new'))) |
|
618 | link_to(title.present? ? title.html_safe : h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new'))) | |
619 | else |
|
619 | else | |
620 | # project or wiki doesn't exist |
|
620 | # project or wiki doesn't exist | |
621 |
all |
|
621 | all | |
622 | end |
|
622 | end | |
623 | else |
|
623 | else | |
624 |
all |
|
624 | all | |
625 | end |
|
625 | end | |
626 | end |
|
626 | end | |
627 | end |
|
627 | end | |
@@ -786,7 +786,7 module ApplicationHelper | |||||
786 | end |
|
786 | end | |
787 | end |
|
787 | end | |
788 | end |
|
788 | end | |
789 |
(leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}")) |
|
789 | (leading + (link || "#{project_prefix}#{prefix}#{repo_prefix}#{sep}#{identifier}#{comment_suffix}")) | |
790 | end |
|
790 | end | |
791 | end |
|
791 | end | |
792 |
|
792 | |||
@@ -795,14 +795,15 module ApplicationHelper | |||||
795 | def parse_sections(text, project, obj, attr, only_path, options) |
|
795 | def parse_sections(text, project, obj, attr, only_path, options) | |
796 | return unless options[:edit_section_links] |
|
796 | return unless options[:edit_section_links] | |
797 | text.gsub!(HEADING_RE) do |
|
797 | text.gsub!(HEADING_RE) do | |
|
798 | heading = $1 | |||
798 | @current_section += 1 |
|
799 | @current_section += 1 | |
799 | if @current_section > 1 |
|
800 | if @current_section > 1 | |
800 | content_tag('div', |
|
801 | content_tag('div', | |
801 | link_to(image_tag('edit.png'), options[:edit_section_links].merge(:section => @current_section)), |
|
802 | link_to(image_tag('edit.png'), options[:edit_section_links].merge(:section => @current_section)), | |
802 | :class => 'contextual', |
|
803 | :class => 'contextual', | |
803 |
:title => l(:button_edit_section)) + |
|
804 | :title => l(:button_edit_section)) + heading.html_safe | |
804 | else |
|
805 | else | |
805 |
|
|
806 | heading | |
806 | end |
|
807 | end | |
807 | end |
|
808 | end | |
808 | end |
|
809 | end |
General Comments 0
You need to be logged in to leave comments.
Login now