remove Wiki header functionality

Improved header support is now available in the Redmine Reporting plugin.
This commit is contained in:
Tobias Stenzel 2018-09-19 06:53:22 +00:00
parent 6b2e03b474
commit 7f5ff00359
10 changed files with 0 additions and 32 deletions

View File

@ -7,18 +7,6 @@ module AdditionalsWikiPdfHelper
pdf.alias_nb_pages
pdf.footer_date = format_date(User.current.today)
pdf.add_page
if Additionals.settings[:wiki_pdf_header].present?
pdf.SetFontStyle('', 9)
pdf.RDMwriteFormattedCell(100,
5,
'',
'',
textilizable(Additionals.settings[:wiki_pdf_header],
only_path: false,
edit_section_links: false,
headings: false,
inline_attachments: false))
end
unless Additionals.setting?(:wiki_pdf_remove_title)
pdf.SetFontStyle('B', 11)
pdf.RDMMultiCell(190, 5,

View File

@ -22,11 +22,6 @@ p
br
h3 = l(:label_pdf_wiki_settings)
p
= content_tag(:label, l(:label_wiki_pdf_header))
= text_area_tag 'settings[wiki_pdf_header]', @settings[:wiki_pdf_header], class: 'wiki-edit', rows: 10
em.info
= l(:wiki_pdf_header_info)
p
= content_tag(:label, l(:label_wiki_pdf_remove_title))
= check_box_tag 'settings[wiki_pdf_remove_title]', 1, @settings[:wiki_pdf_remove_title].to_i == 1

View File

@ -126,7 +126,6 @@ de:
label_user_list: "Benutzerliste"
label_web_apis: Web APIs
label_weekly: wöchentlich
label_wiki_pdf_header: Wiki PDF Kopfzeile
label_wiki_pdf_remove_attachments: Dateianhänge nicht anzeigen
label_wiki_pdf_remove_title: Wiki Titel nicht anzeigen
label_yearly: jährlich
@ -158,7 +157,6 @@ de:
top_projects_help: Hier kannst Du Inhalte und Einstellungen zu Projekten festlegen.
top_rules_help: "Hier können Regeln konfiguriert werden, die den Umgang mit Tickets festlegen. Sobald eine Regel aktiviert wurde, wirkt sich diese auf alle Projekte aus."
top_wiki_help: Hier kannst Du Inhalte und Einstellungen bzg. der Wiki festlegen.
wiki_pdf_header_info: Dieser Textblock wir auf der ersten Seite vor dem eigentlichen Inhalt der Wiki Seite in der PDF Ansicht angezeigt. Die Makros sind hier nur eingeschränkt einsetzbar.
wiki_pdf_remove_attachments_info: Wenn aktiv, werden die an der Wiki Seite angehängten Dateien nicht in der PDF Ansicht angezeigt.
wiki_pdf_remove_title_info: Wenn aktiv, wird der Wiki Titel nicht in der PDF Ansicht angezeigt.
label_help_integration: Online Hilfe Integration

View File

@ -126,7 +126,6 @@ en:
label_user_list: "User list"
label_web_apis: Web APIs
label_weekly: weekly
label_wiki_pdf_header: Wiki PDF header
label_wiki_pdf_remove_attachments: Remove attachments from PDF view
label_wiki_pdf_remove_title: Remove Wiki title from PDF view
label_yearly: yearly
@ -158,7 +157,6 @@ en:
top_projects_help: Here you can define contents and settings for your project page.
top_rules_help: "Here you can define rules, which are used in issues of all projects."
top_wiki_help: Here you can define contents and settings for your Wiki.
wiki_pdf_header_info: This text block will be displayed on the first page before the regular Wiki content in the PDF view. Macro use is very restricted, here.
wiki_pdf_remove_attachments_info: When active the attached Wiki files will not be displayed in PDF view.
wiki_pdf_remove_title_info: When active the Wiki title info will not be displayed in PDF view.
label_help_integration: Online help integration

View File

@ -126,7 +126,6 @@ fr:
label_user_list: "User list"
label_web_apis: Web APIs
label_weekly: hebdomadaire
label_wiki_pdf_header: Wiki PDF header
label_wiki_pdf_remove_attachments: "Supprimer les pièces jointes de la vue PDF"
label_wiki_pdf_remove_title: "Supprimer le titre du wiki de la vue PDF"
label_yearly: annuellement
@ -158,7 +157,6 @@ fr:
top_projects_help: "Ici, vous pouvez définir le contenu et les paramètres de votre page de projet."
top_rules_help: "Ici, vous pouvez définir des règles, qui sont utilisées dans les questions de tous les projets."
top_wiki_help: "Ici vous pouvez définir le contenu et les paramètres de votre Wiki."
wiki_pdf_header_info: "Ce bloc de texte sera affiché sur la première page avant le contenu Wiki normal dans la vue PDF. L'utilisation des macros est très restreinte, ici."
wiki_pdf_remove_attachments_info: "Lorsqu'ils sont actifs, les fichiers Wiki joints ne seront pas affichés en vue PDF."
wiki_pdf_remove_title_info: "Lorsqu'elle est active, l'information sur le titre du wiki ne sera pas affichée dans la vue PDF."
label_help_integration: Online help integration

View File

@ -126,7 +126,6 @@ it:
label_user_list: "User list"
label_web_apis: Web APIs
label_weekly: settimanalmente
label_wiki_pdf_header: Wiki PDF header
label_wiki_pdf_remove_attachments: Remove attachments from PDF view
label_wiki_pdf_remove_title: Remove Wiki title from PDF view
label_yearly: per anno
@ -158,7 +157,6 @@ it:
top_projects_help: "Qui è possibile definire i contenuti e le impostazioni per la pagina del progetto."
top_rules_help: "Here you can define rules, which are used in issues of all projects."
top_wiki_help: "Qui puoi definire contenuti e impostazioni per il tuo Wiki."
wiki_pdf_header_info: This text block will be displayed on the first page before the regular Wiki content in the PDF view. Macro use is very restricted, here.
wiki_pdf_remove_attachments_info: "Quando è attivo, il Wiki file allegati non verranno visualizzati nella vista PDF."
wiki_pdf_remove_title_info: "Quando è attivo, le informazioni sul titolo del Wiki non verranno visualizzate nella vista PDF."
label_help_integration: Online help integration

View File

@ -126,7 +126,6 @@ ja:
label_user_list: "ユーザ一覧"
label_web_apis: Web APIs
label_weekly: weekly
label_wiki_pdf_header: Wiki PDF header
label_wiki_pdf_remove_attachments: Remove attachments from PDF view
label_wiki_pdf_remove_title: Remove Wiki title from PDF view
label_yearly: yearly
@ -158,7 +157,6 @@ ja:
top_projects_help: Here you can define contents and settings for your project page.
top_rules_help: "Here you can define rules, which are used in issues of all projects."
top_wiki_help: Here you can define contents and settings for your Wiki.
wiki_pdf_header_info: This text block will be displayed on the first page before the regular Wiki content in the PDF view. Macro use is very restricted, here.
wiki_pdf_remove_attachments_info: When active the attached Wiki files will not be displayed in PDF view.
wiki_pdf_remove_title_info: When active the Wiki title info will not be displayed in PDF view.
label_help_integration: Online help integration

View File

@ -126,7 +126,6 @@
label_user_list: "用戶列表"
label_web_apis: Web APIs
label_weekly: "每周"
label_wiki_pdf_header: "Wiki PDF 頁首"
label_wiki_pdf_remove_attachments: "在 PDF 中刪除附件"
label_wiki_pdf_remove_title: "在 PDF 中刪除標題"
label_yearly: "每年"
@ -158,7 +157,6 @@
top_projects_help: "您可以在此自訂專案清單頁的內容和設定。"
top_rules_help: "您可以在此自訂議題處理的相關規則。"
top_wiki_help: "您可以在此自訂Wiki的內容和設定。"
wiki_pdf_header_info: "該訊息將顯示在PDF第一頁頁首。此處macros指令支援有限。"
wiki_pdf_remove_attachments_info: "當啟用時Wiki附件將不會顯示在PDF中。"
wiki_pdf_remove_title_info: "當啟用時Wiki標題訊息不會顯示在PDF中"
label_help_integration: Online help integration

View File

@ -126,7 +126,6 @@ zh:
label_user_list: "用户列表"
label_web_apis: Web APIs
label_weekly: 每周
label_wiki_pdf_header: Wiki PDF 页头
label_wiki_pdf_remove_attachments: 从 PDF 中删除附件
label_wiki_pdf_remove_title: 从 PDF 中删除 WIKI 标题
label_yearly: 每年
@ -158,7 +157,6 @@ zh:
top_projects_help: 您可以在此定义项目页的内容和设置。
top_rules_help: "您可以在此定义用于问题处理的相关规则。"
top_wiki_help: 您可以在此定义 WIKI 的内容及设置。
wiki_pdf_header_info: 该文本快将显示在 PDF 视图中的常规 WIKI 内容之前的第一页上。此处宏命令的使用非常有限。
wiki_pdf_remove_attachments_info: 当启用时WIKI 附件将不会显示在PDF视图中。
wiki_pdf_remove_title_info: 当启用时WIKI 标题信息将不会显示在PDF视图中。
label_help_integration: Online help integration

View File

@ -32,6 +32,5 @@ project_overview_content: 'Go to admin area and define a nice wiki text here as
remove_help: 0
remove_mypage: 0
remove_news: 0
wiki_pdf_header: ''
wiki_pdf_remove_attachments: 0
wiki_pdf_remove_title: 0