ca285312f587cef9708ec186c05d0eebb41eae1d
templates/commit.mustache
... | ... | @@ -0,0 +1,26 @@ |
1 | +<div id="wiki-wrapper" class="compare"> |
|
2 | + <div id="head"> |
|
3 | + <h1 class="py-4">{{message}}</h1> |
|
4 | + {{author}} commited {{authored_date}} |
|
5 | + <span class="px-2 float-right">commit <code>{{version}}</code></span> |
|
6 | + </div> |
|
7 | + |
|
8 | + <div id="compare-content"> |
|
9 | + {{#files}} |
|
10 | + <div class="Box data highlight my-3"> |
|
11 | + <div class="Box-header Box--condensed Box-header--gray"> |
|
12 | + <code>{{path}}</code> |
|
13 | + </div> |
|
14 | + <table> |
|
15 | + {{#lines}} |
|
16 | + <tr> |
|
17 | + <td class="line_numbers">{{ldln}}</td> |
|
18 | + <td class="line_numbers">{{rdln}}</td> |
|
19 | + <td><div class="{{class}} pl-2">{{line}}</div></td> |
|
20 | + </tr> |
|
21 | + {{/lines}} |
|
22 | + </table> |
|
23 | + </div> |
|
24 | + {{/files}} |
|
25 | + </div> |
|
26 | +</div> |
templates/compare.mustache
... | ... | @@ -0,0 +1,52 @@ |
1 | +<div id="wiki-wrapper" class="compare"> |
|
2 | + <div id="head"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4"><span class="f1-light text-gray-light">Comparing versions of</span> {{name}}</h1> |
|
5 | + </div> |
|
6 | + |
|
7 | +{{#message}} |
|
8 | + <p>{{message}}</p> |
|
9 | +{{/message}} |
|
10 | + |
|
11 | + <div id="compare-content"> |
|
12 | + |
|
13 | + <div class="py-4" id="actions"> |
|
14 | + {{#show_revert}} |
|
15 | + {{#allow_editing}} |
|
16 | + <form name="gollum-revert" action="{{revert_path}}/{{escaped_url_path}}/{{before}}/{{after}}" method="post" id="gollum-revert-form"></form> |
|
17 | + <span class="pb-4"> |
|
18 | + <button class="btn btn-sm" type="submit" onclick="$('#gollum-revert-form').submit()">Revert Changes</button> |
|
19 | + </span> |
|
20 | + {{/allow_editing}} |
|
21 | + {{/show_revert}} |
|
22 | + <a href="{{history_path}}/{{escaped_url_path}}" class="btn btn-sm action-page-history">Back to Page History</a> |
|
23 | + </div> |
|
24 | + |
|
25 | + <div class="Box data highlight"> |
|
26 | + <div class="Box-header Box--condensed Box-header--gray">{{path}} <span class="px-2 float-right">Comparing {{before}} to {{after}}</span></div> |
|
27 | + <table > |
|
28 | + {{#lines}} |
|
29 | + <tr> |
|
30 | + <td class="line_numbers">{{ldln}}</td> |
|
31 | + <td class="line_numbers">{{rdln}}</td> |
|
32 | + <td> |
|
33 | + <div class="{{class}} pl-2">{{line}}</div> |
|
34 | + </td> |
|
35 | + </tr> |
|
36 | + {{/lines}} |
|
37 | + </table> |
|
38 | + </div> |
|
39 | + </div> |
|
40 | + |
|
41 | + <div class="pt-4" id="footer"> |
|
42 | + {{#show_revert}} |
|
43 | + {{#allow_editing}} |
|
44 | + <span class="pt-4"><button class="btn btn-sm gollum-revert-button" type="submit" onclick="$('#gollum-revert-form').submit()">Revert Changes</button></span> |
|
45 | + {{/allow_editing}} |
|
46 | + {{/show_revert}} |
|
47 | + <div class="pt-4"> |
|
48 | + <a href="#">Back to Top</a> |
|
49 | + </div> |
|
50 | + </div> |
|
51 | +</div> |
|
52 | + |
templates/create.mustache
... | ... | @@ -0,0 +1,21 @@ |
1 | +<div id="wiki-wrapper" class="create"> |
|
2 | +<div id="head"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4">Create New Page</h1> |
|
5 | +</div> |
|
6 | +<div id="wiki-content" class="create edit"> |
|
7 | + <div class="tabnav"> |
|
8 | + <nav class="tabnav-tabs" aria-label="Foo bar"> |
|
9 | + <a href="#" id="edit" class="tabnav-tab selected" aria-current="edit">Edit</a> |
|
10 | + <a href="#" id="preview" class="tabnav-tab" aria-current="preview">Preview</a> |
|
11 | + </nav> |
|
12 | + </div> |
|
13 | + |
|
14 | + <div class="has-sidebar tabnav-div" id="edit-content"> |
|
15 | + {{>editor}} |
|
16 | + </div> |
|
17 | + <div class="tabnav-div" id="preview-content"> |
|
18 | + </div> |
|
19 | +</div> |
|
20 | +</div> |
|
21 | +{{something}} |
templates/edit.mustache
... | ... | @@ -0,0 +1,14 @@ |
1 | +<div id="wiki-wrapper" class="edit"> |
|
2 | +<div id="head"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4">Editing <strong>{{title}}</strong></h1> |
|
5 | +</div> |
|
6 | +<div class="tabnav"> |
|
7 | + <nav class="tabnav-tabs"> |
|
8 | + <a href="#" id="edit" class="tabnav-tab selected" aria-current="edit">Edit</a> |
|
9 | + <a href="#" id="preview" class="tabnav-tab" aria-current="preview">Preview</a> |
|
10 | + </nav> |
|
11 | +</div> |
|
12 | + <div class="tabnav-div" id="edit-content">{{>editor}}</div> |
|
13 | + <div class="tabnav-div" id="preview-content"></div> |
|
14 | +</div> |
templates/editor.mustache
... | ... | @@ -0,0 +1,154 @@ |
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="singleline"> |
|
11 | + <label for="page" class="jaws">Page Title</label> |
|
12 | + <input class="form-control input-lg" placeholder="Page title" type="text" name="page" id="gollum-editor-page-title" value="{{page_name}}"> |
|
13 | + {{#has_path}} |
|
14 | + <p class="path_note"><strong>NOTE:</strong> This page will be created within the "<strong>{{path}}</strong>" directory</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"> |
|
25 | + <div id="gollum-editor-function-buttons"> |
|
26 | + <button class="btn btn-sm function-button" id="function-bold" title="Bold">{{#octicon}}bold{{/octicon}}</button> |
|
27 | + <button class="btn btn-sm function-button" id="function-italic" title="Italic">{{#octicon}}italic{{/octicon}}</button> |
|
28 | + <button class="btn btn-sm function-button" id="function-code" title="Code">{{#octicon}}code{{/octicon}}</button> |
|
29 | + <span class="pr-2"></span> |
|
30 | + <button class="btn btn-sm function-button" id="function-ul" title="Unordered list">{{#octicon}}list-unordered{{/octicon}}</button> |
|
31 | + <button class="btn btn-sm function-button" id="function-ol" title="Ordered list">{{#octicon}}list-ordered{{/octicon}}</button> |
|
32 | + <button class="btn btn-sm function-button" id="function-blockquote" title="Blockquote">{{#octicon}}quote{{/octicon}}</button> |
|
33 | + <button class="btn btn-sm function-button" id="function-hr" title="Horizontal rule">{{#octicon}}horizontal-rule{{/octicon}}</button> |
|
34 | + <span class="pr-2"></span> |
|
35 | + <button class="btn btn-sm function-button" id="function-h1" title="Heading 1">h1</button> |
|
36 | + <button class="btn btn-sm function-button" id="function-h2" title="Heading 2">h2</button> |
|
37 | + <button class="btn btn-sm function-button" id="function-h3" title="Heading 3">h3</button> |
|
38 | + <span class="pr-2"></span> |
|
39 | + <button class="btn btn-sm function-button" id="function-link" title="Link">{{#octicon}}link{{/octicon}}</button> |
|
40 | + <button class="btn btn-sm function-button" id="function-image" title="Image">{{#octicon}}file-media{{/octicon}}</button> |
|
41 | + <span class="pr-2"></span> |
|
42 | + {{#critic_markup}} |
|
43 | + <button class="btn btn-sm function-button" id="function-critic-accept" title="Accept Selected CriticMarkup">{{#octicon}}plus{{/octicon}}</button> |
|
44 | + <button class="btn btn-sm function-button" id="function-critic-reject" title="Reject Selected CriticMarkup">{{#octicon}}dash{{/octicon}}</button> |
|
45 | + <span class="pr-2"></span> |
|
46 | + {{/critic_markup}} |
|
47 | + <button class="btn btn-sm function-button" id="function-text-direction" title="Reverse Text Direction">{{#octicon}}arrow-both{{/octicon}}</button> |
|
48 | + <button class="btn btn-sm function-button" id="function-help" title="Help">{{#octicon}}question{{/octicon}}</button> |
|
49 | + </div> |
|
50 | + |
|
51 | + <div id="gollum-editor-format-selector"> |
|
52 | + <label for="format">Keybinding</label> |
|
53 | + <select id="keybinding" name="keybinding" class="form-select"> |
|
54 | + <option selected="selected">default</option> |
|
55 | + <option>vim</option> |
|
56 | + <option>emacs</option> |
|
57 | + </select> |
|
58 | + <label for="format">Markup</label> |
|
59 | + <select id="wiki_format" name="format" class="form-select"> |
|
60 | + {{#formats}} |
|
61 | + {{#enabled}} |
|
62 | + <option {{#selected}}selected="selected" {{/selected}}value="{{id}}" data-ext="{{ext}}"> |
|
63 | + {{name}} |
|
64 | + </option> |
|
65 | + {{/enabled}} |
|
66 | + {{/formats}} |
|
67 | + {{#formats}} |
|
68 | + {{^enabled}} |
|
69 | + <option class="disabled" {{#selected}}selected="selected" {{/selected}}value="{{id}}" data-ext="{{ext}}"> |
|
70 | + {{name}} |
|
71 | + </option> |
|
72 | + {{/enabled}} |
|
73 | + {{/formats}} |
|
74 | + </select> |
|
75 | + </div> |
|
76 | + </div> |
|
77 | + |
|
78 | + <div id="gollum-editor-help" class="jaws"> |
|
79 | + <ul id="gollum-editor-help-parent"> |
|
80 | + <li><a href="javascript:void(0);" class="selected">Help 1</a></li> |
|
81 | + <li><a href="javascript:void(0);">Help 1</a></li> |
|
82 | + <li><a href="javascript:void(0);">Help 1</a></li> |
|
83 | + </ul> |
|
84 | + <ul id="gollum-editor-help-list"> |
|
85 | + <li><a href="javascript:void(0);">Help 2</a></li> |
|
86 | + <li><a href="javascript:void(0);">Help 3</a></li> |
|
87 | + <li><a href="javascript:void(0);">Help 4</a></li> |
|
88 | + <li><a href="javascript:void(0);">Help 5</a></li> |
|
89 | + <li><a href="javascript:void(0);">Help 6</a></li> |
|
90 | + <li><a href="javascript:void(0);">Help 7</a></li> |
|
91 | + <li><a href="javascript:void(0);">Help 8</a></li> |
|
92 | + </ul> |
|
93 | + <div id="gollum-editor-help-wrapper"> |
|
94 | + <div id="gollum-editor-help-content"> |
|
95 | + <p> |
|
96 | + </p> |
|
97 | + </div> |
|
98 | + </div> |
|
99 | + </div> |
|
100 | + <div id="gollum-autorecover-msg" class="flash" hidden> |
|
101 | + Autosaved text is available. Click the button to restore it. |
|
102 | + <button id="gollum-autorecover-button" class="btn btn-sm primary flash-action">Restore Text</button> |
|
103 | + </div> |
|
104 | + <textarea id="gollum-editor-body" class="form-control" |
|
105 | + data-markup-lang="{{format}}" name="content" class="mousetrap">{{content}}</textarea> |
|
106 | + <div id="uploading"> |
|
107 | + <p><div class="dotted-spinner"></div> Uploading file...</p> |
|
108 | + </div> |
|
109 | + |
|
110 | + {{#header}} |
|
111 | + |
|
112 | + <div id="gollum-editor-edit-header" class="collapsed"> |
|
113 | + <button class="btn btn-sm collapsable">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable" hidden>{{#octicon}}triangle-up{{/octicon}}</button> |
|
114 | + <h4>Header</h4> |
|
115 | + <textarea id="gollum-editor-header" name="header" class="form-control">{{header}}</textarea> |
|
116 | + </div> |
|
117 | + {{/header}} |
|
118 | + |
|
119 | + {{#footer}} |
|
120 | + <div id="gollum-editor-edit-footer" class="collapsed"> |
|
121 | + <button class="btn btn-sm collapsable">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable" hidden>{{#octicon}}triangle-up{{/octicon}}</button> |
|
122 | + <h4>Footer</h4> |
|
123 | + <textarea id="gollum-editor-footer" name="footer" class="form-control">{{footer}}</textarea> |
|
124 | + </div> |
|
125 | + {{/footer}} |
|
126 | + |
|
127 | + {{#sidebar}} |
|
128 | + <div id="gollum-editor-edit-sidebar" class="collapsed"> |
|
129 | + <button class="btn btn-sm collapsable">{{#octicon}}triangle-down{{/octicon}}</button><button class="btn btn-sm collapsable" hidden>{{#octicon}}triangle-up{{/octicon}}</button> |
|
130 | + <h4>Sidebar</h4> |
|
131 | + |
|
132 | + <textarea id="gollum-editor-sidebar" name="sidebar" class="form-control">{{sidebar}}</textarea> |
|
133 | + </div> |
|
134 | + {{/sidebar}} |
|
135 | + |
|
136 | + <div id="gollum-editor-edit-summary" class="singleline"> |
|
137 | + <label for="message" class="jaws">Edit message:</label> |
|
138 | + {{#is_create_page}} |
|
139 | + <input type="text" name="message" class="form-control input-block" id="gollum-editor-message-field" value="Created {{page_name}} ({{format}})"> |
|
140 | + {{/is_create_page}} |
|
141 | + {{#is_edit_page}} |
|
142 | + <input type="text" name="message" class="form-control input-block" id="gollum-editor-message-field" value="Updated {{page_name}} ({{format}})"> |
|
143 | + {{/is_edit_page}} |
|
144 | + </div> |
|
145 | + |
|
146 | + <span class="jaws"><br></span> |
|
147 | + <div class="form-actions"> |
|
148 | + <input type="submit" id="gollum-editor-submit" class="btn btn-primary" value="Save" title="Save current changes"> |
|
149 | + <a id="gollum-editor-cancel" class="btn" type="button" title="Cancel editing" onClick="window.history.back()">Cancel</a> |
|
150 | + </div> |
|
151 | + </fieldset> |
|
152 | +</form> |
|
153 | +</div> |
|
154 | +<div id="gollum-saved-msg" class="position-fixed bottom-0 left-0"></div> |
templates/error.mustache
... | ... | @@ -0,0 +1,8 @@ |
1 | +<div id="wiki-wrapper" class="error"> |
|
2 | + <div id="error"> |
|
3 | + <h1>Error</h1> |
|
4 | + <p> |
|
5 | + {{message}} |
|
6 | + </p> |
|
7 | + </div> |
|
8 | +</div> |
|
... | ... | \ No newline at end of file |
templates/history.mustache
... | ... | @@ -0,0 +1,38 @@ |
1 | +<div id="wiki-wrapper" class="history"> |
|
2 | +<div id="head"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4"><span class="f1-light text-gray-light">History for</span> {{name}}</h1> |
|
5 | +</div> |
|
6 | +<div id="page-history"> |
|
7 | + |
|
8 | + {{>pagination}} |
|
9 | + |
|
10 | + <form name="selection-form" id="selection-form" method="get" action="{{compare_path}}/{{escaped_url_path}}"></form> |
|
11 | + |
|
12 | + <div id="page-history-list" class="Box Box--condensed flex-auto"> |
|
13 | + <form id="version-form"> |
|
14 | + <ul> |
|
15 | + {{#versions}} |
|
16 | + <li class="Box-row border-top Box-row--hover-gray d-flex flex-items-center"> |
|
17 | + <span class="pr-2"><input class="checkbox" type="checkbox" name="versions[]" value="{{id}}"></span> |
|
18 | + <span class="float-left col-2" id="user-icons">{{>author_template}}</span> |
|
19 | + <span class="flex-auto col-1 text-gray-light">{{date}}</span> |
|
20 | + <span class="flex-auto col-5">{{message}}</span> |
|
21 | + <span class="pl-4 float-right"> |
|
22 | + <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a> |
|
23 | + <a href="{{href_page}}" title="Browse the page at this point in the history" class="btn btn-outline">{{#octicon}}code{{/octicon}}</a> |
|
24 | + </span> |
|
25 | + </li> |
|
26 | + {{/versions}} |
|
27 | + </ul> |
|
28 | + </form> |
|
29 | + </div> |
|
30 | + |
|
31 | + |
|
32 | + |
|
33 | +<div id="footer"> |
|
34 | + <div class="pt-4"> |
|
35 | + <button class="btn btn-sm action-compare-revision" type="submit">Compare Revisions</button> |
|
36 | + </div> |
|
37 | +</div> |
|
38 | +</div> |
templates/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 | + <a href="https://gravatar.com/{{user_icon}}">{{author}}</a> |
|
... | ... | \ No newline at end of file |
templates/history_authors/identicon.mustache
... | ... | @@ -0,0 +1,2 @@ |
1 | +<img src="" alt="avatar: {{author}}" class="identicon" data-identicon="{{user_icon}}" onerror="brokenAvatarImage(this);" /> |
|
2 | + <span>{{author}}</span> |
|
... | ... | \ No newline at end of file |
templates/history_authors/none.mustache
... | ... | @@ -0,0 +1,2 @@ |
1 | +{{#octicon}}person{{/octicon}} |
|
2 | + <span>{{author}}</span> |
|
... | ... | \ No newline at end of file |
templates/latest_changes.mustache
... | ... | @@ -0,0 +1,33 @@ |
1 | +<div id="wiki-wrapper" class="history"> |
|
2 | +<div id="head"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4">{{title}}</h1> |
|
5 | +</div> |
|
6 | + |
|
7 | +{{>pagination}} |
|
8 | + |
|
9 | +<div id="wiki-history"> |
|
10 | + |
|
11 | +<ul class="Box flex-auto"> |
|
12 | + {{#versions}} |
|
13 | + <li class="Box-row Box-row--hover-gray border-top d-flex flex-items-center"> |
|
14 | + <span class="float-left col-2" id="user-icons">{{>author_template}}</span> |
|
15 | + <span class="flex-auto col-1 text-gray-light">{{date}}</span> |
|
16 | + <span class="flex-auto col-7">{{message}}<br/> |
|
17 | + {{#files}} |
|
18 | + <span class="flex-auto col-2">{{#renamed}}{{renamed}} -> {{/renamed}}<a href="{{link}}">{{file}}</a></span><br/> |
|
19 | + {{/files}} |
|
20 | + </span> |
|
21 | + <span class="pl-4 float-right"> |
|
22 | + <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a> |
|
23 | + </span> |
|
24 | + </li> |
|
25 | + {{/versions}} |
|
26 | +</ul> |
|
27 | + |
|
28 | + |
|
29 | +</div> |
|
30 | +<div id="footer"> |
|
31 | + |
|
32 | +</div> |
|
33 | +</div> |
templates/layout.mustache
... | ... | @@ -0,0 +1,65 @@ |
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 | + {{#css}}<link rel="stylesheet" type="text/css" href="{{custom_css}}" media="all">{{/css}} |
|
12 | + {{#noindex}}<meta name="robots" content="noindex, nofollow" />{{/noindex}} |
|
13 | + |
|
14 | + |
|
15 | + <script> |
|
16 | + var criticMarkup = '{{critic_markup}}'; |
|
17 | + var baseUrl = '{{base_url}}'; |
|
18 | + var uploadDest = 'uploads'; |
|
19 | + var perPageUploads = '{{per_page_uploads}}'; |
|
20 | + if (perPageUploads == 'true') { |
|
21 | + uploadDest = uploadDest + window.location.pathname.replace(/.*gollum\/[-\w]+\//, "/").replace(/\.[^/.]+$/, "").replace(baseUrl, "") |
|
22 | + } |
|
23 | + {{#page}} |
|
24 | + var pageFullPath = '{{escaped_url_path}}'; |
|
25 | + var pageFormat = '{{format}}'; |
|
26 | + {{/page}} |
|
27 | + {{#has_search_terms}} |
|
28 | + var searchTerms = [{{#search_terms}}'{{.}}', {{/search_terms}} |
|
29 | + ]; |
|
30 | + {{/has_search_terms}} |
|
31 | + {{#is_create_page}} |
|
32 | + var default_markup = '{{default_markup}}'; |
|
33 | + {{/is_create_page}} |
|
34 | + |
|
35 | + </script> |
|
36 | + {{#sprockets_javascript_tag}}app{{/sprockets_javascript_tag}} |
|
37 | + {{#has_editor}} |
|
38 | + {{#sprockets_javascript_tag}}editor{{/sprockets_javascript_tag}} |
|
39 | + {{/has_editor}} |
|
40 | + {{#mathjax}} |
|
41 | + <script type="text/javascript"> |
|
42 | + window.MathJax = { |
|
43 | + tex2jax: { |
|
44 | + inlineMath: [ ['$','$'], ['\\(','\\)'] ], |
|
45 | + displayMath: [ ['$$','$$'], ['\\[','\\]'] ], |
|
46 | + processEscapes: true |
|
47 | + }, |
|
48 | + TeX: { extensions: ["autoload-all.js"] } |
|
49 | + }; |
|
50 | + </script> |
|
51 | + {{#mathjax_config}} |
|
52 | + <script type="text/javascript" src="{{mathjax_config_path}}"></script> |
|
53 | + {{/mathjax_config}} |
|
54 | + <script defer src="{{mathjax_js}}"></script> |
|
55 | + {{/mathjax}} |
|
56 | + {{#js}}<script type="text/javascript" src="{{custom_js}}"></script>{{/js}} |
|
57 | + |
|
58 | + <title>{{title}}</title> |
|
59 | +</head> |
|
60 | +<body> |
|
61 | +<div class="container-lg clearfix"> |
|
62 | +{{{yield}}} |
|
63 | +</div> |
|
64 | +</body> |
|
65 | +</html> |
templates/navbar.mustache
... | ... | @@ -0,0 +1,43 @@ |
1 | +<nav class="actions pt-4"> |
|
2 | + |
|
3 | + <div class="TableObject"> |
|
4 | + <div class="TableObject-item"> |
|
5 | + <a class="btn" id="minibutton-home" href="{{page_route}}">Home</a> |
|
6 | + </div> |
|
7 | + |
|
8 | + |
|
9 | + <div class="TableObject-item TableObject-item--primary px-2" {{^search}}style="visibility:hidden"{{/search}}> |
|
10 | + {{>searchbar}} |
|
11 | + </div> |
|
12 | + |
|
13 | + <div class="TableObject-item"> |
|
14 | + {{#overview}}<a class="btn" id="minibutton-overview" href="{{overview_path}}">Overview</a>{{/overview}} |
|
15 | + {{#latest_changes}}<a class="btn" id="minibutton-latest-changes" href="{{latest_changes_path}}">Latest Changes</a>{{/latest_changes}} |
|
16 | + </div> |
|
17 | + |
|
18 | + {{#history}} |
|
19 | + <div class="TableObject-item pl-1"> |
|
20 | + <a class="btn" id="minibutton-history" href="{{history_path}}/{{escaped_url_path}}">Page History</a> |
|
21 | + </div> |
|
22 | + {{/history}} |
|
23 | + |
|
24 | + {{#allow_editing}} |
|
25 | + <div class="TableObject-item pl-1"> |
|
26 | + {{#allow_uploads}} |
|
27 | + <a class="btn" id="minibutton-upload-page" href="#">Upload</a> |
|
28 | + {{/allow_uploads}} |
|
29 | + {{#editable}} |
|
30 | + <a class="btn" id="minibutton-rename-page" href="#">Rename</a> |
|
31 | + <a class="btn" id="minibutton-edit-page" href="{{edit_path}}/{{escaped_url_path}}">Edit</a> |
|
32 | + <a class="btn btn-primary" id="minibutton-new-page" href="#">New</a> |
|
33 | + {{/editable}} |
|
34 | + {{^editable}} |
|
35 | + {{#newable}} |
|
36 | + <a class="btn btn-primary" id="minibutton-new-page" href="#">New</a> |
|
37 | + {{/newable}} |
|
38 | + {{/editable}} |
|
39 | + </div> |
|
40 | + {{/allow_editing}} |
|
41 | + |
|
42 | + </div> |
|
43 | +</nav> |
|
... | ... | \ No newline at end of file |
templates/overview.mustache
... | ... | @@ -0,0 +1,42 @@ |
1 | +<div id="wiki-wrapper" class="results"> |
|
2 | +<div id="head" class="overview"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4">{{title}}</h1> |
|
5 | +</div> |
|
6 | +<div id="overview"> |
|
7 | + |
|
8 | +{{#has_results}} |
|
9 | + <div id="file-browser"> |
|
10 | + <div class="breadcrumb pb-4"> |
|
11 | + {{{breadcrumb}}} |
|
12 | + </div> |
|
13 | + |
|
14 | + <div class="Box"> |
|
15 | + <ul> |
|
16 | + {{#files_folders}} |
|
17 | + <li class="Box-row"> |
|
18 | + <span class="pr-2">{{{icon}}}</span> |
|
19 | + <span><a href="{{url}}">{{name}}</a></span> |
|
20 | + {{#allow_editing}} |
|
21 | + {{#is_file}}<button class="btn btn-sm float-right delete-file" data-file-path="{{url}}" data-confirm="Are you sure you want to delete {{name}}?">{{#octicon}}trashcan{{/octicon}}</button>{{/is_file}} |
|
22 | + {{/allow_editing}} |
|
23 | + </li> |
|
24 | + {{/files_folders}} |
|
25 | + </ul> |
|
26 | + </div> |
|
27 | + |
|
28 | + |
|
29 | +{{/has_results}} |
|
30 | + |
|
31 | +{{#no_results}} |
|
32 | + <p id="no-results"> |
|
33 | + There are no pages in <strong>{{current_path}}</strong> on <strong>{{ref}}</strong>. |
|
34 | + </p> |
|
35 | +{{/no_results}} |
|
36 | + |
|
37 | +</div> |
|
38 | +<div class="pt-4" id="footer"> |
|
39 | + <a href="#">Back to Top</a> |
|
40 | +</div> |
|
41 | +</div> |
|
42 | + |
templates/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 |
templates/pagination.mustache
... | ... | @@ -0,0 +1,6 @@ |
1 | +<nav class="paginate-container" aria-label="Pagination"> |
|
2 | + <div class="pagination" id="pagination"> |
|
3 | + <a id="prev" href="?page_num={{previous_page}}{{query_string}}" class="previous_page {{^previous_page}}disabled{{/previous_page}}">Previous</span> |
|
4 | + <a id="next" href="?page_num={{next_page}}{{query_string}}" class="next_page {{^next_page}}disabled{{/next_page}}" rel="next" aria-label="Next Page">Next</a> |
|
5 | + </div> |
|
6 | +</nav> |
|
... | ... | \ No newline at end of file |
templates/search.mustache
... | ... | @@ -0,0 +1,44 @@ |
1 | +<div id="wiki-wrapper" class="results"> |
|
2 | + <div id="head"> |
|
3 | + {{>navbar}} |
|
4 | + <h1 class="py-4"><span class="f1-light text-gray-light">Search results for</span> {{name}}</h1> |
|
5 | + </div> |
|
6 | + |
|
7 | +{{#has_results}} |
|
8 | + |
|
9 | + {{>pagination}} |
|
10 | + |
|
11 | +<div class="Box Box--condensed search-results" id="search-results"> |
|
12 | + <ul> |
|
13 | + <div class="Box-header border-bottom p-0"></div> |
|
14 | + {{#results}} |
|
15 | + <li class="Box-row Box-row--gray"> |
|
16 | + <span class="Counter Counter--gray tooltipped tooltipped-w" aria-label="{{filename_count}} hits in filename - {{count}} hits in content">{{filename_count}} - {{count}}</span> |
|
17 | + <span class="text-bold"><a href="{{href}}">{{name}}</a></span> |
|
18 | + <button class="btn-link tooltipped tooltipped-w float-right toggle-context" aria-label="Show all {{count}} hits in this page">{{#octicon}}search{{/octicon}}</button> |
|
19 | + </li> |
|
20 | + |
|
21 | + <div class="search-context"> |
|
22 | + {{#context}} |
|
23 | + <li class="Box-row border-0"><span class="text-italic">{{.}}</span></li> |
|
24 | + {{/context}} |
|
25 | + </div> |
|
26 | + |
|
27 | + {{/results}} |
|
28 | + </ul> |
|
29 | +</div> |
|
30 | +{{/has_results}} |
|
31 | + |
|
32 | +{{#no_results}} |
|
33 | + <p id="no-results"> |
|
34 | + There are no results for your search <strong>{{query}}</strong>. |
|
35 | + </p> |
|
36 | +{{/no_results}} |
|
37 | + |
|
38 | +<div id="footer" class="mt-4"> |
|
39 | + <a class="btn" href="#">Back to Top</a> |
|
40 | +</div> |
|
41 | + |
|
42 | +</div> |
|
43 | +</div> |
|
44 | + |
templates/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" name="q" id="search-query" placeholder="Search" aria-label="Search site" autocomplete="off"> |
|
3 | +</form> |
|
... | ... | \ No newline at end of file |
templates/wiki_content.mustache
... | ... | @@ -0,0 +1,61 @@ |
1 | +<div id="wiki-content"> |
|
2 | + <h1 class="pt-4">{{page_header}}</h1> |
|
3 | + <div class="breadcrumb">{{{breadcrumb}}}</div> |
|
4 | + |
|
5 | + |
|
6 | + <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}}"> |
|
7 | + {{#has_toc}} |
|
8 | + <div id="wiki-toc-main"> |
|
9 | + {{{toc_content}}} |
|
10 | + </div> |
|
11 | + {{/has_toc}} |
|
12 | + {{#has_sidebar}} |
|
13 | + <div id="wiki-sidebar" class="gollum-{{sidebar_format}}-content"> |
|
14 | + <div id="sidebar-content" class="Box Box--condensed col-3 markdown-body px-4 float-{{bar_side}}"> |
|
15 | + {{{sidebar_content}}} |
|
16 | + </div> |
|
17 | + </div> |
|
18 | + {{/has_sidebar}} |
|
19 | + <div id="wiki-body" class="gollum-{{format}}-content overflow-hidden {{#left_bar}}pl-4{{/left_bar}}"> |
|
20 | + {{#has_header}} |
|
21 | + <div id="wiki-header" class="gollum-{{header_format}}-content"> |
|
22 | + <div id="header-content" class="markdown-body"> |
|
23 | + {{{header_content}}} |
|
24 | + </div> |
|
25 | + </div> |
|
26 | + {{/has_header}} |
|
27 | + <div class="markdown-body {{#header_enum?}}header-enum{{/header_enum?}}" {{#header_enum?}}style="--header-enum-style:{{header_enum_style}};"{{/header_enum?}}> |
|
28 | + {{{rendered_metadata}}} |
|
29 | + {{{content}}} |
|
30 | + </div> |
|
31 | + </div> |
|
32 | + {{#has_footer}} |
|
33 | + <div id="wiki-footer" class="gollum-{{footer_format}}-content"> |
|
34 | + <div id="footer-content" class="Box Box-condensed markdown-body pl-2"> |
|
35 | + {{{footer_content}}} |
|
36 | + </div> |
|
37 | + </div> |
|
38 | + {{/has_footer}} |
|
39 | + |
|
40 | + |
|
41 | + </div> |
|
42 | + |
|
43 | + |
|
44 | + <div id="footer" class="pt-4"> |
|
45 | + {{^historical}} |
|
46 | + {{^preview}} |
|
47 | + <p id="last-edit"><div class="dotted-spinner hidden"></div> <a id="page-info-toggle" data-pagepath="{{escaped_url_path}}">When was this page last modified?</a></p> |
|
48 | + {{#allow_editing}} |
|
49 | + <p> |
|
50 | + <a id="delete-link" href="{{escaped_url_path}}" data-confirm="Are you sure you want to delete this page?"><span>Delete this Page</span></a> |
|
51 | + </p> |
|
52 | + {{/allow_editing}} |
|
53 | + {{/preview}} |
|
54 | + {{/historical}} |
|
55 | + {{#historical}} |
|
56 | + <p>This version of the page was edited by <b>{{author}}</b> at {{date}}. <a href="{{full_url_path}}">View the most recent version.</a></p> |
|
57 | + {{/historical}} |
|
58 | + </div> |
|
59 | + |
|
60 | + |
|
61 | +</div> |