Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Deface for refresh notes in Redmine #222

Open
DolezalDavid opened this issue May 10, 2021 · 0 comments
Open

Use Deface for refresh notes in Redmine #222

DolezalDavid opened this issue May 10, 2021 · 0 comments

Comments

@DolezalDavid
Copy link

Hi all,
I'm trying use Deface for refreshing notes in Redmine via timer.

How it work on issue list (index):

Deface::Override.new :virtual_path  => 'issues/index',
                     :original      => '402b3096154c5706049c1de2f9fedeaa63f6b618',
                     :name          => 'add-refresh-link-to-issues-list',
                     :insert_top    => 'div.contextual',
                     :partial       => 'redmine_refresh/refresher'

But I don't know how to do it for notes, because notes are not selfstanding.

Issue has everytime different number (so I think the hash of :origin will be differetn also).
/issues/2314

and for me will be nice something like this:

Deface::Override.new :virtual_path  => 'issues/<number_of_issue?tab=notes',
                     :original      => '<hash>',
                     :name          => 'add-refresh-link-to-issues-list',
                     :insert_top    => 'div.contextual',
                     :partial       => 'redmine_refresh/refresher'

Any idea how to do this? :-)

Thanks for help

David

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant