Patch #20063 » 20063-Redmine-3.4.1.patch
app/helpers/application_helper.rb Sun Jul 09 07:18:26 2017 +0000 → app/helpers/application_helper.rb Thu Jul 13 11:36:42 2017 +0200 | ||
---|---|---|
796 | 796 |
# |
797 | 797 |
# Examples: |
798 | 798 |
# Issues: |
799 |
# #52 -> Link to issue #52 |
|
799 |
# #52 -> Link to issue #52, showing the title over the issue number |
|
800 |
# issue#52 -> Link to issue with id 52, expanding the title in the link |
|
800 | 801 |
# Changesets: |
801 | 802 |
# r52 -> Link to revision 52 |
802 | 803 |
# commit:a85130f -> Link to scmid starting with a85130f |
... | ... | |
896 | 897 |
:class => issue.css_classes, |
897 | 898 |
:title => "#{issue.tracker.name}: #{issue.subject.truncate(100)} (#{issue.status.name})") |
898 | 899 |
end |
900 |
when 'issue' |
|
901 |
if oid.to_s == identifier && |
|
902 |
issue = Issue.visible.find_by_id(oid) |
|
903 |
anchor = comment_id ? "note-#{comment_id}" : nil |
|
904 |
|
|
905 |
link = link_to("##{oid}#{comment_suffix}: (#{issue.tracker.name}) #{issue.subject.truncate(100)} (#{issue.status.name})", |
|
906 |
issue_url(issue, :only_path => only_path, :anchor => anchor), |
|
907 |
:class => issue.css_classes) |
|
908 |
end |
|
899 | 909 |
when 'document' |
900 | 910 |
if document = Document.visible.find_by_id(oid) |
901 | 911 |
link = link_to(document.title, document_url(document, :only_path => only_path), :class => 'document') |
... | ... | |
1002 | 1012 |
(?<leading>[\s\(,\-\[\>]|^) |
1003 | 1013 |
(?<esc>!)? |
1004 | 1014 |
(?<project_prefix>(?<project_identifier>[a-z0-9\-_]+):)? |
1005 |
(?<prefix>attachment|document|version|forum|news|message|project|commit|source|export|user)? |
|
1015 |
(?<prefix>issue|attachment|document|version|forum|news|message|project|commit|source|export|user)?
|
|
1006 | 1016 |
( |
1007 | 1017 |
( |
1008 | 1018 |
(?<sep1>\#)| |