app/helpers/groups_helper.rb
# popup showing of group detail
# "group" is group entity; however if this is a number, it is regarded as id of Group.
# "text" is text of link such as group.name or group.real_name; default is "group.real_name(group.name)"
popup showing of group detail
"group" is group entity; however if this is a number, it is regarded as id of Group.
popup showing of group detail " group " is group entity ; however if this is a number it is regarded as id of Group .
def group_detail_link(group, text = nil, options = {}, html_options = {})
    group?(group) or return "不明"
    text ||= "#{group.real_name}(#{group.name})"
    html_opt = 
      if registered?  
          html_options.merge(:popup => ["group_detail_link", "width=400, height=500, scrollbars= yes"])
      else
          html_options.merge(:onclick => "alert('グループ情報を見ることが出来るのはログインを行った登録ユーザのみです（セキュリティ規定参照のこと）．');", :href => "#")
      end
    call_for_detail(group, text, options, html_opt)
  end
def group_detail_link ( group , text = nil , options = { } , html_options = { } ) group? ( group ) or return "不明" text ||= "#{group.real_name}(#{group.name})" html_opt = if registered? html_options . merge ( :popup => [ "group_detail_link" , "width=400, height=500, scrollbars= yes" ] ) else html_options . merge ( :onclick => "alert('グループ情報を見ることが出来るのはログインを行った登録ユーザのみです（セキュリティ規定参照のこと）．');", :href => "#") end call_for_detail ( group , text , options , html_opt ) end
popup showing of group detail
"group" is group entity; however if this is a number, it is regarded as id of Group.
popup showing of group detail " group " is group entity ; however if this is a number it is regarded as id of Group .
# popup is one of html options not options as RAIL API describes. # current user is registered.
group
<not_specific>
text
<not_specific>
options
<not_specific>
html_options
<not_specific>