Fossil SCM
Fixed a semantic collision in the fileedit 'column' CSS class, which means something different in the /dir page. This fixes mis-alignment of the commit button.
Commit
d0a83a38f5676db9fb7e69a0751c84ac5ef62d446d2d8ef467d95b6a8049c472
Parent
0b1085d724894b8…
2 files changed
+8
-5
+10
-9
+8
-5
| --- src/default_css.txt | ||
| +++ src/default_css.txt | ||
| @@ -994,10 +994,13 @@ | ||
| 994 | 994 | padding: 0; |
| 995 | 995 | } |
| 996 | 996 | #fileedit-comment { |
| 997 | 997 | width: 100%; |
| 998 | 998 | font-family: monospace; |
| 999 | +} | |
| 1000 | +#fileedit-commit-button-wrapper { | |
| 1001 | + margin: 0.25em; | |
| 999 | 1002 | } |
| 1000 | 1003 | .tab-container > .tabs > .tab-panel > .fileedit-options { |
| 1001 | 1004 | margin-top: 0; |
| 1002 | 1005 | border: none; |
| 1003 | 1006 | border-radius: 0; |
| @@ -1020,35 +1023,35 @@ | ||
| 1020 | 1023 | // Styles developed for /fileedit but which have wider |
| 1021 | 1024 | // applicability: |
| 1022 | 1025 | .flex-container { |
| 1023 | 1026 | display: flex; |
| 1024 | 1027 | } |
| 1025 | -.flex-container.row { | |
| 1028 | +.flex-container.flex-row { | |
| 1026 | 1029 | flex-direction: row; |
| 1027 | 1030 | flex-wrap: wrap; |
| 1028 | 1031 | justify-content: center; |
| 1029 | 1032 | align-items: center; |
| 1030 | 1033 | } |
| 1031 | -.fileedit-options.flex-container.row { | |
| 1034 | +.fileedit-options.flex-container.flex-row { | |
| 1032 | 1035 | align-items: first baseline; |
| 1033 | 1036 | } |
| 1034 | 1037 | .fileedit-options > div > * { |
| 1035 | 1038 | margin: 0.25em; |
| 1036 | 1039 | } |
| 1037 | -.flex-container.row.stretch { | |
| 1040 | +.flex-container.flex-row.stretch { | |
| 1038 | 1041 | flex-direction: row; |
| 1039 | 1042 | flex-wrap: wrap; |
| 1040 | 1043 | align-items: stretch; |
| 1041 | 1044 | margin: 0; |
| 1042 | 1045 | } |
| 1043 | -.flex-container.column { | |
| 1046 | +.flex-container.flex-column { | |
| 1044 | 1047 | flex-direction: column; |
| 1045 | 1048 | flex-wrap: wrap; |
| 1046 | 1049 | justify-content: center; |
| 1047 | 1050 | align-items: center; |
| 1048 | 1051 | } |
| 1049 | -.flex-container.column.stretch { | |
| 1052 | +.flex-container.flex-column.stretch { | |
| 1050 | 1053 | align-items: stretch; |
| 1051 | 1054 | margin: 0; |
| 1052 | 1055 | } |
| 1053 | 1056 | .flex-container.child-gap-small > * { |
| 1054 | 1057 | margin: 0.25em; |
| 1055 | 1058 |
| --- src/default_css.txt | |
| +++ src/default_css.txt | |
| @@ -994,10 +994,13 @@ | |
| 994 | padding: 0; |
| 995 | } |
| 996 | #fileedit-comment { |
| 997 | width: 100%; |
| 998 | font-family: monospace; |
| 999 | } |
| 1000 | .tab-container > .tabs > .tab-panel > .fileedit-options { |
| 1001 | margin-top: 0; |
| 1002 | border: none; |
| 1003 | border-radius: 0; |
| @@ -1020,35 +1023,35 @@ | |
| 1020 | // Styles developed for /fileedit but which have wider |
| 1021 | // applicability: |
| 1022 | .flex-container { |
| 1023 | display: flex; |
| 1024 | } |
| 1025 | .flex-container.row { |
| 1026 | flex-direction: row; |
| 1027 | flex-wrap: wrap; |
| 1028 | justify-content: center; |
| 1029 | align-items: center; |
| 1030 | } |
| 1031 | .fileedit-options.flex-container.row { |
| 1032 | align-items: first baseline; |
| 1033 | } |
| 1034 | .fileedit-options > div > * { |
| 1035 | margin: 0.25em; |
| 1036 | } |
| 1037 | .flex-container.row.stretch { |
| 1038 | flex-direction: row; |
| 1039 | flex-wrap: wrap; |
| 1040 | align-items: stretch; |
| 1041 | margin: 0; |
| 1042 | } |
| 1043 | .flex-container.column { |
| 1044 | flex-direction: column; |
| 1045 | flex-wrap: wrap; |
| 1046 | justify-content: center; |
| 1047 | align-items: center; |
| 1048 | } |
| 1049 | .flex-container.column.stretch { |
| 1050 | align-items: stretch; |
| 1051 | margin: 0; |
| 1052 | } |
| 1053 | .flex-container.child-gap-small > * { |
| 1054 | margin: 0.25em; |
| 1055 |
| --- src/default_css.txt | |
| +++ src/default_css.txt | |
| @@ -994,10 +994,13 @@ | |
| 994 | padding: 0; |
| 995 | } |
| 996 | #fileedit-comment { |
| 997 | width: 100%; |
| 998 | font-family: monospace; |
| 999 | } |
| 1000 | #fileedit-commit-button-wrapper { |
| 1001 | margin: 0.25em; |
| 1002 | } |
| 1003 | .tab-container > .tabs > .tab-panel > .fileedit-options { |
| 1004 | margin-top: 0; |
| 1005 | border: none; |
| 1006 | border-radius: 0; |
| @@ -1020,35 +1023,35 @@ | |
| 1023 | // Styles developed for /fileedit but which have wider |
| 1024 | // applicability: |
| 1025 | .flex-container { |
| 1026 | display: flex; |
| 1027 | } |
| 1028 | .flex-container.flex-row { |
| 1029 | flex-direction: row; |
| 1030 | flex-wrap: wrap; |
| 1031 | justify-content: center; |
| 1032 | align-items: center; |
| 1033 | } |
| 1034 | .fileedit-options.flex-container.flex-row { |
| 1035 | align-items: first baseline; |
| 1036 | } |
| 1037 | .fileedit-options > div > * { |
| 1038 | margin: 0.25em; |
| 1039 | } |
| 1040 | .flex-container.flex-row.stretch { |
| 1041 | flex-direction: row; |
| 1042 | flex-wrap: wrap; |
| 1043 | align-items: stretch; |
| 1044 | margin: 0; |
| 1045 | } |
| 1046 | .flex-container.flex-column { |
| 1047 | flex-direction: column; |
| 1048 | flex-wrap: wrap; |
| 1049 | justify-content: center; |
| 1050 | align-items: center; |
| 1051 | } |
| 1052 | .flex-container.flex-column.stretch { |
| 1053 | align-items: stretch; |
| 1054 | margin: 0; |
| 1055 | } |
| 1056 | .flex-container.child-gap-small > * { |
| 1057 | margin: 0.25em; |
| 1058 |
+10
-9
| --- src/fileedit.c | ||
| +++ src/fileedit.c | ||
| @@ -1607,11 +1607,11 @@ | ||
| 1607 | 1607 | CX("<div id='fileedit-tab-content' " |
| 1608 | 1608 | "data-tab-parent='fileedit-tabs' " |
| 1609 | 1609 | "data-tab-label='File Content'" |
| 1610 | 1610 | ">"); |
| 1611 | 1611 | CX("<div class='fileedit-options " |
| 1612 | - "flex-container row child-gap-small'>"); | |
| 1612 | + "flex-container flex-row child-gap-small'>"); | |
| 1613 | 1613 | if(1){ |
| 1614 | 1614 | /* Discard/reload button. Leave this out until we have a |
| 1615 | 1615 | ** nice way of offering confirmation, e.g. like the old |
| 1616 | 1616 | ** jQuery.confirmer plugin which required a 2nd click of the |
| 1617 | 1617 | ** button within X seconds to confirm. Right now it's simply |
| @@ -1629,11 +1629,11 @@ | ||
| 1629 | 1629 | 100, |
| 1630 | 1630 | "100%", 100, "125%", 125, |
| 1631 | 1631 | "150%", 150, "175%", 175, |
| 1632 | 1632 | "200%", 200, NULL); |
| 1633 | 1633 | CX("</div>"); |
| 1634 | - CX("<div class='flex-container row'>"); | |
| 1634 | + CX("<div class='flex-container flex-row'>"); | |
| 1635 | 1635 | CX("<textarea name='content' id='fileedit-content-editor' " |
| 1636 | 1636 | "class='fileedit' " |
| 1637 | 1637 | "rows='20' cols='80'>"); |
| 1638 | 1638 | CX("Loading..."); |
| 1639 | 1639 | CX("</textarea>"); |
| @@ -1646,11 +1646,11 @@ | ||
| 1646 | 1646 | CX("<div id='fileedit-tab-preview' " |
| 1647 | 1647 | "data-tab-parent='fileedit-tabs' " |
| 1648 | 1648 | "data-tab-label='Preview'" |
| 1649 | 1649 | ">"); |
| 1650 | 1650 | |
| 1651 | - CX("<div class='fileedit-options flex-container row'>"); | |
| 1651 | + CX("<div class='fileedit-options flex-container flex-row'>"); | |
| 1652 | 1652 | CX("<button id='btn-preview-refresh' " |
| 1653 | 1653 | "data-f-preview-from='fileedit-content-editor' " |
| 1654 | 1654 | /* ^^^ text source elem ID*/ |
| 1655 | 1655 | "data-f-preview-via='_postPreview' " |
| 1656 | 1656 | /* ^^^ fossil.page[methodName](content, callback) */ |
| @@ -1724,11 +1724,11 @@ | ||
| 1724 | 1724 | CX("<div id='fileedit-tab-diff' " |
| 1725 | 1725 | "data-tab-parent='fileedit-tabs' " |
| 1726 | 1726 | "data-tab-label='Diff'" |
| 1727 | 1727 | ">"); |
| 1728 | 1728 | |
| 1729 | - CX("<div class='fileedit-options flex-container row' " | |
| 1729 | + CX("<div class='fileedit-options flex-container flex-row' " | |
| 1730 | 1730 | "id='fileedit-tab-diff-buttons'>" |
| 1731 | 1731 | "<button class='sbs'>Side-by-side</button>" |
| 1732 | 1732 | "<button class='unified'>Unified</button>" |
| 1733 | 1733 | "</div>"); |
| 1734 | 1734 | CX("<div id='fileedit-tab-diff-wrapper'>" |
| @@ -1744,11 +1744,11 @@ | ||
| 1744 | 1744 | "data-tab-label='Commit'" |
| 1745 | 1745 | ">"); |
| 1746 | 1746 | |
| 1747 | 1747 | { |
| 1748 | 1748 | /******* Commit flags/options *******/ |
| 1749 | - CX("<div class='fileedit-options flex-container row'>"); | |
| 1749 | + CX("<div class='fileedit-options flex-container flex-row'>"); | |
| 1750 | 1750 | style_labeled_checkbox("cb-dry-run", |
| 1751 | 1751 | "dry_run", "Dry-run?", "1", 1, |
| 1752 | 1752 | "In dry-run mode, the Save button performs " |
| 1753 | 1753 | "all work needed for saving but then rolls " |
| 1754 | 1754 | "back the transaction, and thus does not " |
| @@ -1804,11 +1804,11 @@ | ||
| 1804 | 1804 | CX("<input type='text' name='comment' " |
| 1805 | 1805 | "id='fileedit-comment'></input>"); |
| 1806 | 1806 | CX("<textarea name='commentBig' class='hidden' " |
| 1807 | 1807 | "rows='5' id='fileedit-comment-big'></textarea>\n"); |
| 1808 | 1808 | { /* comment options... */ |
| 1809 | - CX("<div class='flex-container column child-gap-small'>"); | |
| 1809 | + CX("<div class='flex-container flex-column child-gap-small'>"); | |
| 1810 | 1810 | CX("<button id='comment-toggle' " |
| 1811 | 1811 | "title='Toggle between single- and multi-line comment mode, " |
| 1812 | 1812 | "noting that switching from multi- to single-line will cause " |
| 1813 | 1813 | "newlines to get stripped.'" |
| 1814 | 1814 | ">Toggle single-/multi-line</button> "); |
| @@ -1819,11 +1819,11 @@ | ||
| 1819 | 1819 | ** https://fossil-scm.org/forum/forumpost/662da045a1 |
| 1820 | 1820 | ** |
| 1821 | 1821 | ** If/when it's ever implemented, simply enable this block and |
| 1822 | 1822 | ** adjust the container's layout accordingly (as of this |
| 1823 | 1823 | ** writing, that means changing the CSS class from |
| 1824 | - ** 'flex-container column' to 'flex-container row'). | |
| 1824 | + ** 'flex-container flex-column' to 'flex-container flex-row'). | |
| 1825 | 1825 | */ |
| 1826 | 1826 | style_select_list_str("comment-mimetype", "comment_mimetype", |
| 1827 | 1827 | "Comment style:", |
| 1828 | 1828 | "Specify how fossil will interpret the " |
| 1829 | 1829 | "comment string.", |
| @@ -1832,16 +1832,17 @@ | ||
| 1832 | 1832 | "Markdown", "text/x-markdown", |
| 1833 | 1833 | "Plain text", "text/plain", |
| 1834 | 1834 | NULL); |
| 1835 | 1835 | CX("</div>\n"); |
| 1836 | 1836 | } |
| 1837 | - CX("<div class='fileedit-hint flex-container row'>" | |
| 1837 | + CX("<div class='fileedit-hint flex-container flex-row'>" | |
| 1838 | 1838 | "(Warning: switching from multi- to single-line mode will " |
| 1839 | 1839 | "strip out all newlines!)</div>"); |
| 1840 | 1840 | } |
| 1841 | 1841 | CX("</div></fieldset>\n"/*commit comment options*/); |
| 1842 | - CX("<div class='flex-container column'>" | |
| 1842 | + CX("<div class='flex-container flex-column' " | |
| 1843 | + "id='fileedit-commit-button-wrapper'>" | |
| 1843 | 1844 | "<button id='fileedit-btn-commit'>Commit</button>" |
| 1844 | 1845 | "</div>\n"); |
| 1845 | 1846 | CX("<div id='fileedit-manifest'></div>\n" |
| 1846 | 1847 | /* Manifest gets rendered here after a commit. */); |
| 1847 | 1848 | } |
| 1848 | 1849 |
| --- src/fileedit.c | |
| +++ src/fileedit.c | |
| @@ -1607,11 +1607,11 @@ | |
| 1607 | CX("<div id='fileedit-tab-content' " |
| 1608 | "data-tab-parent='fileedit-tabs' " |
| 1609 | "data-tab-label='File Content'" |
| 1610 | ">"); |
| 1611 | CX("<div class='fileedit-options " |
| 1612 | "flex-container row child-gap-small'>"); |
| 1613 | if(1){ |
| 1614 | /* Discard/reload button. Leave this out until we have a |
| 1615 | ** nice way of offering confirmation, e.g. like the old |
| 1616 | ** jQuery.confirmer plugin which required a 2nd click of the |
| 1617 | ** button within X seconds to confirm. Right now it's simply |
| @@ -1629,11 +1629,11 @@ | |
| 1629 | 100, |
| 1630 | "100%", 100, "125%", 125, |
| 1631 | "150%", 150, "175%", 175, |
| 1632 | "200%", 200, NULL); |
| 1633 | CX("</div>"); |
| 1634 | CX("<div class='flex-container row'>"); |
| 1635 | CX("<textarea name='content' id='fileedit-content-editor' " |
| 1636 | "class='fileedit' " |
| 1637 | "rows='20' cols='80'>"); |
| 1638 | CX("Loading..."); |
| 1639 | CX("</textarea>"); |
| @@ -1646,11 +1646,11 @@ | |
| 1646 | CX("<div id='fileedit-tab-preview' " |
| 1647 | "data-tab-parent='fileedit-tabs' " |
| 1648 | "data-tab-label='Preview'" |
| 1649 | ">"); |
| 1650 | |
| 1651 | CX("<div class='fileedit-options flex-container row'>"); |
| 1652 | CX("<button id='btn-preview-refresh' " |
| 1653 | "data-f-preview-from='fileedit-content-editor' " |
| 1654 | /* ^^^ text source elem ID*/ |
| 1655 | "data-f-preview-via='_postPreview' " |
| 1656 | /* ^^^ fossil.page[methodName](content, callback) */ |
| @@ -1724,11 +1724,11 @@ | |
| 1724 | CX("<div id='fileedit-tab-diff' " |
| 1725 | "data-tab-parent='fileedit-tabs' " |
| 1726 | "data-tab-label='Diff'" |
| 1727 | ">"); |
| 1728 | |
| 1729 | CX("<div class='fileedit-options flex-container row' " |
| 1730 | "id='fileedit-tab-diff-buttons'>" |
| 1731 | "<button class='sbs'>Side-by-side</button>" |
| 1732 | "<button class='unified'>Unified</button>" |
| 1733 | "</div>"); |
| 1734 | CX("<div id='fileedit-tab-diff-wrapper'>" |
| @@ -1744,11 +1744,11 @@ | |
| 1744 | "data-tab-label='Commit'" |
| 1745 | ">"); |
| 1746 | |
| 1747 | { |
| 1748 | /******* Commit flags/options *******/ |
| 1749 | CX("<div class='fileedit-options flex-container row'>"); |
| 1750 | style_labeled_checkbox("cb-dry-run", |
| 1751 | "dry_run", "Dry-run?", "1", 1, |
| 1752 | "In dry-run mode, the Save button performs " |
| 1753 | "all work needed for saving but then rolls " |
| 1754 | "back the transaction, and thus does not " |
| @@ -1804,11 +1804,11 @@ | |
| 1804 | CX("<input type='text' name='comment' " |
| 1805 | "id='fileedit-comment'></input>"); |
| 1806 | CX("<textarea name='commentBig' class='hidden' " |
| 1807 | "rows='5' id='fileedit-comment-big'></textarea>\n"); |
| 1808 | { /* comment options... */ |
| 1809 | CX("<div class='flex-container column child-gap-small'>"); |
| 1810 | CX("<button id='comment-toggle' " |
| 1811 | "title='Toggle between single- and multi-line comment mode, " |
| 1812 | "noting that switching from multi- to single-line will cause " |
| 1813 | "newlines to get stripped.'" |
| 1814 | ">Toggle single-/multi-line</button> "); |
| @@ -1819,11 +1819,11 @@ | |
| 1819 | ** https://fossil-scm.org/forum/forumpost/662da045a1 |
| 1820 | ** |
| 1821 | ** If/when it's ever implemented, simply enable this block and |
| 1822 | ** adjust the container's layout accordingly (as of this |
| 1823 | ** writing, that means changing the CSS class from |
| 1824 | ** 'flex-container column' to 'flex-container row'). |
| 1825 | */ |
| 1826 | style_select_list_str("comment-mimetype", "comment_mimetype", |
| 1827 | "Comment style:", |
| 1828 | "Specify how fossil will interpret the " |
| 1829 | "comment string.", |
| @@ -1832,16 +1832,17 @@ | |
| 1832 | "Markdown", "text/x-markdown", |
| 1833 | "Plain text", "text/plain", |
| 1834 | NULL); |
| 1835 | CX("</div>\n"); |
| 1836 | } |
| 1837 | CX("<div class='fileedit-hint flex-container row'>" |
| 1838 | "(Warning: switching from multi- to single-line mode will " |
| 1839 | "strip out all newlines!)</div>"); |
| 1840 | } |
| 1841 | CX("</div></fieldset>\n"/*commit comment options*/); |
| 1842 | CX("<div class='flex-container column'>" |
| 1843 | "<button id='fileedit-btn-commit'>Commit</button>" |
| 1844 | "</div>\n"); |
| 1845 | CX("<div id='fileedit-manifest'></div>\n" |
| 1846 | /* Manifest gets rendered here after a commit. */); |
| 1847 | } |
| 1848 |
| --- src/fileedit.c | |
| +++ src/fileedit.c | |
| @@ -1607,11 +1607,11 @@ | |
| 1607 | CX("<div id='fileedit-tab-content' " |
| 1608 | "data-tab-parent='fileedit-tabs' " |
| 1609 | "data-tab-label='File Content'" |
| 1610 | ">"); |
| 1611 | CX("<div class='fileedit-options " |
| 1612 | "flex-container flex-row child-gap-small'>"); |
| 1613 | if(1){ |
| 1614 | /* Discard/reload button. Leave this out until we have a |
| 1615 | ** nice way of offering confirmation, e.g. like the old |
| 1616 | ** jQuery.confirmer plugin which required a 2nd click of the |
| 1617 | ** button within X seconds to confirm. Right now it's simply |
| @@ -1629,11 +1629,11 @@ | |
| 1629 | 100, |
| 1630 | "100%", 100, "125%", 125, |
| 1631 | "150%", 150, "175%", 175, |
| 1632 | "200%", 200, NULL); |
| 1633 | CX("</div>"); |
| 1634 | CX("<div class='flex-container flex-row'>"); |
| 1635 | CX("<textarea name='content' id='fileedit-content-editor' " |
| 1636 | "class='fileedit' " |
| 1637 | "rows='20' cols='80'>"); |
| 1638 | CX("Loading..."); |
| 1639 | CX("</textarea>"); |
| @@ -1646,11 +1646,11 @@ | |
| 1646 | CX("<div id='fileedit-tab-preview' " |
| 1647 | "data-tab-parent='fileedit-tabs' " |
| 1648 | "data-tab-label='Preview'" |
| 1649 | ">"); |
| 1650 | |
| 1651 | CX("<div class='fileedit-options flex-container flex-row'>"); |
| 1652 | CX("<button id='btn-preview-refresh' " |
| 1653 | "data-f-preview-from='fileedit-content-editor' " |
| 1654 | /* ^^^ text source elem ID*/ |
| 1655 | "data-f-preview-via='_postPreview' " |
| 1656 | /* ^^^ fossil.page[methodName](content, callback) */ |
| @@ -1724,11 +1724,11 @@ | |
| 1724 | CX("<div id='fileedit-tab-diff' " |
| 1725 | "data-tab-parent='fileedit-tabs' " |
| 1726 | "data-tab-label='Diff'" |
| 1727 | ">"); |
| 1728 | |
| 1729 | CX("<div class='fileedit-options flex-container flex-row' " |
| 1730 | "id='fileedit-tab-diff-buttons'>" |
| 1731 | "<button class='sbs'>Side-by-side</button>" |
| 1732 | "<button class='unified'>Unified</button>" |
| 1733 | "</div>"); |
| 1734 | CX("<div id='fileedit-tab-diff-wrapper'>" |
| @@ -1744,11 +1744,11 @@ | |
| 1744 | "data-tab-label='Commit'" |
| 1745 | ">"); |
| 1746 | |
| 1747 | { |
| 1748 | /******* Commit flags/options *******/ |
| 1749 | CX("<div class='fileedit-options flex-container flex-row'>"); |
| 1750 | style_labeled_checkbox("cb-dry-run", |
| 1751 | "dry_run", "Dry-run?", "1", 1, |
| 1752 | "In dry-run mode, the Save button performs " |
| 1753 | "all work needed for saving but then rolls " |
| 1754 | "back the transaction, and thus does not " |
| @@ -1804,11 +1804,11 @@ | |
| 1804 | CX("<input type='text' name='comment' " |
| 1805 | "id='fileedit-comment'></input>"); |
| 1806 | CX("<textarea name='commentBig' class='hidden' " |
| 1807 | "rows='5' id='fileedit-comment-big'></textarea>\n"); |
| 1808 | { /* comment options... */ |
| 1809 | CX("<div class='flex-container flex-column child-gap-small'>"); |
| 1810 | CX("<button id='comment-toggle' " |
| 1811 | "title='Toggle between single- and multi-line comment mode, " |
| 1812 | "noting that switching from multi- to single-line will cause " |
| 1813 | "newlines to get stripped.'" |
| 1814 | ">Toggle single-/multi-line</button> "); |
| @@ -1819,11 +1819,11 @@ | |
| 1819 | ** https://fossil-scm.org/forum/forumpost/662da045a1 |
| 1820 | ** |
| 1821 | ** If/when it's ever implemented, simply enable this block and |
| 1822 | ** adjust the container's layout accordingly (as of this |
| 1823 | ** writing, that means changing the CSS class from |
| 1824 | ** 'flex-container flex-column' to 'flex-container flex-row'). |
| 1825 | */ |
| 1826 | style_select_list_str("comment-mimetype", "comment_mimetype", |
| 1827 | "Comment style:", |
| 1828 | "Specify how fossil will interpret the " |
| 1829 | "comment string.", |
| @@ -1832,16 +1832,17 @@ | |
| 1832 | "Markdown", "text/x-markdown", |
| 1833 | "Plain text", "text/plain", |
| 1834 | NULL); |
| 1835 | CX("</div>\n"); |
| 1836 | } |
| 1837 | CX("<div class='fileedit-hint flex-container flex-row'>" |
| 1838 | "(Warning: switching from multi- to single-line mode will " |
| 1839 | "strip out all newlines!)</div>"); |
| 1840 | } |
| 1841 | CX("</div></fieldset>\n"/*commit comment options*/); |
| 1842 | CX("<div class='flex-container flex-column' " |
| 1843 | "id='fileedit-commit-button-wrapper'>" |
| 1844 | "<button id='fileedit-btn-commit'>Commit</button>" |
| 1845 | "</div>\n"); |
| 1846 | CX("<div id='fileedit-manifest'></div>\n" |
| 1847 | /* Manifest gets rendered here after a commit. */); |
| 1848 | } |
| 1849 |