Skip to content

Commit

Permalink
There no project_url helper method in redmine 1.0.1.stable
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Evtuhovich committed Nov 29, 2010
1 parent f1bc560 commit b4718bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/models/diff_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ def diff_notification(changeset)
:diff => diff,
:changeset => changeset,
:changeset_url => url_for(:controller => 'repositories', :action => 'diff',
:rev => changeset.revision))
:rev => changeset.revision),
:project_url => url_for(:controller => 'projects', :action => 'show', :id => project.id))

attachment 'text/plain' do |a|
a.filename = "changeset_rev_#{changeset.revision}.diff"
Expand Down
2 changes: 1 addition & 1 deletion app/views/diff_mailer/diff_notification.text.html.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
</head>
<body style="font-family: Verdana, sans-serif; font-size: 0.8em; color:#484848;">
<div>
<b>Project:</b> <%= link_to @project.name, project_url(@project) %><br />
<b>Project:</b> <%= link_to @project.name, @project_url %><br />
<b>Revision:</b> <%= link_to @changeset.revision, @changeset_url %> <br />
<b>Author:</b> <%= h(@author) %> <br />
<b>Summary:</b> <%= @changeset.short_comments %> <br />
Expand Down

0 comments on commit b4718bf

Please sign in to comment.