Project

General

Profile

Feature #23179 » 0001-add-table-of-contents-heading-to-toc-macro.patch

Jan from Planio www.plan.io, 2016-06-27 19:05

View differences:

app/helpers/application_helper.rb
div_class = 'toc'
div_class << ' right' if right_align
div_class << ' left' if left_align
out = "<ul class=\"#{div_class}\"><li>"
out = "<ul class=\"#{div_class}\"><li><strong>#{l :label_table_of_contents}</strong></li><li>"
root = headings.map(&:first).min
current = root
started = false
config/locales/de.yml
label_new_project_issue_tab_enabled: Tab "Neues Ticket" anzeigen
setting_new_item_menu_tab: Project menu tab for creating new objects
label_new_object_tab_enabled: Display the "+" drop-down
label_table_of_contents: Inhaltsverzeichnis
config/locales/en.yml
label_relations: Relations
label_new_project_issue_tab_enabled: Display the "New issue" tab
label_new_object_tab_enabled: Display the "+" drop-down
label_table_of_contents: Table of contents
button_login: Login
button_submit: Submit
config/locales/fr.yml
label_relations: Relations
label_new_project_issue_tab_enabled: Afficher l'onglet "Nouvelle demande"
label_new_object_tab_enabled: Afficher le menu déroulant "+"
label_table_of_contents: Contenu
button_login: Connexion
button_submit: Soumettre
public/stylesheets/application.css
div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
div.wiki ul.toc ul { margin: 0; padding: 0; }
div.wiki ul.toc li {list-style-type:none; margin: 0; font-size:12px;}
div.wiki ul.toc > li:first-child {margin-bottom: .5em;}
div.wiki ul.toc li li {margin-left: 1.5em; font-size:10px;}
div.wiki ul.toc a {
font-size: 0.9em;
(2-2/2)