Project

General

Profile

Actions

Feature #2073

closed

Hook for repository page

Added by Marina Tarazanova over 15 years ago. Updated over 15 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin API
Target version:
Start date:
2008-10-23
Due date:
% Done:

100%

Estimated time:
Resolution:
Fixed

Description

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 => Herve Harster}) %>

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

Actions #1

Updated by Eric Davis over 15 years ago

  • Due date deleted (2008-10-25)
  • Status changed from New to Closed
  • Target version set to 0.8
  • % Done changed from 0 to 100
  • Resolution set to Fixed

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:

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
Actions

Also available in: Atom PDF