|
|
|
@ -39,6 +39,11 @@ See COPYRIGHT and LICENSE files for more details. |
|
|
|
|
<% @formatted_text = format_text (@content || @page.content), :text, attachments: @page.attachments %> |
|
|
|
|
<% description strip_tags(@formatted_text) %> |
|
|
|
|
|
|
|
|
|
<% content_for :header_tags do %> |
|
|
|
|
<meta name="required_script" content="print_handler" /> |
|
|
|
|
<% end %> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= toolbar title: title, html: {class: '-with-dropdown'} do %> |
|
|
|
|
<% if @editable %> |
|
|
|
|
<% if User.current.allowed_to? :edit_wiki_pages, @project %> |
|
|
|
@ -97,6 +102,11 @@ See COPYRIGHT and LICENSE files for more details. |
|
|
|
|
<% end %> |
|
|
|
|
<%= li_unless_nil(link_to_if_authorized(t(:label_history), {action: 'history', id: @page}, class: 'icon-context icon-activity-history')) %> |
|
|
|
|
<%= li_unless_nil(link_to_if_authorized(t(:button_manage_menu_entry), {controller: '/wiki_menu_items', action: 'edit', project_id: @project.identifier, id: @page}, class: 'icon-context icon-settings')) %> |
|
|
|
|
<li> |
|
|
|
|
<a class="icon-context icon-print op-wiki-context-print" title="<%= t('wiki.print_hint') %>"> |
|
|
|
|
<%= t(:button_print) %> |
|
|
|
|
</a> |
|
|
|
|
</li> |
|
|
|
|
<% if User.current.allowed_to?(:export_wiki_pages, @project) %> |
|
|
|
|
<section data-augmented-model-wrapper |
|
|
|
|
data-modal-class-name="wiki-export---modal"> |
|
|
|
|