%= render :partial => "/tr8n/admin/common/header" %>
<%= render :partial => "tabs", :locals => {:current_tab => "Translation Key Details"} %>
Translation Key Id
|
<%=@key.id %>
|
Access Key
|
<%=@key.key %>
|
Label
|
<%=@key.label %>
|
Description
|
<%=@key.description %>
|
Original Locale
|
<%=@key.locale %>
|
Admin
|
<%=@key.admin? %>
|
Created At
|
<%=@key.created_at %>
|
Updated At
|
<%=@key.updated_at %>
|
|
<%=link_to("view translations", "/tr8n/admin/translation/index?wf_c0=translation_key_id&wf_o0=is&wf_v0_0=#{@key.id}") %>
|
<%= link_to_function("Update", "tr8nLightbox.show('/tr8n/admin/translation_key/lb_update?key_id=#{@key.id}', {height:250})") %>
|
<%=link_to("delete", {:action => :delete, :key_id => @key.id, :source => :key}, {:confirm => "Are you sure you want to delete this key?"}) %>
|
<% if @key.translation_key_sources.any? %>
<%=link_to("view all", "/tr8n/admin/translation_key/sources}") %>
Sources Where This Key Appears
Source
|
Location
|
<% @key.translation_key_sources.each_with_index do |key_source, index| %>
<%=link_to(key_source.source.source, "/tr8n/admin/translation_key/key_sources?wf_c0=translation_source_id&wf_o0=is&wf_v0_0=#{key_source.source.id}") %>
|
<% if key_source.details %>
<% key_source.details.each do |key, value| %>
<%=link_to_function(value.first, "tr8nLightbox.show('/tr8n/admin/translation_key/lb_caller?key_source_id=#{key_source.id}&caller_key=#{key}', {height:550, width:1000})") %>
<% end %>
<% end %>
|
<% end %>
<% end %>
<% if @key.translation_key_comments.any? %>
<%=link_to("view all", "/tr8n/admin/translation_key/comments?wf_c0=translation_key_id&wf_o0=is&wf_v0_0=#{@key.id}") %>
Comments (top 20)
Language
|
Author
|
Created At
|
Message
|
|
<% @key.translation_key_comments[0..20].each_with_index do |comment, index| %>
<%=comment.language.english_name%> |
<%=link_to(comment.translator.name, :controller => "/tr8n/admin/translator", :action => :view, :translator_id => comment.translator.id) if comment.translator %> |
<%=comment.created_at%> |
<%=comment.toHTML%> |
<%=link_to("Delete", {:action => :delete_comment, :comment_id => comment.id}, {:confirm => "Are you sure you want to delete this comment?"}) %>
|
<% end %>
<% end %>
<% if @key.translation_key_locks.any? %>
<%=link_to("view all", "/tr8n/admin/translation_key/locks?wf_c0=translation_key_id&wf_o0=is&wf_v0_0=#{@key.id}") %>
Locks
Language
|
Translator
|
Updated At
|
Locked
|
<% @key.translation_key_locks.each_with_index do |lock, index| %>
<%=lock.language.english_name%> |
<%=link_to(lock.translator.name, :controller => "/tr8n/admin/translator", :action => :view, :translator_id => lock.translator.id) if lock.translator %> |
<%=lock.updated_at%> |
<%=lock.locked?%> |
<% end %>
<% end %>
<%= render :partial => "/tr8n/admin/common/footer" %>