Vote #64033
完了Hook for repository page
100%
説明
I've created a small plugin for Redmine.
It adds a link "Synhronize with PRO", which laгnches a script on server of my customers.
So could you please add a hook on the respositiry page show.rhtml just after the link "Statistics":
<%= call_hook(:view_project_repository_link, { :project => @project}) %>
And for english nd russian translation of the link name:
label_synhronize_with_pro: Synhronize with PRO - to en.yml
label_synhronize_with_pro: Синхронизировать с PRO - to ru.yml
journals
I've added the hook called @:view_repositories_show_contextual@ in r1948. For example, to create a link to Google you can do this in your plugin:
<pre><code class="ruby">class MyClassNameForHooks < Redmine::Hook::ViewListener
def view_repositories_show_contextual(context = { })
link_to("This is a hook on #{context[:repository].id} with a link to Google", "http://google.com")
end
end
</code></pre>
--------------------------------------------------------------------------------