"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "app/helpers/application_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.

application_helper.rb  (redmine-4.1.0):application_helper.rb  (redmine-4.1.1)
skipping to change at line 1042 skipping to change at line 1042
elsif sep == '#' || sep == '##' elsif sep == '#' || sep == '##'
oid = identifier.to_i oid = identifier.to_i
case prefix case prefix
when nil when nil
if oid.to_s == identifier && if oid.to_s == identifier &&
issue = Issue.visible.find_by_id(oid) issue = Issue.visible.find_by_id(oid)
anchor = comment_id ? "note-#{comment_id}" : nil anchor = comment_id ? "note-#{comment_id}" : nil
url = issue_url(issue, :only_path => only_path, :anchor => ancho r) url = issue_url(issue, :only_path => only_path, :anchor => ancho r)
link = link =
if sep == '##' if sep == '##'
link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}", link_to("#{issue.tracker.name} ##{oid}#{comment_suffix}: #{i ssue.subject}",
url, url,
:class => issue.css_classes, :class => issue.css_classes,
:title => "#{issue.tracker.name}: #{issue.subject.tr uncate(100)} (#{issue.status.name})") + ": #{issue.subject}" :title => "#{l(:field_status)}: #{issue.status.name} ")
else else
link_to("##{oid}#{comment_suffix}", link_to("##{oid}#{comment_suffix}",
url, url,
:class => issue.css_classes, :class => issue.css_classes,
:title => "#{issue.tracker.name}: #{issue.subject.tr uncate(100)} (#{issue.status.name})") :title => "#{issue.tracker.name}: #{issue.subject.tr uncate(100)} (#{issue.status.name})")
end end
elsif identifier == 'note' elsif identifier == 'note'
link = link_to("#note-#{comment_id}", "#note-#{comment_id}") link = link_to("#note-#{comment_id}", "#note-#{comment_id}")
end end
when 'document' when 'document'
skipping to change at line 1418 skipping to change at line 1418
def link_to_context_menu def link_to_context_menu
link_to l(:button_actions), '#', title: l(:button_actions), class: 'icon-onl y icon-actions js-contextmenu' link_to l(:button_actions), '#', title: l(:button_actions), class: 'icon-onl y icon-actions js-contextmenu'
end end
# Helper to render JSON in views # Helper to render JSON in views
def raw_json(arg) def raw_json(arg)
arg.to_json.to_s.gsub('/', '\/').html_safe arg.to_json.to_s.gsub('/', '\/').html_safe
end end
def back_url
url = params[:back_url]
if url.nil? && referer = request.env['HTTP_REFERER']
url = CGI.unescape(referer.to_s)
# URLs that contains the utf8=[checkmark] parameter added by Rails are
# parsed as invalid by URI.parse so the redirect to the back URL would
# not be accepted (ApplicationController#validate_back_url would return
# false)
url.gsub!(/(\?|&)utf8=\u2713&?/, '\1')
end
url
end
def back_url_hidden_field_tag def back_url_hidden_field_tag
url = back_url url = validate_back_url(back_url)
hidden_field_tag('back_url', url, :id => nil) unless url.blank? hidden_field_tag('back_url', url, :id => nil) unless url.blank?
end end
def cancel_button_tag(fallback_url) def cancel_button_tag(fallback_url)
url = back_url.blank? ? fallback_url : back_url url = validate_back_url(back_url) || fallback_url
link_to l(:button_cancel), url link_to l(:button_cancel), url
end end
def check_all_links(form_name) def check_all_links(form_name)
link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") + link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
" | ".html_safe + " | ".html_safe +
link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)") link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
end end
def toggle_checkboxes_link(selector) def toggle_checkboxes_link(selector)
 End of changes. 5 change blocks. 
17 lines changed or deleted 4 lines changed or added

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