We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31959ec commit e6d46c8Copy full SHA for e6d46c8
init.rb
@@ -48,6 +48,14 @@
48
search.register :pastes
49
end
50
51
+Redmine::WikiFormatting::Macros.register do
52
+ desc "A link to paste by id: {{paste(NNN)}}"
53
+ macro :paste do |obj, args|
54
+ id = args.first
55
+ link_to("paste ##{id}", paste_path(id)) unless id.blank?
56
+ end
57
+end
58
+
59
prepare_block = Proc.new do
60
Project.send(:include, RedminePastebin::ProjectPastesPatch)
61
User.send(:include, RedminePastebin::UserPastesPatch)
0 commit comments