Project

General

Profile

Actions

Defect #5932

open

hook for :view_repositories_show_contextual is incomplete

Added by Arnaud Martel over 13 years ago. Updated over 13 years ago.

Status:
Reopened
Priority:
Normal
Assignee:
-
Category:
Plugin API
Target version:
-
Start date:
2010-07-21
Due date:
% Done:

0%

Estimated time:
Resolution:
Affected version:

Description

I wrote a plugin to add new commands in repository views (upload files, create directory and delete file/directory) and I noticed that :view_repositories_show_contextual hook lacks of 2 context parameters:
  • path
  • revision

As a "workaround", I patched the views (show.rhtml, entry.rhtml, changes.rhtml and annotate.rhtml) to replace:

<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project }) %>

with
<%= call_hook(:view_repositories_show_contextual, { :repository => @repository, :project => @project, :path => @path, :revision => @rev }) %>

but it would be better if included in the next release of Redmine...

Actions

Also available in: Atom PDF