Project

General

Profile

Add Flattr buttons?

Added by Richard Körber over 13 years ago

I would like to add Flattr buttons to my projects on a Redmine installation.

For now I was able to add a static button to each project's wiki by using the Wiki Extensions Plugin's "SideBar" page.

Anyhow I would prefer to add dynamic buttons. To do so, I would need to also add JavaScript to the "SideBar" page. How can I do so? I found no way to properly escape JavaScript content with Textile.

Is there a Flattr plugin planned for Redmine?

Thanks in advance!


Replies (1)

RE: Add Flattr buttons? - Added by Felix Schäfer over 13 years ago

Richard Körber wrote:

Anyhow I would prefer to add dynamic buttons. To do so, I would need to also add JavaScript to the "SideBar" page. How can I do so? I found no way to properly escape JavaScript content with Textile.

You can't, all textile output is html escaped.

Is there a Flattr plugin planned for Redmine?

No.

You could add your button to source:/trunk/app/views/wiki/_sidebar.rhtml for example (erb is "html with ruby stuff between < % % > (without the extra spaces)").

    (1-1/1)