commandprompt / redmine_pastebin

A real pastebin plugin for Redmine. At last!
Other
33 stars 16 forks source link

How to refer pastes in Wiki and issues? #20

Closed jwalkerbg closed 11 years ago

jwalkerbg commented 11 years ago

How to refer pastes in Wiki and issues? Is there some macro defined?

a1exsh commented 11 years ago

Well, this feature was on my list, but I never actually get to implement it. I think something like {paste:###} wiki-macro should work.

a1exsh commented 11 years ago

Actually, it was easier than I thought. Please see: e6d46c8

jwalkerbg commented 11 years ago

Is it easy to add paste's title (if any available) as title of the link?

a1exsh commented 11 years ago

On Mon, Aug 19, 2013 at 10:33 PM, Ivan Cenov notifications@github.comwrote:

Is it easy to add paste's title (if any available) as title of the link?

You mean the title attr in HTML? Yes, didn't appear to me, but it might be useful.

jwalkerbg commented 11 years ago

Yes, I mean this:

<!a href="http://redmine.ourcompany.com/pastes/10">I mean this<!/a>

"I mean this" is content of :paste_title. (I put '!' so as to github not render http link.)

a1exsh commented 11 years ago

OK, that makes sense. Please see this commit: 9eebf3b