プロジェクト

全般

プロフィール

« | » 

リビジョン 04643542

Martin DENIZET さんが13年以上前に追加

compatible to Redmine1.4 and add Frech language (merge from Martin's github)

差分を表示:

lib/term_link_helper.rb
def term_link_new(name, proj)
link_to(name + '?',
{:controller => 'glossary', :action => 'new', :id => proj,
{:controller => 'glossary', :action => 'new', :project_id => proj,
:new_term_name => CGI::escapeHTML(name)},
{:class=>'new'})
end
def term_link(term)
str = link_to(term.name, :controller => 'glossary', :action => 'show', :id => term.project,
:term_id => term)
str = link_to(term.name, :controller => 'glossary', :action => 'show',
:project_id => term.project, :id => term.id)
unless (term.abbr_whole.empty?)
str = content_tag(:abbr, str, :title=>term.abbr_whole)
end

他の形式にエクスポート: Unified diff