Skip to content

Use Deface for refresh notes in Redmine #222

Description

@DolezalDavid

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions