29 lines
1 KiB
Text
Executable file
29 lines
1 KiB
Text
Executable file
<div class="contextual">
|
|
<%= link_to_if_authorized(l(:button_edit), {:controller => 'glossary', :action => 'edit', :project_id => @project, :id => @term}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
|
|
<%= link_to_if_authorized l(:button_delete), {:controller => 'glossary', :action => 'destroy', :project_id => @project, :id => @term}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
|
|
</div>
|
|
|
|
<h2><%= l(:label_term) %> #<%= @term.id %></h2>
|
|
|
|
<div class="term" >
|
|
|
|
<h3><%=h @term.name %> </h3>
|
|
<%= render(:partial => "glossary/show_one", :object => @term) %>
|
|
|
|
<p class="author">
|
|
<%= authoring @term.created_on, @term.author %>.
|
|
<% if @term.created_on != @term.updated_on
|
|
if (@term.author_id == @term.updater_id) %>
|
|
<%= l(:label_updated_time, time_tag(@term.updated_on)).html_safe + '.' %>
|
|
<% else %>
|
|
<%= updated_by(@term.updated_on, @term.updater) + '.' %>
|
|
<% end %>
|
|
<% end %>
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
<%= render :partial => 'glossary/view_term' %>
|
|
|
|
<% html_title "##{@term.id}: #{@term.name}" -%>
|