app/gollum_templates/commit.mustache
... ...
@@ -1,29 +0,0 @@
1
-<div id="wiki-wrapper" class="compare">
2
- <div id="head">
3
- {{>navbar}}
4
- <h1 class="header-title text-center text-md-left py-4">
5
- {{message}}
6
- </h1>
7
- {{author}} committed <time datetime="{{datetime}}">{{authored_date}}</time>
8
- <span class="px-2 float-right">commit <code>{{version}}</code></span>
9
- </div>
10
-
11
- <div id="compare-content">
12
- {{#files}}
13
- <div class="Box data highlight my-3 text-mono">
14
- <div class="Box-header Box--condensed Box-header--gray">
15
- <code>{{path}}</code>
16
- </div>
17
- <table>
18
- {{#lines}}
19
- <tr>
20
- <td class="line_numbers">{{ldln}}</td>
21
- <td class="line_numbers">{{rdln}}</td>
22
- <td><div class="{{class}} pl-2">{{line}}</div></td>
23
- </tr>
24
- {{/lines}}
25
- </table>
26
- </div>
27
- {{/files}}
28
- </div>
29
-</div>
app/gollum_templates/compare.mustache
... ...
@@ -1,84 +0,0 @@
1
-<div id="wiki-wrapper" class="compare">
2
- <div id="head">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{t.comparing_versions_of}}
7
- </h1>
8
- </div>
9
-
10
-{{#message}}
11
- <p>{{message}}</p>
12
-{{/message}}
13
-
14
- <div id="compare-content">
15
-
16
- <div class="py-4" id="actions">
17
- {{#show_revert}}
18
- {{#allow_editing}}
19
- <form name="gollum-revert" action="{{revert_path}}/{{escaped_url_path}}/{{before}}/{{after}}" method="post" id="gollum-revert-form"></form>
20
- <span class="pb-4">
21
- <button
22
- class="btn btn-sm"
23
- onclick="$('#gollum-revert-form').submit()"
24
- type="submit"
25
- >
26
- {{t.revert}}
27
- </button>
28
- </span>
29
- {{/allow_editing}}
30
- {{/show_revert}}
31
-
32
- <a
33
- class="btn btn-sm action-page-history"
34
- href="{{history_path}}/{{escaped_url_path}}"
35
- >
36
- {{t.back_to_page_history}}
37
- </a>
38
- </div>
39
-
40
- <div class="Box data highlight text-mono">
41
- <div class="Box-header Box--condensed Box-header--gray">
42
- {{path}}
43
-
44
- <span class="px-2 float-right">
45
- {{t.comparing_from}}
46
- </span>
47
- </div>
48
-
49
- <table>
50
- {{#lines}}
51
- <tr>
52
- <td class="line_numbers">{{ldln}}</td>
53
- <td class="line_numbers">{{rdln}}</td>
54
- <td>
55
- <div class="{{class}} pl-2">{{line}}</div>
56
- </td>
57
- </tr>
58
- {{/lines}}
59
- </table>
60
- </div>
61
- </div>
62
-
63
- <div class="pt-4" id="footer">
64
- {{#show_revert}}
65
- {{#allow_editing}}
66
- <span class="pt-4">
67
- <button
68
- class="btn btn-sm gollum-revert-button"
69
- onclick="$('#gollum-revert-form').submit()"
70
- type="submit"
71
- >
72
- {{t.revert}}
73
- </button>
74
- </span>
75
- {{/allow_editing}}
76
- {{/show_revert}}
77
-
78
- <div class="pt-4">
79
- <a href="#">
80
- {{t.back_to_top}}
81
- </a>
82
- </div>
83
- </div>
84
-</div>
app/gollum_templates/create.mustache
... ...
@@ -1,26 +0,0 @@
1
-<div id="wiki-wrapper" class="create">
2
- <div id="head">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{tt.create.title}}
7
- </h1>
8
- </div>
9
-<div id="wiki-content" class="create edit">
10
- <div class="tabnav">
11
- <nav class="tabnav-tabs" aria-label="Toggle edit or preview mode">
12
- <a href="#" id="edit" class="tabnav-tab selected" aria-current="page">
13
- {{tt.create.edit}}
14
- </a>
15
- <a href="#" id="preview" class="tabnav-tab">{{tt.create.preview}}</a>
16
- </nav>
17
- </div>
18
-
19
- <div class="has-sidebar tabnav-div" id="edit-content">
20
- {{>editor}}
21
- </div>
22
- <div class="tabnav-div" id="preview-content">
23
- </div>
24
-</div>
25
-</div>
26
-{{something}}
app/gollum_templates/edit.mustache
... ...
@@ -1,24 +0,0 @@
1
-<div id="wiki-wrapper" class="edit">
2
- <div id="head">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{t.title}}
7
- </h1>
8
- </div>
9
-
10
- <div class="tabnav">
11
- <nav class="tabnav-tabs">
12
- <button id="edit" class="tabnav-tab selected" aria-current="page">
13
- {{t.edit}}
14
- </button>
15
-
16
- <button id="preview" class="tabnav-tab">
17
- {{t.preview}}
18
- </button>
19
- </nav>
20
- </div>
21
-
22
- <div class="tabnav-div" id="edit-content">{{>editor}}</div>
23
- <div class="tabnav-div" id="preview-content"></div>
24
-</div>
app/gollum_templates/editor.mustache
... ...
@@ -1,215 +0,0 @@
1
-<div id="gollum-editor" data-escaped-name="{{escaped_name}}" class="{{#is_create_page}}create{{/is_create_page}}{{#is_edit_page}}edit{{/is_edit_page}} {{#allow_uploads}}uploads-allowed{{/allow_uploads}} tex2jax_ignore">
2
-{{#is_create_page}}
3
-<form id="gollum-editor-form" name="gollum-editor" action="{{create_path}}" method="post">
4
-{{/is_create_page}}
5
-{{#is_edit_page}}
6
-<form id="gollum-editor-form" name="gollum-editor" action="{{edit_path}}/{{escaped_name}}" method="post">
7
-{{/is_edit_page}}
8
- <fieldset id="gollum-editor-fields">
9
- {{#is_create_page}}
10
- <div id="gollum-editor-title-field" class="mb-4">
11
- <label for="page" class="jaws">Page Title</label>
12
- <input class="form-control mb-2 input-lg input-block text-bold f5" placeholder="Page title" type="text" name="page" id="gollum-editor-page-title" value="{{page_name}}">
13
- {{#has_path}}
14
- <p class="path_note"><strong>{{tt.editor.note.title}}</strong> {{tt.editor.note.content}}</p>
15
- {{/has_path}}
16
- </div>
17
- {{/is_create_page}}
18
- {{#is_edit_page}}
19
- <input type="hidden" name="page" id="gollum-editor-page-title" value="{{page_name}}">
20
- <input type="hidden" name="etag" id="gollum-editor-etag" value="{{etag}}">
21
- {{/is_edit_page}}
22
- <input type="hidden" name="path" id="gollum-editor-page-path" value="{{path}}">
23
-
24
- <div id="gollum-editor-function-bar" class="border-bottom clearfix mb-2">
25
- <div id="gollum-editor-function-buttons" class="overflow-auto no-wrap">
26
- <div class="BtnGroup">
27
- <button class="btn btn-sm BtnGroup-item function-button" id="function-h1" title="{{tt.editor.function_bar.heading1.title}}">{{tt.editor.function_bar.heading1.value}}</button>
28
- <button class="btn btn-sm BtnGroup-item function-button" id="function-h2" title="{{tt.editor.function_bar.heading2.title}}">{{tt.editor.function_bar.heading2.value}}</button>
29
- <button class="btn btn-sm BtnGroup-item function-button" id="function-h3" title="{{tt.editor.function_bar.heading3.title}}">{{tt.editor.function_bar.heading3.value}}</button>
30
- </div>
31
-
32
- <div class="BtnGroup">
33
- <button class="btn btn-sm BtnGroup-item function-button" id="function-link" title="{{tt.editor.function_bar.link}}">{{#octicon}}link{{/octicon}}</button>
34
- <button class="btn btn-sm BtnGroup-item function-button" id="function-image" title="{{tt.editor.function_bar.image}}">{{#octicon}}image{{/octicon}}</button>
35
- </div>
36
-
37
- <div class="BtnGroup">
38
- <button class="btn btn-sm BtnGroup-item function-button" id="function-bold" title="{{tt.editor.function_bar.bold}}">{{#octicon}}bold{{/octicon}}</button>
39
- <button class="btn btn-sm BtnGroup-item function-button" id="function-italic" title="{{tt.editor.function_bar.italic}}">{{#octicon}}italic{{/octicon}}</button>
40
- <button class="btn btn-sm BtnGroup-item function-button" id="function-code" title="{{tt.editor.function_bar.code}}">{{#octicon}}code{{/octicon}}</button>
41
- </div>
42
-
43
- <div class="BtnGroup">
44
- <button class="btn btn-sm BtnGroup-item function-button" id="function-ul" title="{{tt.editor.function_bar.unordered_list}}">{{#octicon}}list-unordered{{/octicon}}</button>
45
- <button class="btn btn-sm BtnGroup-item function-button" id="function-ol" title="{{tt.editor.function_bar.ordered_list}}">{{#octicon}}list-ordered{{/octicon}}</button>
46
- <button class="btn btn-sm BtnGroup-item function-button" id="function-blockquote" title="{{tt.editor.function_bar.blockquote}}">{{#octicon}}quote{{/octicon}}</button>
47
- <button class="btn btn-sm BtnGroup-item function-button" id="function-hr" title="{{tt.editor.function_bar.horizontal_rule}}">{{#octicon}}horizontal-rule{{/octicon}}</button>
48
- </div>
49
-
50
- {{#critic_markup}}
51
- <div class="BtnGroup">
52
- <button class="btn btn-sm BtnGroup-item function-button" id="function-critic-accept" title="{{tt.editor.function_bar.accept_selected_criticMarkup}}">{{#octicon}}plus{{/octicon}}</button>
53
- <button class="btn btn-sm BtnGroup-item function-button" id="function-critic-reject" title="{{tt.editor.function_bar.reject_selected_criticMarkup}}">{{#octicon}}dash{{/octicon}}</button>
54
- </div>
55
- {{/critic_markup}}
56
-
57
- <button class="btn btn-sm function-button" id="function-text-direction" title="{{tt.editor.function_bar.reverse_text_direction}}">{{#octicon}}arrow-both{{/octicon}}</button>
58
-
59
- <button
60
- aria-label="{{tt.editor.function_bar.help}}"
61
- class="btn btn-sm function-button"
62
- data-help-text="{{help_text}}"
63
- id="function-help"
64
- title="{{tt.editor.function_bar.help}}">
65
- {{#octicon}}question{{/octicon}}
66
- </button>
67
-
68
- </div>
69
-
70
- <div id="gollum-editor-selector-wrapper" class="d-flex flex-wrap float-right">
71
- <div id="gollum-editor-keybinding-selector" class="mx-2">
72
-
73
- <details class="details-reset details-overlay">
74
- <summary class="btn btn-sm btn-block" aria-haspopup="true">
75
- {{#octicon}}gear{{/octicon}}
76
- <span class="mr-1">{{default_keybinding}}</span>
77
- <div class="dropdown-caret"></div>
78
- </summary>
79
- <div id="keybinding" class="SelectMenu BasicSelect">
80
- <div class="SelectMenu-modal">
81
- <header class="SelectMenu-header">
82
- <h3 class="SelectMenu-title text-left">{{tt.editor.function_bar.keybinding}}</h3>
83
- </header>
84
- <div class="SelectMenu-list">
85
- {{#keybindings}}
86
- <button class="SelectMenu-item" role="menuitemcheckbox" {{#selected}}aria-checked="true"{{/selected}} value="{{name}}">
87
- <!-- <%= octicon "check", class: "SelectMenu-icon SelectMenu-icon--check" %> -->
88
- {{#octicon}}check 16 16 SelectMenu-icon SelectMenu-icon--check{{/octicon}}
89
- {{name}}
90
- </button>
91
- {{/keybindings}}
92
- </div>
93
- </div>
94
- </div>
95
- </details>
96
- </div>
97
-
98
- <div id="gollum-editor-format-selector">
99
- <input type="hidden" id="format" name="format" value={{format}}>
100
- <details class="details-reset details-overlay">
101
- <summary class="btn btn-sm btn-block" aria-haspopup="true">
102
- {{#octicon}}pencil{{/octicon}}
103
- <span class="mr-1">{{format}}</span>
104
- <div class="dropdown-caret"></div>
105
- </summary>
106
- <div id="wiki_format" class="SelectMenu BasicSelect">
107
- <div class="SelectMenu-modal">
108
- <header class="SelectMenu-header">
109
- <h3 class="SelectMenu-title text-left">{{tt.editor.function_bar.wiki_format}}</h3>
110
- </header>
111
- <div class="SelectMenu-list">
112
- {{#formats}}
113
- {{#enabled}}
114
- <button class="SelectMenu-item" value="{{id}}" data-ext="{{ext}}" role="menuitemcheckbox" {{#selected}}aria-checked="true"{{/selected}}>
115
- <!-- <%= octicon "check", class: "SelectMenu-icon SelectMenu-icon--check" %> -->
116
- {{#octicon}}check 16 16 SelectMenu-icon SelectMenu-icon--check{{/octicon}}
117
- {{name}}
118
- </button>
119
- {{/enabled}}
120
- {{/formats}}
121
- <div class="SelectMenu-divider text-left">{{tt.editor.function_bar.rendering_unavailable_for}}</div>
122
- {{#formats}}
123
- {{^enabled}}
124
- <button class="SelectMenu-item" value="{{id}}" data-ext="{{ext}}" role="menuitemcheckbox" {{#selected}}aria-checked="true"{{/selected}} disabled>
125
- <!-- <%= octicon "check", class: "SelectMenu-icon SelectMenu-icon--check" %> -->
126
- {{#octicon}}check 16 16 SelectMenu-icon SelectMenu-icon--check{{/octicon}}
127
- {{name}}
128
- {{/enabled}}
129
- {{/formats}}
130
- </div>
131
- </div>
132
- </div>
133
- </details>
134
- </div>
135
- </div>
136
-
137
- </div>
138
-
139
- <div id="gollum-editor-help" class="jaws border rounded-2 overflow-hidden mb-2">
140
- <nav id="gollum-editor-help-parent" class="menu rounded-0 float-left border-top-0 border-bottom-0 border-left-0">
141
- <a href="javascript:void(0);" class="selected menu-item border-bottom">Help 1</a>
142
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 1</a>
143
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 1</a>
144
- </nav>
145
- <nav id="gollum-editor-help-list" class="menu rounded-0 float-left border-top-0 border-bottom-0 border-left-0">
146
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 2</a>
147
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 3</a>
148
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 4</a>
149
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 5</a>
150
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 6</a>
151
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 7</a>
152
- <a href="javascript:void(0);" class="menu-item border-bottom">Help 8</a>
153
- </nav>
154
- <div id="gollum-editor-help-wrapper">
155
- <div id="gollum-editor-help-content" class="f4">
156
- <p>
157
- </p>
158
- </div>
159
- </div>
160
- </div>
161
- <div id="gollum-autorecover-msg" class="flash my-2" hidden>
162
- {{tt.editor.restore_button.prompt}}
163
- <button id="gollum-autorecover-button" class="btn btn-sm primary flash-action">{{tt.editor.restore_button.value}}</button>
164
- </div>
165
- <textarea id="gollum-editor-body" class="form-control text-mono"
166
- data-markup-lang="{{format}}" name="content" class="mousetrap">{{content}}</textarea>
167
- <div id="uploading">
168
- <p><div class="dotted-spinner"></div> Uploading file...</p>
169
- </div>
170
-
171
- {{#header}}
172
-
173
- <div id="gollum-editor-edit-header" class="collapsed border-bottom pt-2">
174
- <button class="btn btn-sm collapsable mb-2">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable mb-2" hidden>{{#octicon}}triangle-up{{/octicon}}</button>
175
- <h4 class="d-inline-block pl-2 f3">Header</h4>
176
- <textarea id="gollum-editor-header" name="header" class="form-control input-block mb-2 text-mono overflow-auto">{{header}}</textarea>
177
- </div>
178
- {{/header}}
179
-
180
- {{#footer}}
181
- <div id="gollum-editor-edit-footer" class="collapsed border-bottom pt-2">
182
- <button class="btn btn-sm collapsable mb-2">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable mb-2" hidden>{{#octicon}}triangle-up{{/octicon}}</button>
183
- <h4 class="d-inline-block pl-2 f3">Footer</h4>
184
- <textarea id="gollum-editor-footer" name="footer" class="form-control input-block mb-2 text-mono overflow-auto">{{footer}}</textarea>
185
- </div>
186
- {{/footer}}
187
-
188
- {{#sidebar}}
189
- <div id="gollum-editor-edit-sidebar" class="collapsed border-bottom pt-2">
190
- <button class="btn btn-sm collapsable mb-2">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable mb-2" hidden>{{#octicon}}triangle-up{{/octicon}}</button>
191
- <h4 class="d-inline-block pl-2 f3">Sidebar</h4>
192
-
193
- <textarea id="gollum-editor-sidebar" name="sidebar" class="form-control input-block mb-2 text-mono overflow-auto">{{sidebar}}</textarea>
194
- </div>
195
- {{/sidebar}}
196
-
197
- <div id="gollum-editor-edit-summary" class="my-2">
198
- <label for="message" class="jaws">Edit message:</label>
199
- {{#is_create_page}}
200
- <input type="text" name="message" class="form-control input-lg input-block f5 color-fg-subtle" id="gollum-editor-message-field" value="Created {{page_name}} ({{format}})">
201
- {{/is_create_page}}
202
- {{#is_edit_page}}
203
- <input type="text" name="message" class="form-control input-lg input-block f5 color-fg-subtle" id="gollum-editor-message-field" value="Updated {{page_name}} ({{format}})">
204
- {{/is_edit_page}}
205
- </div>
206
-
207
- <span class="jaws"><br></span>
208
- <div class="form-actions">
209
- <input type="submit" id="gollum-editor-submit" class="btn btn-primary" value="{{tt.editor.save_button.value}}" title="{{tt.editor.save_button.title}}">
210
- <a id="gollum-editor-cancel" class="btn" type="button" title="{{tt.editor.cancel_button.title}}" onClick="if(confirm('{{tt.editor.cancel_button.confirm}}')) { window.history.back()}">{{tt.editor.cancel_button.value}}</a>
211
- </div>
212
- </fieldset>
213
-</form>
214
-</div>
215
-<div id="gollum-saved-msg" class="position-fixed bottom-0 left-0"></div>
app/gollum_templates/error.mustache
... ...
@@ -1,8 +0,0 @@
1
-<div id="wiki-wrapper" class="error">
2
- <div id="error">
3
- <h1>{{t.error}}</h1>
4
- <p>
5
- {{message}}
6
- </p>
7
- </div>
8
-</div>
app/gollum_templates/history.mustache
... ...
@@ -1,51 +0,0 @@
1
-<div id="wiki-wrapper" class="history">
2
-<div id="head">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{t.history_for}}
7
- </h1>
8
-</div>
9
-
10
-<div id="page-history">
11
-
12
- {{>pagination}}
13
-
14
- <form name="selection-form" id="selection-form" method="get" action="{{compare_path}}/{{escaped_url_path}}"></form>
15
-
16
- <div id="page-history-list" class="Box Box--condensed flex-auto">
17
- <form id="version-form">
18
- <ul>
19
- {{#versions}}
20
- <li class="Box-row border-top Box-row--hover-gray d-flex flex-items-center">
21
- <span class="pr-2"><input class="checkbox" type="checkbox" name="versions[]" value="{{id}}"></span>
22
- <span class="float-left col-2" id="user-icons">{{>author_template}}</span>
23
- <time class="flex-auto col-1 color-fg-subtle" datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>
24
- <span class="flex-auto col-5">{{message}}</span>
25
- <span class="pl-4 float-right">
26
- <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
27
- <a
28
- class="btn btn-outline"
29
- href="{{href_page}}"
30
- title="{{t.browse_in_history_description}}"
31
- >
32
- {{#octicon}}code{{/octicon}}
33
- </a>
34
- </span>
35
- </li>
36
- {{/versions}}
37
- </ul>
38
- </form>
39
- </div>
40
-
41
- <div id="footer">
42
- <div class="pt-4">
43
- <button
44
- class="btn btn-sm action-compare-revision"
45
- type="submit"
46
- >
47
- {{t.compare_revisions}}
48
- </button>
49
- </div>
50
- </div>
51
-</div>
app/gollum_templates/history_authors/gravatar.mustache
... ...
@@ -1,2 +0,0 @@
1
-<img src="https://secure.gravatar.com/avatar/{{user_icon}}?s=20" class="mini-gravatar" onerror="brokenAvatarImage(this);" />
2
-&nbsp;<a href="https://gravatar.com/{{user_icon}}">{{author}}</a>
... ...
\ No newline at end of file
app/gollum_templates/history_authors/identicon.mustache
... ...
@@ -1,2 +0,0 @@
1
-<img src="" alt="avatar: {{author}}" class="identicon" data-identicon="{{user_icon}}" onerror="brokenAvatarImage(this);" />
2
-&nbsp;<span>{{author}}</span>
... ...
\ No newline at end of file
app/gollum_templates/history_authors/none.mustache
... ...
@@ -1,2 +0,0 @@
1
-{{#octicon}}person{{/octicon}}
2
-&nbsp;<span>{{author}}</span>
... ...
\ No newline at end of file
app/gollum_templates/latest_changes.mustache
... ...
@@ -1,36 +0,0 @@
1
-<div id="wiki-wrapper" class="history">
2
- <div id="head">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{title}}
7
- </h1>
8
- </div>
9
-
10
-{{>pagination}}
11
-
12
-<div id="wiki-history">
13
-
14
-<ul class="Box flex-auto">
15
- {{#versions}}
16
- <li class="Box-row Box-row--hover-gray border-top d-flex flex-items-center">
17
- <span class="float-left col-2" id="user-icons">{{>author_template}}</span>
18
- <time class="flex-auto col-1 color-fg-subtle" datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>
19
- <span class="flex-auto col-5">{{message}}<br/>
20
- {{#files}}
21
- <span class="flex-auto col-2">{{#renamed}}{{renamed}} -> {{/renamed}}<a href="{{link}}">{{file}}</a></span><br/>
22
- {{/files}}
23
- </span>
24
- <span class="pl-4 float-right">
25
- <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
26
- </span>
27
- </li>
28
- {{/versions}}
29
-</ul>
30
-
31
-
32
-</div>
33
-<div id="footer">
34
-
35
-</div>
36
-</div>
app/gollum_templates/layout.mustache
... ...
@@ -1,140 +0,0 @@
1
-<!DOCTYPE html>
2
-<html>
3
-<head>
4
- <meta http-equiv="Content-type" content="text/html;charset=utf-8">
5
- <meta name="MobileOptimized" content="width">
6
- <meta name="HandheldFriendly" content="true">
7
- <meta name="viewport" content="width=device-width">
8
- {{#sprockets_stylesheet_tag}}app{{/sprockets_stylesheet_tag}}
9
- {{#sprockets_stylesheet_tag}}print print{{/sprockets_stylesheet_tag}}
10
-
11
-
12
- {{#css}}<link rel="stylesheet" type="text/css" href="{{custom_css}}" media="all">{{/css}}
13
- {{#noindex}}<meta name="robots" content="noindex, nofollow" />{{/noindex}}
14
-
15
- <script>
16
- var criticMarkup = '{{critic_markup}}';
17
- var baseUrl = '{{base_url}}';
18
- var showLocalTime = {{{show_local_time}}};
19
- var uploadDest = 'uploads';
20
- var perPageUploads = '{{per_page_uploads}}';
21
- if (perPageUploads == 'true') {
22
- uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "").replace(baseUrl, "")
23
- }
24
- {{#page}}
25
- var pageFullPath = '{{escaped_url_path}}';
26
- var pageFormat = '{{format}}';
27
- {{/page}}
28
- {{#has_search_terms}}
29
- var searchTerms = [{{#search_terms}}'{{.}}', {{/search_terms}}
30
- ];
31
- {{/has_search_terms}}
32
- {{#is_create_page}}
33
- var default_markup = '{{default_markup}}';
34
- {{/is_create_page}}
35
- {{#has_editor}}
36
- var default_keybinding = '{{default_keybinding}}';
37
- {{/has_editor}}
38
-
39
- </script>
40
- {{#sprockets_javascript_tag}}app{{/sprockets_javascript_tag}}
41
- {{#has_editor}}
42
- {{#sprockets_javascript_tag}}editor{{/sprockets_javascript_tag}}
43
- {{/has_editor}}
44
-
45
- {{#katex}}
46
- {{#sprockets_stylesheet_tag}}katex/dist/katex{{/sprockets_stylesheet_tag}}
47
- <script defer src="{{#sprockets_asset_path}}gollum.katex.js{{/sprockets_asset_path}}"></script>
48
- <script type="text/javascript">
49
- var katex_conf = {
50
- delimiters: [
51
- {left: '$$', right: '$$', display: true},
52
- {left: '$', right: '$', display: false},
53
- {left: '\\(', right: '\\)', display: false},
54
- {left: '\\[', right: '\\]', display: true}
55
- ],
56
- throwOnError : false
57
- };
58
- </script>
59
- {{/katex}}
60
-
61
- {{#mathjax}}
62
- <script type="text/javascript">
63
- window.MathJax = {
64
- tex: {
65
- inlineMath: [ ['$','$'], ['\\(','\\)'] ],
66
- displayMath: [ ['$$','$$'], ['\\[','\\]'] ],
67
- processEscapes: true,
68
- autoload: {
69
- color: [],
70
- colorv2: ['color']
71
- },
72
- packages: {'[+]': ['noerrors']}
73
- },
74
- options: {
75
- ignoreHtmlClass: 'tex2jax_ignore',
76
- processHtmlClass: 'tex2jax_process',
77
- safeOptions: {
78
- allow: {
79
- //
80
- // Values can be "all", "safe", or "none"
81
- //
82
- URLs: 'safe',
83
- classes: 'none',
84
- cssIDs: 'none',
85
- styles: 'none',
86
- },
87
- },
88
- },
89
- loader: {
90
- load: ['[tex]/noerrors', 'ui/safe']
91
- },
92
- };
93
- </script>
94
- {{/mathjax}}
95
-
96
- {{#mermaid}}
97
- <script>
98
- var mermaid_conf = {
99
- startOnLoad: true,
100
- securityLevel: 'sandbox'
101
- };
102
- </script>
103
- {{/mermaid}}
104
-
105
- {{#js}}
106
- <script type="text/javascript" src="{{custom_js}}"></script>
107
- {{/js}}
108
- {{#math_config}}
109
- <script type="text/javascript" src="{{math_config}}"></script>
110
- {{/math_config}}
111
-
112
- {{#mathjax}}
113
- <script async src="{{mathjax_js}}"></script>
114
- {{/mathjax}}
115
- {{#katex}}
116
- <script type="text/javascript">
117
- document.addEventListener("DOMContentLoaded", function() {
118
- var page_content_div = document.getElementById('wiki-content');
119
- if (page_content_div){
120
- renderMathInElement(page_content_div, katex_conf);
121
- }
122
- });
123
- </script>
124
- {{/katex}}
125
-
126
- {{#mermaid}}
127
- {{#sprockets_javascript_tag}}gollum.mermaid.js{{/sprockets_javascript_tag}}
128
- <script>
129
- mermaid.initialize(mermaid_conf);
130
- </script>
131
- {{/mermaid}}
132
-
133
- <title>{{title}}</title>
134
-</head>
135
-<body>
136
-<div class="container-lg clearfix">
137
-{{{yield}}}
138
-</div>
139
-</body>
140
-</html>
app/gollum_templates/mobilenav.mustache
... ...
@@ -1,72 +0,0 @@
1
-<details class="details-reset details-overlay">
2
- <summary class="btn btn-invisible" aria-haspopup="true">
3
- <span aria-label="Open menu">☰</span>
4
- </summary>
5
-
6
- <div class="SelectMenu mx-sm-2">
7
- <div class="SelectMenu-modal">
8
- <div class="SelectMenu-divider py-3">
9
- <h2 class="h6">Current Page</h2>
10
- <div>{{page_header}}</div>
11
- </div>
12
-
13
- {{#history}}
14
- <a
15
- class="SelectMenu-item"
16
- href="{{history_path}}/{{escaped_url_path}}"
17
- role="menuitem"
18
- >
19
- <span>History</span>
20
- </a>
21
- {{/history}}
22
-
23
- {{#allow_editing}}
24
- {{#allow_uploads}}
25
- <a class="SelectMenu-item minibutton-upload-page" role="menuitem">
26
- <span>Upload</span>
27
- </a>
28
- {{/allow_uploads}}
29
-
30
- {{#editable}}
31
- <a class="SelectMenu-item minibutton-rename-page" role="menuitem">
32
- <span>Rename</span>
33
- </a>
34
-
35
- <a
36
- class="SelectMenu-item minibutton-edit-page"
37
- href="{{edit_path}}/{{escaped_url_path}}"
38
- role="menuitem"
39
- >
40
- <span>Edit</span>
41
- </a>
42
- {{/editable}}
43
- {{/allow_editing}}
44
-
45
- <div class="SelectMenu-divider py-3">
46
- <h2 class="h6">Main Menu</h2>
47
- </div>
48
-
49
- <div class="SelectMenu-list">
50
- <a class="SelectMenu-item" role="menuitem" href="{{page_route}}">
51
- Home
52
- </a>
53
-
54
- {{#overview}}
55
- <a class="SelectMenu-item" role="menuitem" href="{{overview_path}}">
56
- Overview
57
- </a>
58
- {{/overview}}
59
-
60
- {{#latest_changes}}
61
- <a
62
- class="SelectMenu-item"
63
- href="{{latest_changes_path}}"
64
- role="menuitem"
65
- >
66
- Latest Changes
67
- </a>
68
- {{/latest_changes}}
69
- </div>
70
- </div>
71
- </div>
72
-</details>
app/gollum_templates/navbar.mustache
... ...
@@ -1,102 +0,0 @@
1
-<nav class="TableObject
2
- actions
3
- border-bottom
4
- border-md-0
5
- p-2
6
- pt-lg-4
7
- px-lg-0
8
- overflow-x-scroll">
9
- <div class="TableObject-item hide-lg hide-xl">
10
- {{>mobilenav}}
11
- </div>
12
-
13
- <div class="TableObject-item hide-sm hide-md">
14
- <button class="btn btn-sm" id="minibutton-home"
15
- onclick="window.location.href='{{page_route}}';"
16
- >
17
- {{tt.navbar.home_button}}
18
- </button>
19
- </div>
20
-
21
- <div
22
- class="TableObject-item TableObject-item--primary px-2"
23
- {{^search}}style="visibility:hidden"{{/search}}
24
- >
25
- {{>searchbar}}
26
- </div>
27
-
28
- <div class="TableObject-item hide-sm hide-md">
29
- <div class="BtnGroup d-flex">
30
- {{#allow_editing}}
31
- {{#latest_changes}}
32
- <button
33
- class="btn BtnGroup-item btn-sm"
34
- onclick="window.location.href='{{latest_changes_path}}';"
35
- id="minibutton-latest-changes"
36
- >
37
- {{tt.navbar.latest_changes_button}}
38
- </button>
39
- {{/latest_changes}}
40
- {{/allow_editing}}
41
- </div>
42
- </div>
43
-
44
- <div class="TableObject-item px-2">
45
- <div class="BtnGroup d-flex">
46
- {{#allow_editing}}
47
- {{#history}}
48
- <button
49
- class="btn BtnGroup-item btn-sm hide-sm hide-md"
50
- onclick="window.location.href='{{history_path}}/{{escaped_url_path}}/{{version}}';"
51
- id="minibutton-history"
52
- >
53
- {{tt.navbar.history_button}}
54
- </button>
55
- {{/history}}
56
-
57
- {{#allow_uploads}}
58
- <button
59
- class="btn BtnGroup-item btn-sm hide-sm hide-md minibutton-upload-page"
60
- >
61
- {{tt.navbar.upload_button}}
62
- </button>
63
- {{/allow_uploads}}
64
-
65
- {{#editable}}
66
- <button
67
- class="btn BtnGroup-item btn-sm hide-sm hide-md minibutton-rename-page"
68
- >
69
- {{tt.navbar.rename_button}}
70
- </button>
71
- <button
72
- class="btn BtnGroup-item btn-sm hide-sm hide-md"
73
- onclick="window.location.href='{{edit_path}}/{{escaped_url_path}}';"
74
- id="minibutton-edit-page"
75
- >
76
- {{tt.navbar.edit_button}}
77
- </button>
78
- {{/editable}}
79
- {{/allow_editing}}
80
- </div>
81
- </div>
82
-
83
- {{#allow_editing}}
84
- {{#editable}}
85
- <div class="TableObject-item">
86
- <button class="btn btn-primary btn-sm minibutton-new-page">
87
- {{tt.navbar.new_button}}
88
- </button>
89
- </div>
90
- {{/editable}}
91
-
92
- {{^editable}}
93
- {{#newable}}
94
- <div class="TableObject-item">
95
- <button class="btn btn-primary btn-sm minibutton-new-page">
96
- {{tt.navbar.new_button}}
97
- </button>
98
- </div>
99
- {{/newable}}
100
- {{/editable}}
101
- {{/allow_editing}}
102
-</nav>
app/gollum_templates/overview.mustache
... ...
@@ -1,55 +0,0 @@
1
-<div id="wiki-wrapper" class="results">
2
- <div id="head" class="overview">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{title}}
7
- </h1>
8
- </div>
9
-<div id="overview">
10
-
11
-{{#has_results}}
12
- <div id="file-browser">
13
- <div class="breadcrumb pb-4">
14
- {{{breadcrumb}}}
15
- </div>
16
-
17
- <div class="Box">
18
- <ul>
19
- {{#files_folders}}
20
- <li class="Box-row">
21
- <span class="pr-2">{{{icon}}}</span>
22
- <span><a href="{{url}}">{{name}}</a></span>
23
- {{#allow_editing}}
24
- {{#is_file}}
25
- <button
26
- class="btn btn-sm float-right delete-file"
27
- data-confirm="{{t.delete_confirmation}}"
28
- data-file-path="{{file_path}}"
29
- >
30
- {{#octicon}}trash{{/octicon}}
31
- </button>
32
- {{/is_file}}
33
- {{/allow_editing}}
34
- </li>
35
- {{/files_folders}}
36
- </ul>
37
- </div>
38
-
39
-
40
-{{/has_results}}
41
-
42
-{{#no_results}}
43
- <p id="no-results">
44
- {{t.no_pages_in}}
45
- </p>
46
-{{/no_results}}
47
-
48
-</div>
49
-<div class="pt-4" id="footer">
50
- <a href="#">
51
- {{t.back_to_top}}
52
- </a>
53
-</div>
54
-</div>
55
-
app/gollum_templates/page.mustache
... ...
@@ -1,13 +0,0 @@
1
-<div id="wiki-wrapper" class="page">
2
-<div id="head">
3
- {{#navbar?}}{{>navbar}}{{/navbar?}}
4
-</div>
5
-
6
-{{>wiki_content}}
7
-
8
-<form name="rename" method="POST" action="{{rename_path}}/{{escaped_url_path}}">
9
- <input type="hidden" name="rename"/>
10
- <input type="hidden" name="message"/>
11
-</form>
12
-
13
-</div>
... ...
\ No newline at end of file
app/gollum_templates/pagination.mustache
... ...
@@ -1,23 +0,0 @@
1
-<nav class="paginate-container" aria-label="{{tt.pagination.aria.label}}">
2
- <div class="pagination" id="pagination">
3
- <a
4
- aria-label="{{td.pagination.aria.previous_page}}"
5
- class="previous_page {{^previous_page}}disabled{{/previous_page}}"
6
- href="?page_num={{previous_page}}{{query_string}}"
7
- id="prev"
8
- rel="prev"
9
- >
10
- {{tt.pagination.previous}}
11
- </a>
12
-
13
- <a
14
- aria-label="{{td.pagination.aria.next_page}}"
15
- class="next_page {{^next_page}}disabled{{/next_page}}"
16
- href="?page_num={{next_page}}{{query_string}}"
17
- id="next"
18
- rel="next"
19
- >
20
- {{tt.pagination.next}}
21
- </a>
22
- </div>
23
-</nav>
app/gollum_templates/search.mustache
... ...
@@ -1,51 +0,0 @@
1
-<div id="wiki-wrapper" class="results">
2
- <div id="head">
3
- {{>navbar}}
4
-
5
- <h1 class="header-title text-center text-md-left py-4">
6
- {{t.search_results_for}}
7
- </h1>
8
- </div>
9
-
10
-{{#has_results}}
11
-
12
- {{>pagination}}
13
-
14
-<div class="Box Box--condensed search-results" id="search-results">
15
- <ul>
16
- <div class="Box-header border-bottom p-0"></div>
17
- {{#results}}
18
- <li class="Box-row Box-row--gray search-result">
19
- <span class="Counter Counter--primary tooltipped tooltipped-w" aria-label="{{filename_count}} hits in filename - {{count}} hits in content">{{filename_count}} - {{count}}</span>&nbsp;
20
- <span class="text-bold"><a href="{{href}}">{{name}}</a></span>
21
- <button
22
- class="btn-link tooltipped tooltipped-w float-right toggle-context"
23
- aria-label="{{t.aria.show_all}}"
24
- >
25
- {{#octicon}}search{{/octicon}}
26
- </button>
27
- </li>
28
-
29
- <div class="search-context">
30
- {{#context}}
31
- <li class="Box-row border-0"><span class="text-italic">{{.}}</span></li>
32
- {{/context}}
33
- </div>
34
- {{/results}}
35
- </ul>
36
-</div>
37
-{{/has_results}}
38
-
39
-{{#no_results}}
40
- <p id="no-results">
41
- {{t.no_results}}
42
- </p>
43
-{{/no_results}}
44
-
45
-<div id="footer" class="mt-4">
46
- <a class="btn" href="#">{{t.back_to_top}}</a>
47
-</div>
48
-
49
-</div>
50
-</div>
51
-
app/gollum_templates/searchbar.mustache
... ...
@@ -1,3 +0,0 @@
1
-<form class="search-form" action="{{search_path}}" method="get" id="search-form">
2
- <input type="text" class="form-control input-block input-sm" name="q" id="search-query" placeholder="{{tt.searchbar.placeholder}}" aria-label="{{tt.searchbar.aria.label}}" autocomplete="off">
3
-</form>
... ...
\ No newline at end of file
app/gollum_templates/wiki_content.mustache
... ...
@@ -1,64 +0,0 @@
1
-<div id="wiki-content" class="px-2 px-lg-0">
2
- <h1 class="header-title text-center text-md-left pt-4">
3
- {{page_header}}
4
- </h1>
5
- <div class="breadcrumb">{{{breadcrumb}}}</div>
6
-
7
- <div class="{{#has_header}}has-header{{/has_header}}{{#has_footer}} has-footer{{/has_footer}}{{#has_sidebar}} has-sidebar has-{{bar_side}}bar{{/has_sidebar}}{{#has_toc}} has-toc{{/has_toc}}">
8
- {{#has_toc}}
9
- <div id="wiki-toc-main">
10
- {{{toc_content}}}
11
- </div>
12
- {{/has_toc}}
13
- <div id="wiki-body" class="gollum-{{format}}-content">
14
- {{#has_header}}
15
- <div id="wiki-header" class="gollum-{{header_format}}-content">
16
- <div id="header-content" class="markdown-body">
17
- {{{header_content}}}
18
- </div>
19
- </div>
20
- {{/has_header}}
21
- <div class="main-content clearfix container-lg">
22
- <div class="markdown-body {{#header_enum?}}header-enum{{/header_enum?}} {{#has_sidebar}}float-md-{{body_side}} col-md-9{{/has_sidebar}}" {{#header_enum?}}style="--header-enum-style:{{header_enum_style}};"{{/header_enum?}}>
23
- {{{rendered_metadata}}}
24
- {{{content}}}
25
- </div>
26
- {{#has_sidebar}}
27
- <div id="wiki-sidebar" class="Box Box--condensed float-md-{{body_side}} col-md-3">
28
- <div id="sidebar-content" class="gollum-{{sidebar_format}}-content markdown-body px-4">
29
- {{{sidebar_content}}}
30
- </div>
31
- </div>
32
- {{/has_sidebar}}
33
- </div>
34
- </div>
35
- {{#has_footer}}
36
- <div id="wiki-footer" class="gollum-{{footer_format}}-content my-2">
37
- <div id="footer-content" class="Box Box-condensed markdown-body px-4">
38
- {{{footer_content}}}
39
- </div>
40
- </div>
41
- {{/has_footer}}
42
-
43
-
44
- </div>
45
-
46
-
47
- <div id="footer" class="pt-4">
48
- {{^historical}}
49
- {{^preview}}
50
- {{#allow_editing}}
51
- <p id="last-edit"><div class="dotted-spinner hidden"></div> <a id="page-info-toggle" data-pagepath="{{path}}">{{tt.wiki_content.last_edit}}</a></p>
52
- <p>
53
- <a id="delete-link" href="{{escaped_url_path}}" data-confirm="{{tt.wiki_content.delete_link.confirm}}"><span>{{tt.wiki_content.delete_link.title}}</span></a>
54
- </p>
55
- {{/allow_editing}}
56
- {{/preview}}
57
- {{/historical}}
58
- {{#historical}}
59
- <p>This version of the page was edited by <b>{{author}}</b> at <time datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>. <a href="{{full_url_path}}">View the most recent version.</a></p>
60
- {{/historical}}
61
- </div>
62
-
63
-
64
-</div>
app/views/gollum/commit.mustache
... ...
@@ -0,0 +1,29 @@
1
+<div id="wiki-wrapper" class="compare">
2
+ <div id="head">
3
+ {{>navbar}}
4
+ <h1 class="header-title text-center text-md-left py-4">
5
+ {{message}}
6
+ </h1>
7
+ {{author}} committed <time datetime="{{datetime}}">{{authored_date}}</time>
8
+ <span class="px-2 float-right">commit <code>{{version}}</code></span>
9
+ </div>
10
+
11
+ <div id="compare-content">
12
+ {{#files}}
13
+ <div class="Box data highlight my-3 text-mono">
14
+ <div class="Box-header Box--condensed Box-header--gray">
15
+ <code>{{path}}</code>
16
+ </div>
17
+ <table>
18
+ {{#lines}}
19
+ <tr>
20
+ <td class="line_numbers">{{ldln}}</td>
21
+ <td class="line_numbers">{{rdln}}</td>
22
+ <td><div class="{{class}} pl-2">{{line}}</div></td>
23
+ </tr>
24
+ {{/lines}}
25
+ </table>
26
+ </div>
27
+ {{/files}}
28
+ </div>
29
+</div>
app/views/gollum/compare.mustache
... ...
@@ -0,0 +1,84 @@
1
+<div id="wiki-wrapper" class="compare">
2
+ <div id="head">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{t.comparing_versions_of}}
7
+ </h1>
8
+ </div>
9
+
10
+{{#message}}
11
+ <p>{{message}}</p>
12
+{{/message}}
13
+
14
+ <div id="compare-content">
15
+
16
+ <div class="py-4" id="actions">
17
+ {{#show_revert}}
18
+ {{#allow_editing}}
19
+ <form name="gollum-revert" action="{{revert_path}}/{{escaped_url_path}}/{{before}}/{{after}}" method="post" id="gollum-revert-form"></form>
20
+ <span class="pb-4">
21
+ <button
22
+ class="btn btn-sm"
23
+ onclick="$('#gollum-revert-form').submit()"
24
+ type="submit"
25
+ >
26
+ {{t.revert}}
27
+ </button>
28
+ </span>
29
+ {{/allow_editing}}
30
+ {{/show_revert}}
31
+
32
+ <a
33
+ class="btn btn-sm action-page-history"
34
+ href="{{history_path}}/{{escaped_url_path}}"
35
+ >
36
+ {{t.back_to_page_history}}
37
+ </a>
38
+ </div>
39
+
40
+ <div class="Box data highlight text-mono">
41
+ <div class="Box-header Box--condensed Box-header--gray">
42
+ {{path}}
43
+
44
+ <span class="px-2 float-right">
45
+ {{t.comparing_from}}
46
+ </span>
47
+ </div>
48
+
49
+ <table>
50
+ {{#lines}}
51
+ <tr>
52
+ <td class="line_numbers">{{ldln}}</td>
53
+ <td class="line_numbers">{{rdln}}</td>
54
+ <td>
55
+ <div class="{{class}} pl-2">{{line}}</div>
56
+ </td>
57
+ </tr>
58
+ {{/lines}}
59
+ </table>
60
+ </div>
61
+ </div>
62
+
63
+ <div class="pt-4" id="footer">
64
+ {{#show_revert}}
65
+ {{#allow_editing}}
66
+ <span class="pt-4">
67
+ <button
68
+ class="btn btn-sm gollum-revert-button"
69
+ onclick="$('#gollum-revert-form').submit()"
70
+ type="submit"
71
+ >
72
+ {{t.revert}}
73
+ </button>
74
+ </span>
75
+ {{/allow_editing}}
76
+ {{/show_revert}}
77
+
78
+ <div class="pt-4">
79
+ <a href="#">
80
+ {{t.back_to_top}}
81
+ </a>
82
+ </div>
83
+ </div>
84
+</div>
app/views/gollum/create.mustache
... ...
@@ -0,0 +1,26 @@
1
+<div id="wiki-wrapper" class="create">
2
+ <div id="head">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{tt.create.title}}
7
+ </h1>
8
+ </div>
9
+<div id="wiki-content" class="create edit">
10
+ <div class="tabnav">
11
+ <nav class="tabnav-tabs" aria-label="Toggle edit or preview mode">
12
+ <a href="#" id="edit" class="tabnav-tab selected" aria-current="page">
13
+ {{tt.create.edit}}
14
+ </a>
15
+ <a href="#" id="preview" class="tabnav-tab">{{tt.create.preview}}</a>
16
+ </nav>
17
+ </div>
18
+
19
+ <div class="has-sidebar tabnav-div" id="edit-content">
20
+ {{>editor}}
21
+ </div>
22
+ <div class="tabnav-div" id="preview-content">
23
+ </div>
24
+</div>
25
+</div>
26
+{{something}}
app/views/gollum/edit.mustache
... ...
@@ -0,0 +1,24 @@
1
+<div id="wiki-wrapper" class="edit">
2
+ <div id="head">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{t.title}}
7
+ </h1>
8
+ </div>
9
+
10
+ <div class="tabnav">
11
+ <nav class="tabnav-tabs">
12
+ <button id="edit" class="tabnav-tab selected" aria-current="page">
13
+ {{t.edit}}
14
+ </button>
15
+
16
+ <button id="preview" class="tabnav-tab">
17
+ {{t.preview}}
18
+ </button>
19
+ </nav>
20
+ </div>
21
+
22
+ <div class="tabnav-div" id="edit-content">{{>editor}}</div>
23
+ <div class="tabnav-div" id="preview-content"></div>
24
+</div>
app/views/gollum/editor.mustache
... ...
@@ -0,0 +1,215 @@
1
+<div id="gollum-editor" data-escaped-name="{{escaped_name}}" class="{{#is_create_page}}create{{/is_create_page}}{{#is_edit_page}}edit{{/is_edit_page}} {{#allow_uploads}}uploads-allowed{{/allow_uploads}} tex2jax_ignore">
2
+{{#is_create_page}}
3
+<form id="gollum-editor-form" name="gollum-editor" action="{{create_path}}" method="post">
4
+{{/is_create_page}}
5
+{{#is_edit_page}}
6
+<form id="gollum-editor-form" name="gollum-editor" action="{{edit_path}}/{{escaped_name}}" method="post">
7
+{{/is_edit_page}}
8
+ <fieldset id="gollum-editor-fields">
9
+ {{#is_create_page}}
10
+ <div id="gollum-editor-title-field" class="mb-4">
11
+ <label for="page" class="jaws">Page Title</label>
12
+ <input class="form-control mb-2 input-lg input-block text-bold f5" placeholder="Page title" type="text" name="page" id="gollum-editor-page-title" value="{{page_name}}">
13
+ {{#has_path}}
14
+ <p class="path_note"><strong>{{tt.editor.note.title}}</strong> {{tt.editor.note.content}}</p>
15
+ {{/has_path}}
16
+ </div>
17
+ {{/is_create_page}}
18
+ {{#is_edit_page}}
19
+ <input type="hidden" name="page" id="gollum-editor-page-title" value="{{page_name}}">
20
+ <input type="hidden" name="etag" id="gollum-editor-etag" value="{{etag}}">
21
+ {{/is_edit_page}}
22
+ <input type="hidden" name="path" id="gollum-editor-page-path" value="{{path}}">
23
+
24
+ <div id="gollum-editor-function-bar" class="border-bottom clearfix mb-2">
25
+ <div id="gollum-editor-function-buttons" class="overflow-auto no-wrap">
26
+ <div class="BtnGroup">
27
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-h1" title="{{tt.editor.function_bar.heading1.title}}">{{tt.editor.function_bar.heading1.value}}</button>
28
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-h2" title="{{tt.editor.function_bar.heading2.title}}">{{tt.editor.function_bar.heading2.value}}</button>
29
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-h3" title="{{tt.editor.function_bar.heading3.title}}">{{tt.editor.function_bar.heading3.value}}</button>
30
+ </div>
31
+
32
+ <div class="BtnGroup">
33
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-link" title="{{tt.editor.function_bar.link}}">{{#octicon}}link{{/octicon}}</button>
34
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-image" title="{{tt.editor.function_bar.image}}">{{#octicon}}image{{/octicon}}</button>
35
+ </div>
36
+
37
+ <div class="BtnGroup">
38
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-bold" title="{{tt.editor.function_bar.bold}}">{{#octicon}}bold{{/octicon}}</button>
39
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-italic" title="{{tt.editor.function_bar.italic}}">{{#octicon}}italic{{/octicon}}</button>
40
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-code" title="{{tt.editor.function_bar.code}}">{{#octicon}}code{{/octicon}}</button>
41
+ </div>
42
+
43
+ <div class="BtnGroup">
44
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-ul" title="{{tt.editor.function_bar.unordered_list}}">{{#octicon}}list-unordered{{/octicon}}</button>
45
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-ol" title="{{tt.editor.function_bar.ordered_list}}">{{#octicon}}list-ordered{{/octicon}}</button>
46
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-blockquote" title="{{tt.editor.function_bar.blockquote}}">{{#octicon}}quote{{/octicon}}</button>
47
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-hr" title="{{tt.editor.function_bar.horizontal_rule}}">{{#octicon}}horizontal-rule{{/octicon}}</button>
48
+ </div>
49
+
50
+ {{#critic_markup}}
51
+ <div class="BtnGroup">
52
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-critic-accept" title="{{tt.editor.function_bar.accept_selected_criticMarkup}}">{{#octicon}}plus{{/octicon}}</button>
53
+ <button class="btn btn-sm BtnGroup-item function-button" id="function-critic-reject" title="{{tt.editor.function_bar.reject_selected_criticMarkup}}">{{#octicon}}dash{{/octicon}}</button>
54
+ </div>
55
+ {{/critic_markup}}
56
+
57
+ <button class="btn btn-sm function-button" id="function-text-direction" title="{{tt.editor.function_bar.reverse_text_direction}}">{{#octicon}}arrow-both{{/octicon}}</button>
58
+
59
+ <button
60
+ aria-label="{{tt.editor.function_bar.help}}"
61
+ class="btn btn-sm function-button"
62
+ data-help-text="{{help_text}}"
63
+ id="function-help"
64
+ title="{{tt.editor.function_bar.help}}">
65
+ {{#octicon}}question{{/octicon}}
66
+ </button>
67
+
68
+ </div>
69
+
70
+ <div id="gollum-editor-selector-wrapper" class="d-flex flex-wrap float-right">
71
+ <div id="gollum-editor-keybinding-selector" class="mx-2">
72
+
73
+ <details class="details-reset details-overlay">
74
+ <summary class="btn btn-sm btn-block" aria-haspopup="true">
75
+ {{#octicon}}gear{{/octicon}}
76
+ <span class="mr-1">{{default_keybinding}}</span>
77
+ <div class="dropdown-caret"></div>
78
+ </summary>
79
+ <div id="keybinding" class="SelectMenu BasicSelect">
80
+ <div class="SelectMenu-modal">
81
+ <header class="SelectMenu-header">
82
+ <h3 class="SelectMenu-title text-left">{{tt.editor.function_bar.keybinding}}</h3>
83
+ </header>
84
+ <div class="SelectMenu-list">
85
+ {{#keybindings}}
86
+ <button class="SelectMenu-item" role="menuitemcheckbox" {{#selected}}aria-checked="true"{{/selected}} value="{{name}}">
87
+ <!-- <%= octicon "check", class: "SelectMenu-icon SelectMenu-icon--check" %> -->
88
+ {{#octicon}}check 16 16 SelectMenu-icon SelectMenu-icon--check{{/octicon}}
89
+ {{name}}
90
+ </button>
91
+ {{/keybindings}}
92
+ </div>
93
+ </div>
94
+ </div>
95
+ </details>
96
+ </div>
97
+
98
+ <div id="gollum-editor-format-selector">
99
+ <input type="hidden" id="format" name="format" value={{format}}>
100
+ <details class="details-reset details-overlay">
101
+ <summary class="btn btn-sm btn-block" aria-haspopup="true">
102
+ {{#octicon}}pencil{{/octicon}}
103
+ <span class="mr-1">{{format}}</span>
104
+ <div class="dropdown-caret"></div>
105
+ </summary>
106
+ <div id="wiki_format" class="SelectMenu BasicSelect">
107
+ <div class="SelectMenu-modal">
108
+ <header class="SelectMenu-header">
109
+ <h3 class="SelectMenu-title text-left">{{tt.editor.function_bar.wiki_format}}</h3>
110
+ </header>
111
+ <div class="SelectMenu-list">
112
+ {{#formats}}
113
+ {{#enabled}}
114
+ <button class="SelectMenu-item" value="{{id}}" data-ext="{{ext}}" role="menuitemcheckbox" {{#selected}}aria-checked="true"{{/selected}}>
115
+ <!-- <%= octicon "check", class: "SelectMenu-icon SelectMenu-icon--check" %> -->
116
+ {{#octicon}}check 16 16 SelectMenu-icon SelectMenu-icon--check{{/octicon}}
117
+ {{name}}
118
+ </button>
119
+ {{/enabled}}
120
+ {{/formats}}
121
+ <div class="SelectMenu-divider text-left">{{tt.editor.function_bar.rendering_unavailable_for}}</div>
122
+ {{#formats}}
123
+ {{^enabled}}
124
+ <button class="SelectMenu-item" value="{{id}}" data-ext="{{ext}}" role="menuitemcheckbox" {{#selected}}aria-checked="true"{{/selected}} disabled>
125
+ <!-- <%= octicon "check", class: "SelectMenu-icon SelectMenu-icon--check" %> -->
126
+ {{#octicon}}check 16 16 SelectMenu-icon SelectMenu-icon--check{{/octicon}}
127
+ {{name}}
128
+ {{/enabled}}
129
+ {{/formats}}
130
+ </div>
131
+ </div>
132
+ </div>
133
+ </details>
134
+ </div>
135
+ </div>
136
+
137
+ </div>
138
+
139
+ <div id="gollum-editor-help" class="jaws border rounded-2 overflow-hidden mb-2">
140
+ <nav id="gollum-editor-help-parent" class="menu rounded-0 float-left border-top-0 border-bottom-0 border-left-0">
141
+ <a href="javascript:void(0);" class="selected menu-item border-bottom">Help 1</a>
142
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 1</a>
143
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 1</a>
144
+ </nav>
145
+ <nav id="gollum-editor-help-list" class="menu rounded-0 float-left border-top-0 border-bottom-0 border-left-0">
146
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 2</a>
147
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 3</a>
148
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 4</a>
149
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 5</a>
150
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 6</a>
151
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 7</a>
152
+ <a href="javascript:void(0);" class="menu-item border-bottom">Help 8</a>
153
+ </nav>
154
+ <div id="gollum-editor-help-wrapper">
155
+ <div id="gollum-editor-help-content" class="f4">
156
+ <p>
157
+ </p>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ <div id="gollum-autorecover-msg" class="flash my-2" hidden>
162
+ {{tt.editor.restore_button.prompt}}
163
+ <button id="gollum-autorecover-button" class="btn btn-sm primary flash-action">{{tt.editor.restore_button.value}}</button>
164
+ </div>
165
+ <textarea id="gollum-editor-body" class="form-control text-mono"
166
+ data-markup-lang="{{format}}" name="content" class="mousetrap">{{content}}</textarea>
167
+ <div id="uploading">
168
+ <p><div class="dotted-spinner"></div> Uploading file...</p>
169
+ </div>
170
+
171
+ {{#header}}
172
+
173
+ <div id="gollum-editor-edit-header" class="collapsed border-bottom pt-2">
174
+ <button class="btn btn-sm collapsable mb-2">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable mb-2" hidden>{{#octicon}}triangle-up{{/octicon}}</button>
175
+ <h4 class="d-inline-block pl-2 f3">Header</h4>
176
+ <textarea id="gollum-editor-header" name="header" class="form-control input-block mb-2 text-mono overflow-auto">{{header}}</textarea>
177
+ </div>
178
+ {{/header}}
179
+
180
+ {{#footer}}
181
+ <div id="gollum-editor-edit-footer" class="collapsed border-bottom pt-2">
182
+ <button class="btn btn-sm collapsable mb-2">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable mb-2" hidden>{{#octicon}}triangle-up{{/octicon}}</button>
183
+ <h4 class="d-inline-block pl-2 f3">Footer</h4>
184
+ <textarea id="gollum-editor-footer" name="footer" class="form-control input-block mb-2 text-mono overflow-auto">{{footer}}</textarea>
185
+ </div>
186
+ {{/footer}}
187
+
188
+ {{#sidebar}}
189
+ <div id="gollum-editor-edit-sidebar" class="collapsed border-bottom pt-2">
190
+ <button class="btn btn-sm collapsable mb-2">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable mb-2" hidden>{{#octicon}}triangle-up{{/octicon}}</button>
191
+ <h4 class="d-inline-block pl-2 f3">Sidebar</h4>
192
+
193
+ <textarea id="gollum-editor-sidebar" name="sidebar" class="form-control input-block mb-2 text-mono overflow-auto">{{sidebar}}</textarea>
194
+ </div>
195
+ {{/sidebar}}
196
+
197
+ <div id="gollum-editor-edit-summary" class="my-2">
198
+ <label for="message" class="jaws">Edit message:</label>
199
+ {{#is_create_page}}
200
+ <input type="text" name="message" class="form-control input-lg input-block f5 color-fg-subtle" id="gollum-editor-message-field" value="Created {{page_name}} ({{format}})">
201
+ {{/is_create_page}}
202
+ {{#is_edit_page}}
203
+ <input type="text" name="message" class="form-control input-lg input-block f5 color-fg-subtle" id="gollum-editor-message-field" value="Updated {{page_name}} ({{format}})">
204
+ {{/is_edit_page}}
205
+ </div>
206
+
207
+ <span class="jaws"><br></span>
208
+ <div class="form-actions">
209
+ <input type="submit" id="gollum-editor-submit" class="btn btn-primary" value="{{tt.editor.save_button.value}}" title="{{tt.editor.save_button.title}}">
210
+ <a id="gollum-editor-cancel" class="btn" type="button" title="{{tt.editor.cancel_button.title}}" onClick="if(confirm('{{tt.editor.cancel_button.confirm}}')) { window.history.back()}">{{tt.editor.cancel_button.value}}</a>
211
+ </div>
212
+ </fieldset>
213
+</form>
214
+</div>
215
+<div id="gollum-saved-msg" class="position-fixed bottom-0 left-0"></div>
app/views/gollum/error.mustache
... ...
@@ -0,0 +1,8 @@
1
+<div id="wiki-wrapper" class="error">
2
+ <div id="error">
3
+ <h1>{{t.error}}</h1>
4
+ <p>
5
+ {{message}}
6
+ </p>
7
+ </div>
8
+</div>
app/views/gollum/history.mustache
... ...
@@ -0,0 +1,51 @@
1
+<div id="wiki-wrapper" class="history">
2
+<div id="head">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{t.history_for}}
7
+ </h1>
8
+</div>
9
+
10
+<div id="page-history">
11
+
12
+ {{>pagination}}
13
+
14
+ <form name="selection-form" id="selection-form" method="get" action="{{compare_path}}/{{escaped_url_path}}"></form>
15
+
16
+ <div id="page-history-list" class="Box Box--condensed flex-auto">
17
+ <form id="version-form">
18
+ <ul>
19
+ {{#versions}}
20
+ <li class="Box-row border-top Box-row--hover-gray d-flex flex-items-center">
21
+ <span class="pr-2"><input class="checkbox" type="checkbox" name="versions[]" value="{{id}}"></span>
22
+ <span class="float-left col-2" id="user-icons">{{>author_template}}</span>
23
+ <time class="flex-auto col-1 color-fg-subtle" datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>
24
+ <span class="flex-auto col-5">{{message}}</span>
25
+ <span class="pl-4 float-right">
26
+ <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
27
+ <a
28
+ class="btn btn-outline"
29
+ href="{{href_page}}"
30
+ title="{{t.browse_in_history_description}}"
31
+ >
32
+ {{#octicon}}code{{/octicon}}
33
+ </a>
34
+ </span>
35
+ </li>
36
+ {{/versions}}
37
+ </ul>
38
+ </form>
39
+ </div>
40
+
41
+ <div id="footer">
42
+ <div class="pt-4">
43
+ <button
44
+ class="btn btn-sm action-compare-revision"
45
+ type="submit"
46
+ >
47
+ {{t.compare_revisions}}
48
+ </button>
49
+ </div>
50
+ </div>
51
+</div>
app/views/gollum/history_authors/gravatar.mustache
... ...
@@ -0,0 +1,2 @@
1
+<img src="https://secure.gravatar.com/avatar/{{user_icon}}?s=20" class="mini-gravatar" onerror="brokenAvatarImage(this);" />
2
+&nbsp;<a href="https://gravatar.com/{{user_icon}}">{{author}}</a>
... ...
\ No newline at end of file
app/views/gollum/history_authors/identicon.mustache
... ...
@@ -0,0 +1,2 @@
1
+<img src="" alt="avatar: {{author}}" class="identicon" data-identicon="{{user_icon}}" onerror="brokenAvatarImage(this);" />
2
+&nbsp;<span>{{author}}</span>
... ...
\ No newline at end of file
app/views/gollum/history_authors/none.mustache
... ...
@@ -0,0 +1,2 @@
1
+{{#octicon}}person{{/octicon}}
2
+&nbsp;<span>{{author}}</span>
... ...
\ No newline at end of file
app/views/gollum/latest_changes.mustache
... ...
@@ -0,0 +1,36 @@
1
+<div id="wiki-wrapper" class="history">
2
+ <div id="head">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{title}}
7
+ </h1>
8
+ </div>
9
+
10
+{{>pagination}}
11
+
12
+<div id="wiki-history">
13
+
14
+<ul class="Box flex-auto">
15
+ {{#versions}}
16
+ <li class="Box-row Box-row--hover-gray border-top d-flex flex-items-center">
17
+ <span class="float-left col-2" id="user-icons">{{>author_template}}</span>
18
+ <time class="flex-auto col-1 color-fg-subtle" datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>
19
+ <span class="flex-auto col-5">{{message}}<br/>
20
+ {{#files}}
21
+ <span class="flex-auto col-2">{{#renamed}}{{renamed}} -> {{/renamed}}<a href="{{link}}">{{file}}</a></span><br/>
22
+ {{/files}}
23
+ </span>
24
+ <span class="pl-4 float-right">
25
+ <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
26
+ </span>
27
+ </li>
28
+ {{/versions}}
29
+</ul>
30
+
31
+
32
+</div>
33
+<div id="footer">
34
+
35
+</div>
36
+</div>
app/views/gollum/layout.mustache
... ...
@@ -0,0 +1,140 @@
1
+<!DOCTYPE html>
2
+<html>
3
+<head>
4
+ <meta http-equiv="Content-type" content="text/html;charset=utf-8">
5
+ <meta name="MobileOptimized" content="width">
6
+ <meta name="HandheldFriendly" content="true">
7
+ <meta name="viewport" content="width=device-width">
8
+ {{#sprockets_stylesheet_tag}}app{{/sprockets_stylesheet_tag}}
9
+ {{#sprockets_stylesheet_tag}}print print{{/sprockets_stylesheet_tag}}
10
+
11
+
12
+ {{#css}}<link rel="stylesheet" type="text/css" href="{{custom_css}}" media="all">{{/css}}
13
+ {{#noindex}}<meta name="robots" content="noindex, nofollow" />{{/noindex}}
14
+
15
+ <script>
16
+ var criticMarkup = '{{critic_markup}}';
17
+ var baseUrl = '{{base_url}}';
18
+ var showLocalTime = {{{show_local_time}}};
19
+ var uploadDest = 'uploads';
20
+ var perPageUploads = '{{per_page_uploads}}';
21
+ if (perPageUploads == 'true') {
22
+ uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "").replace(baseUrl, "")
23
+ }
24
+ {{#page}}
25
+ var pageFullPath = '{{escaped_url_path}}';
26
+ var pageFormat = '{{format}}';
27
+ {{/page}}
28
+ {{#has_search_terms}}
29
+ var searchTerms = [{{#search_terms}}'{{.}}', {{/search_terms}}
30
+ ];
31
+ {{/has_search_terms}}
32
+ {{#is_create_page}}
33
+ var default_markup = '{{default_markup}}';
34
+ {{/is_create_page}}
35
+ {{#has_editor}}
36
+ var default_keybinding = '{{default_keybinding}}';
37
+ {{/has_editor}}
38
+
39
+ </script>
40
+ {{#sprockets_javascript_tag}}app{{/sprockets_javascript_tag}}
41
+ {{#has_editor}}
42
+ {{#sprockets_javascript_tag}}editor{{/sprockets_javascript_tag}}
43
+ {{/has_editor}}
44
+
45
+ {{#katex}}
46
+ {{#sprockets_stylesheet_tag}}katex/dist/katex{{/sprockets_stylesheet_tag}}
47
+ <script defer src="{{#sprockets_asset_path}}gollum.katex.js{{/sprockets_asset_path}}"></script>
48
+ <script type="text/javascript">
49
+ var katex_conf = {
50
+ delimiters: [
51
+ {left: '$$', right: '$$', display: true},
52
+ {left: '$', right: '$', display: false},
53
+ {left: '\\(', right: '\\)', display: false},
54
+ {left: '\\[', right: '\\]', display: true}
55
+ ],
56
+ throwOnError : false
57
+ };
58
+ </script>
59
+ {{/katex}}
60
+
61
+ {{#mathjax}}
62
+ <script type="text/javascript">
63
+ window.MathJax = {
64
+ tex: {
65
+ inlineMath: [ ['$','$'], ['\\(','\\)'] ],
66
+ displayMath: [ ['$$','$$'], ['\\[','\\]'] ],
67
+ processEscapes: true,
68
+ autoload: {
69
+ color: [],
70
+ colorv2: ['color']
71
+ },
72
+ packages: {'[+]': ['noerrors']}
73
+ },
74
+ options: {
75
+ ignoreHtmlClass: 'tex2jax_ignore',
76
+ processHtmlClass: 'tex2jax_process',
77
+ safeOptions: {
78
+ allow: {
79
+ //
80
+ // Values can be "all", "safe", or "none"
81
+ //
82
+ URLs: 'safe',
83
+ classes: 'none',
84
+ cssIDs: 'none',
85
+ styles: 'none',
86
+ },
87
+ },
88
+ },
89
+ loader: {
90
+ load: ['[tex]/noerrors', 'ui/safe']
91
+ },
92
+ };
93
+ </script>
94
+ {{/mathjax}}
95
+
96
+ {{#mermaid}}
97
+ <script>
98
+ var mermaid_conf = {
99
+ startOnLoad: true,
100
+ securityLevel: 'sandbox'
101
+ };
102
+ </script>
103
+ {{/mermaid}}
104
+
105
+ {{#js}}
106
+ <script type="text/javascript" src="{{custom_js}}"></script>
107
+ {{/js}}
108
+ {{#math_config}}
109
+ <script type="text/javascript" src="{{math_config}}"></script>
110
+ {{/math_config}}
111
+
112
+ {{#mathjax}}
113
+ <script async src="{{mathjax_js}}"></script>
114
+ {{/mathjax}}
115
+ {{#katex}}
116
+ <script type="text/javascript">
117
+ document.addEventListener("DOMContentLoaded", function() {
118
+ var page_content_div = document.getElementById('wiki-content');
119
+ if (page_content_div){
120
+ renderMathInElement(page_content_div, katex_conf);
121
+ }
122
+ });
123
+ </script>
124
+ {{/katex}}
125
+
126
+ {{#mermaid}}
127
+ {{#sprockets_javascript_tag}}gollum.mermaid.js{{/sprockets_javascript_tag}}
128
+ <script>
129
+ mermaid.initialize(mermaid_conf);
130
+ </script>
131
+ {{/mermaid}}
132
+
133
+ <title>{{title}}</title>
134
+</head>
135
+<body>
136
+<div class="container-lg clearfix">
137
+{{{yield}}}
138
+</div>
139
+</body>
140
+</html>
app/views/gollum/mobilenav.mustache
... ...
@@ -0,0 +1,72 @@
1
+<details class="details-reset details-overlay">
2
+ <summary class="btn btn-invisible" aria-haspopup="true">
3
+ <span aria-label="Open menu">☰</span>
4
+ </summary>
5
+
6
+ <div class="SelectMenu mx-sm-2">
7
+ <div class="SelectMenu-modal">
8
+ <div class="SelectMenu-divider py-3">
9
+ <h2 class="h6">Current Page</h2>
10
+ <div>{{page_header}}</div>
11
+ </div>
12
+
13
+ {{#history}}
14
+ <a
15
+ class="SelectMenu-item"
16
+ href="{{history_path}}/{{escaped_url_path}}"
17
+ role="menuitem"
18
+ >
19
+ <span>History</span>
20
+ </a>
21
+ {{/history}}
22
+
23
+ {{#allow_editing}}
24
+ {{#allow_uploads}}
25
+ <a class="SelectMenu-item minibutton-upload-page" role="menuitem">
26
+ <span>Upload</span>
27
+ </a>
28
+ {{/allow_uploads}}
29
+
30
+ {{#editable}}
31
+ <a class="SelectMenu-item minibutton-rename-page" role="menuitem">
32
+ <span>Rename</span>
33
+ </a>
34
+
35
+ <a
36
+ class="SelectMenu-item minibutton-edit-page"
37
+ href="{{edit_path}}/{{escaped_url_path}}"
38
+ role="menuitem"
39
+ >
40
+ <span>Edit</span>
41
+ </a>
42
+ {{/editable}}
43
+ {{/allow_editing}}
44
+
45
+ <div class="SelectMenu-divider py-3">
46
+ <h2 class="h6">Main Menu</h2>
47
+ </div>
48
+
49
+ <div class="SelectMenu-list">
50
+ <a class="SelectMenu-item" role="menuitem" href="{{page_route}}">
51
+ Home
52
+ </a>
53
+
54
+ {{#overview}}
55
+ <a class="SelectMenu-item" role="menuitem" href="{{overview_path}}">
56
+ Overview
57
+ </a>
58
+ {{/overview}}
59
+
60
+ {{#latest_changes}}
61
+ <a
62
+ class="SelectMenu-item"
63
+ href="{{latest_changes_path}}"
64
+ role="menuitem"
65
+ >
66
+ Latest Changes
67
+ </a>
68
+ {{/latest_changes}}
69
+ </div>
70
+ </div>
71
+ </div>
72
+</details>
app/views/gollum/navbar.mustache
... ...
@@ -0,0 +1,102 @@
1
+<nav class="TableObject
2
+ actions
3
+ border-bottom
4
+ border-md-0
5
+ p-2
6
+ pt-lg-4
7
+ px-lg-0
8
+ overflow-x-scroll">
9
+ <div class="TableObject-item hide-lg hide-xl">
10
+ {{>mobilenav}}
11
+ </div>
12
+
13
+ <div class="TableObject-item hide-sm hide-md">
14
+ <button class="btn btn-sm" id="minibutton-home"
15
+ onclick="window.location.href='{{page_route}}';"
16
+ >
17
+ {{tt.navbar.home_button}}
18
+ </button>
19
+ </div>
20
+
21
+ <div
22
+ class="TableObject-item TableObject-item--primary px-2"
23
+ {{^search}}style="visibility:hidden"{{/search}}
24
+ >
25
+ {{>searchbar}}
26
+ </div>
27
+
28
+ <div class="TableObject-item hide-sm hide-md">
29
+ <div class="BtnGroup d-flex">
30
+ {{#allow_editing}}
31
+ {{#latest_changes}}
32
+ <button
33
+ class="btn BtnGroup-item btn-sm"
34
+ onclick="window.location.href='{{latest_changes_path}}';"
35
+ id="minibutton-latest-changes"
36
+ >
37
+ {{tt.navbar.latest_changes_button}}
38
+ </button>
39
+ {{/latest_changes}}
40
+ {{/allow_editing}}
41
+ </div>
42
+ </div>
43
+
44
+ <div class="TableObject-item px-2">
45
+ <div class="BtnGroup d-flex">
46
+ {{#allow_editing}}
47
+ {{#history}}
48
+ <button
49
+ class="btn BtnGroup-item btn-sm hide-sm hide-md"
50
+ onclick="window.location.href='{{history_path}}/{{escaped_url_path}}/{{version}}';"
51
+ id="minibutton-history"
52
+ >
53
+ {{tt.navbar.history_button}}
54
+ </button>
55
+ {{/history}}
56
+
57
+ {{#allow_uploads}}
58
+ <button
59
+ class="btn BtnGroup-item btn-sm hide-sm hide-md minibutton-upload-page"
60
+ >
61
+ {{tt.navbar.upload_button}}
62
+ </button>
63
+ {{/allow_uploads}}
64
+
65
+ {{#editable}}
66
+ <button
67
+ class="btn BtnGroup-item btn-sm hide-sm hide-md minibutton-rename-page"
68
+ >
69
+ {{tt.navbar.rename_button}}
70
+ </button>
71
+ <button
72
+ class="btn BtnGroup-item btn-sm hide-sm hide-md"
73
+ onclick="window.location.href='{{edit_path}}/{{escaped_url_path}}';"
74
+ id="minibutton-edit-page"
75
+ >
76
+ {{tt.navbar.edit_button}}
77
+ </button>
78
+ {{/editable}}
79
+ {{/allow_editing}}
80
+ </div>
81
+ </div>
82
+
83
+ {{#allow_editing}}
84
+ {{#editable}}
85
+ <div class="TableObject-item">
86
+ <button class="btn btn-primary btn-sm minibutton-new-page">
87
+ {{tt.navbar.new_button}}
88
+ </button>
89
+ </div>
90
+ {{/editable}}
91
+
92
+ {{^editable}}
93
+ {{#newable}}
94
+ <div class="TableObject-item">
95
+ <button class="btn btn-primary btn-sm minibutton-new-page">
96
+ {{tt.navbar.new_button}}
97
+ </button>
98
+ </div>
99
+ {{/newable}}
100
+ {{/editable}}
101
+ {{/allow_editing}}
102
+</nav>
app/views/gollum/overview.mustache
... ...
@@ -0,0 +1,55 @@
1
+<div id="wiki-wrapper" class="results">
2
+ <div id="head" class="overview">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{title}}
7
+ </h1>
8
+ </div>
9
+<div id="overview">
10
+
11
+{{#has_results}}
12
+ <div id="file-browser">
13
+ <div class="breadcrumb pb-4">
14
+ {{{breadcrumb}}}
15
+ </div>
16
+
17
+ <div class="Box">
18
+ <ul>
19
+ {{#files_folders}}
20
+ <li class="Box-row">
21
+ <span class="pr-2">{{{icon}}}</span>
22
+ <span><a href="{{url}}">{{name}}</a></span>
23
+ {{#allow_editing}}
24
+ {{#is_file}}
25
+ <button
26
+ class="btn btn-sm float-right delete-file"
27
+ data-confirm="{{t.delete_confirmation}}"
28
+ data-file-path="{{file_path}}"
29
+ >
30
+ {{#octicon}}trash{{/octicon}}
31
+ </button>
32
+ {{/is_file}}
33
+ {{/allow_editing}}
34
+ </li>
35
+ {{/files_folders}}
36
+ </ul>
37
+ </div>
38
+
39
+
40
+{{/has_results}}
41
+
42
+{{#no_results}}
43
+ <p id="no-results">
44
+ {{t.no_pages_in}}
45
+ </p>
46
+{{/no_results}}
47
+
48
+</div>
49
+<div class="pt-4" id="footer">
50
+ <a href="#">
51
+ {{t.back_to_top}}
52
+ </a>
53
+</div>
54
+</div>
55
+
app/views/gollum/page.mustache
... ...
@@ -0,0 +1,13 @@
1
+<div id="wiki-wrapper" class="page">
2
+<div id="head">
3
+ {{#navbar?}}{{>navbar}}{{/navbar?}}
4
+</div>
5
+
6
+{{>wiki_content}}
7
+
8
+<form name="rename" method="POST" action="{{rename_path}}/{{escaped_url_path}}">
9
+ <input type="hidden" name="rename"/>
10
+ <input type="hidden" name="message"/>
11
+</form>
12
+
13
+</div>
... ...
\ No newline at end of file
app/views/gollum/pagination.mustache
... ...
@@ -0,0 +1,23 @@
1
+<nav class="paginate-container" aria-label="{{tt.pagination.aria.label}}">
2
+ <div class="pagination" id="pagination">
3
+ <a
4
+ aria-label="{{td.pagination.aria.previous_page}}"
5
+ class="previous_page {{^previous_page}}disabled{{/previous_page}}"
6
+ href="?page_num={{previous_page}}{{query_string}}"
7
+ id="prev"
8
+ rel="prev"
9
+ >
10
+ {{tt.pagination.previous}}
11
+ </a>
12
+
13
+ <a
14
+ aria-label="{{td.pagination.aria.next_page}}"
15
+ class="next_page {{^next_page}}disabled{{/next_page}}"
16
+ href="?page_num={{next_page}}{{query_string}}"
17
+ id="next"
18
+ rel="next"
19
+ >
20
+ {{tt.pagination.next}}
21
+ </a>
22
+ </div>
23
+</nav>
app/views/gollum/search.mustache
... ...
@@ -0,0 +1,51 @@
1
+<div id="wiki-wrapper" class="results">
2
+ <div id="head">
3
+ {{>navbar}}
4
+
5
+ <h1 class="header-title text-center text-md-left py-4">
6
+ {{t.search_results_for}}
7
+ </h1>
8
+ </div>
9
+
10
+{{#has_results}}
11
+
12
+ {{>pagination}}
13
+
14
+<div class="Box Box--condensed search-results" id="search-results">
15
+ <ul>
16
+ <div class="Box-header border-bottom p-0"></div>
17
+ {{#results}}
18
+ <li class="Box-row Box-row--gray search-result">
19
+ <span class="Counter Counter--primary tooltipped tooltipped-w" aria-label="{{filename_count}} hits in filename - {{count}} hits in content">{{filename_count}} - {{count}}</span>&nbsp;
20
+ <span class="text-bold"><a href="{{href}}">{{name}}</a></span>
21
+ <button
22
+ class="btn-link tooltipped tooltipped-w float-right toggle-context"
23
+ aria-label="{{t.aria.show_all}}"
24
+ >
25
+ {{#octicon}}search{{/octicon}}
26
+ </button>
27
+ </li>
28
+
29
+ <div class="search-context">
30
+ {{#context}}
31
+ <li class="Box-row border-0"><span class="text-italic">{{.}}</span></li>
32
+ {{/context}}
33
+ </div>
34
+ {{/results}}
35
+ </ul>
36
+</div>
37
+{{/has_results}}
38
+
39
+{{#no_results}}
40
+ <p id="no-results">
41
+ {{t.no_results}}
42
+ </p>
43
+{{/no_results}}
44
+
45
+<div id="footer" class="mt-4">
46
+ <a class="btn" href="#">{{t.back_to_top}}</a>
47
+</div>
48
+
49
+</div>
50
+</div>
51
+
app/views/gollum/searchbar.mustache
... ...
@@ -0,0 +1,3 @@
1
+<form class="search-form" action="{{search_path}}" method="get" id="search-form">
2
+ <input type="text" class="form-control input-block input-sm" name="q" id="search-query" placeholder="{{tt.searchbar.placeholder}}" aria-label="{{tt.searchbar.aria.label}}" autocomplete="off">
3
+</form>
... ...
\ No newline at end of file
app/views/gollum/wiki_content.mustache
... ...
@@ -0,0 +1,64 @@
1
+<div id="wiki-content" class="px-2 px-lg-0">
2
+ <h1 class="header-title text-center text-md-left pt-4">
3
+ {{page_header}}
4
+ </h1>
5
+ <div class="breadcrumb">{{{breadcrumb}}}</div>
6
+
7
+ <div class="{{#has_header}}has-header{{/has_header}}{{#has_footer}} has-footer{{/has_footer}}{{#has_sidebar}} has-sidebar has-{{bar_side}}bar{{/has_sidebar}}{{#has_toc}} has-toc{{/has_toc}}">
8
+ {{#has_toc}}
9
+ <div id="wiki-toc-main">
10
+ {{{toc_content}}}
11
+ </div>
12
+ {{/has_toc}}
13
+ <div id="wiki-body" class="gollum-{{format}}-content">
14
+ {{#has_header}}
15
+ <div id="wiki-header" class="gollum-{{header_format}}-content">
16
+ <div id="header-content" class="markdown-body">
17
+ {{{header_content}}}
18
+ </div>
19
+ </div>
20
+ {{/has_header}}
21
+ <div class="main-content clearfix container-lg">
22
+ <div class="markdown-body {{#header_enum?}}header-enum{{/header_enum?}} {{#has_sidebar}}float-md-{{body_side}} col-md-9{{/has_sidebar}}" {{#header_enum?}}style="--header-enum-style:{{header_enum_style}};"{{/header_enum?}}>
23
+ {{{rendered_metadata}}}
24
+ {{{content}}}
25
+ </div>
26
+ {{#has_sidebar}}
27
+ <div id="wiki-sidebar" class="Box Box--condensed float-md-{{body_side}} col-md-3">
28
+ <div id="sidebar-content" class="gollum-{{sidebar_format}}-content markdown-body px-4">
29
+ {{{sidebar_content}}}
30
+ </div>
31
+ </div>
32
+ {{/has_sidebar}}
33
+ </div>
34
+ </div>
35
+ {{#has_footer}}
36
+ <div id="wiki-footer" class="gollum-{{footer_format}}-content my-2">
37
+ <div id="footer-content" class="Box Box-condensed markdown-body px-4">
38
+ {{{footer_content}}}
39
+ </div>
40
+ </div>
41
+ {{/has_footer}}
42
+
43
+
44
+ </div>
45
+
46
+
47
+ <div id="footer" class="pt-4">
48
+ {{^historical}}
49
+ {{^preview}}
50
+ {{#allow_editing}}
51
+ <p id="last-edit"><div class="dotted-spinner hidden"></div> <a id="page-info-toggle" data-pagepath="{{path}}">{{tt.wiki_content.last_edit}}</a></p>
52
+ <p>
53
+ <a id="delete-link" href="{{escaped_url_path}}" data-confirm="{{tt.wiki_content.delete_link.confirm}}"><span>{{tt.wiki_content.delete_link.title}}</span></a>
54
+ </p>
55
+ {{/allow_editing}}
56
+ {{/preview}}
57
+ {{/historical}}
58
+ {{#historical}}
59
+ <p>This version of the page was edited by <b>{{author}}</b> at <time datetime="{{datetime}}" data-format="{{date_format}}">{{date}}</time>. <a href="{{full_url_path}}">View the most recent version.</a></p>
60
+ {{/historical}}
61
+ </div>
62
+
63
+
64
+</div>
gollum/lib/gollum/app.rb
... ...
@@ -100,7 +100,7 @@ module Precious
100 100
# Tell mustache where the Views constant lives
101 101
:namespace => Precious,
102 102
# Mustache templates live here
103
- :templates => Rails.root.join('app', 'gollum_templates'),
103
+ :templates => Rails.root.join('app', 'views', 'gollum'),
104 104
105 105
# Tell mustache where the views are
106 106
:views => "#{dir}/views"