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
1006 1006
        div_class = 'toc'
1007 1007
        div_class << ' right' if right_align
1008 1008
        div_class << ' left' if left_align
1009
        out = "<ul class=\"#{div_class}\"><li>"
1009
        out = "<ul class=\"#{div_class}\"><li><strong>#{l :label_table_of_contents}</strong></li><li>"
1010 1010
        root = headings.map(&:first).min
1011 1011
        current = root
1012 1012
        started = false
config/locales/de.yml
1210 1210
  label_new_project_issue_tab_enabled: Tab "Neues Ticket" anzeigen
1211 1211
  setting_new_item_menu_tab: Project menu tab for creating new objects
1212 1212
  label_new_object_tab_enabled: Display the "+" drop-down
1213
  label_table_of_contents: Inhaltsverzeichnis
config/locales/en.yml
997 997
  label_relations: Relations
998 998
  label_new_project_issue_tab_enabled: Display the "New issue" tab
999 999
  label_new_object_tab_enabled: Display the "+" drop-down
1000
  label_table_of_contents: Table of contents
1000 1001
  button_login: Login
1001 1002
  button_submit: Submit
config/locales/fr.yml
1006 1006
  label_relations: Relations
1007 1007
  label_new_project_issue_tab_enabled: Afficher l'onglet "Nouvelle demande"
1008 1008
  label_new_object_tab_enabled: Afficher le menu déroulant "+"
1009
  label_table_of_contents: Contenu
1009 1010
  button_login: Connexion
1010 1011
  button_submit: Soumettre
public/stylesheets/application.css
1026 1026
div.wiki ul.toc.left  { float: left; margin-right: 12px; margin-left: 0; width: auto; }
1027 1027
div.wiki ul.toc ul { margin: 0; padding: 0; }
1028 1028
div.wiki ul.toc li {list-style-type:none; margin: 0; font-size:12px;}
1029
div.wiki ul.toc > li:first-child {margin-bottom: .5em;}
1029 1030
div.wiki ul.toc li li {margin-left: 1.5em; font-size:10px;}
1030 1031
div.wiki ul.toc a {
1031 1032
  font-size: 0.9em;
(2-2/2)