プロジェクト

全般

プロフィール

Vote #64033

完了

Hook for repository page

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Plugin API_20
対象バージョン:
開始日:
2008/10/23
期日:
進捗率:

100%

予定工数:
category_id:
20
version_id:
2
issue_org_id:
2073
author_id:
2408
assigned_to_id:
5
comments:
1
status_id:
5
tracker_id:
2
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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>

--------------------------------------------------------------------------------

Admin Redmine さんが3年以上前に更新

  • カテゴリPlugin API_20 にセット
  • 対象バージョン0.8_2 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0