id-name(position|count)
This commit is contained in:
parent
3b13183dbb
commit
2e3b44c830
|
@ -25,7 +25,7 @@ module JournalsHelper
|
||||||
links = []
|
links = []
|
||||||
if !journal.notes.blank?
|
if !journal.notes.blank?
|
||||||
links << link_to(l(:button_quote),
|
links << link_to(l(:button_quote),
|
||||||
{:controller => 'journals', :action => 'new', :id => issue, :journal_id => journal},
|
{:controller => 'journals', :action => 'new', :id => issue.id, :journal_id => journal},
|
||||||
:remote => true,
|
:remote => true,
|
||||||
:method => 'post',
|
:method => 'post',
|
||||||
:title => l(:button_quote)) if options[:reply_links]
|
:title => l(:button_quote)) if options[:reply_links]
|
||||||
|
|
|
@ -216,9 +216,9 @@ class Issue < ActiveRecord::Base
|
||||||
base_reload(*args)
|
base_reload(*args)
|
||||||
end
|
end
|
||||||
|
|
||||||
# def to_param
|
def to_param
|
||||||
# @to_param ||=
|
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self)}|#{self.project.issues.count})"#.parameterize
|
||||||
# end
|
end
|
||||||
|
|
||||||
# Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
|
# Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
|
||||||
def available_custom_fields
|
def available_custom_fields
|
||||||
|
|
|
@ -87,7 +87,7 @@ end %>
|
||||||
<% if @issue.description? %>
|
<% if @issue.description? %>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<div class="contextual">
|
<div class="contextual">
|
||||||
<%= link_to l(:button_quote), quoted_issue_path(@issue), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
|
<%= link_to l(:button_quote), quoted_issue_path(@issue.id), :remote => true, :method => 'post', :class => 'icon icon-comment' if authorize_for('issues', 'edit') %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><strong><%=l(:field_description)%></strong></p>
|
<p><strong><%=l(:field_description)%></strong></p>
|
||||||
|
|
Loading…
Reference in New Issue