Home  Main Website     Git     Matrix     Searx    

PwOSS - Wiki

Changes in 3f21af0: updated wiki to version 5.1
public/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>
public/templates/editor.mustache
... ...
@@ -97,6 +97,10 @@
97 97
</div>
98 98
</div>
99 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>
100 104
<textarea id="gollum-editor-body" class="form-control"
101 105
data-markup-lang="{{format}}" name="content" class="mousetrap">{{content}}</textarea>
102 106
<div id="uploading">
... ...
@@ -147,3 +151,4 @@
147 151
</fieldset>
148 152
</form>
149 153
</div>
154
+<div id="gollum-saved-msg" class="position-fixed bottom-0 left-0"></div>
public/templates/error.mustache
... ...
@@ -1,26 +1,8 @@
1
-<center>
2
- <div id="wiki-wrapper" class="error">
3
- <div id="error">
4
- <br>
5
- <br>
6
- <br>
7
- <br>
8
- <br>
9
- <br>
10
- <h1>Sorry, not allowed &#128580;</h1>
1
+<div id="wiki-wrapper" class="error">
2
+ <div id="error">
3
+ <h1>Error</h1>
11 4
<p>
12
-<!-- {{message}} -->
13
- You cannot change pages directly from the Wiki! Please take a look at our
14
- <a href='/content/pwoss/wiki#how-to-create-change-wiki-pages'>guide</a>
15
- for more information on how to make any changes.<br>
16
- Thank you!
17
- <br>
18
- <br>
19
- <br>
20
- <br>
21
- <br>
22
- <br>
5
+ {{message}}
23 6
</p>
24 7
</div>
25
-</div>
26
-</center>
27 8
\ No newline at end of file
9
+</div>
28 10
\ No newline at end of file
public/templates/history.mustache
... ...
@@ -7,7 +7,7 @@
7 7
8 8
{{>pagination}}
9 9
10
- <form name="selection-form" id="selection-form" method="post" action="{{compare_path}}/{{escaped_url_path}}"></form>
10
+ <form name="selection-form" id="selection-form" method="get" action="{{compare_path}}/{{escaped_url_path}}"></form>
11 11
12 12
<div id="page-history-list" class="Box Box--condensed flex-auto">
13 13
<form id="version-form">
... ...
@@ -18,7 +18,10 @@
18 18
<span class="float-left col-2" id="user-icons">{{>author_template}}</span>
19 19
<span class="flex-auto col-1 text-gray-light">{{date}}</span>
20 20
<span class="flex-auto col-5">{{message}}</span>
21
- <span class="pl-4 float-right">[<a href="{{base_url}}/{{filename}}/{{id}}" title="View commit">{{id7}}</a>]</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>
22 25
</li>
23 26
{{/versions}}
24 27
</ul>
public/templates/latest_changes.mustache
... ...
@@ -8,9 +8,9 @@
8 8
9 9
<div id="wiki-history">
10 10
11
-<div class="Box flex-auto">
11
+<ul class="Box flex-auto">
12 12
{{#versions}}
13
- <div class="Box-row Box-row--hover-gray border-top d-flex flex-items-center">
13
+ <li class="Box-row Box-row--hover-gray border-top d-flex flex-items-center">
14 14
<span class="float-left col-2" id="user-icons">{{>author_template}}</span>
15 15
<span class="flex-auto col-1 text-gray-light">{{date}}</span>
16 16
<span class="flex-auto col-7">{{message}}<br/>
... ...
@@ -18,10 +18,12 @@
18 18
<span class="flex-auto col-2">{{#renamed}}{{renamed}} -> {{/renamed}}<a href="{{link}}">{{file}}</a></span><br/>
19 19
{{/files}}
20 20
</span>
21
- <span class="pl-4 float-right">[{{id7}}]</span>
22
- </div>
21
+ <span class="pl-4 float-right">
22
+ <a href="{{href}}" class="btn btn-outline text-mono">{{id7}}</a>
23
+ </span>
24
+ </li>
23 25
{{/versions}}
24
-</div>
26
+</ul>
25 27
26 28
27 29
</div>
public/templates/navbar.mustache
... ...
@@ -2,7 +2,7 @@
2 2
3 3
<div class="TableObject">
4 4
<div class="TableObject-item">
5
- <a class="btn" href="{{base_url}}/">Home</a>
5
+ <a class="btn" id="minibutton-home" href="{{page_route}}">Home</a>
6 6
</div>
7 7
8 8
... ...
@@ -11,13 +11,13 @@
11 11
</div>
12 12
13 13
<div class="TableObject-item">
14
- {{#overview}}<a class="btn" href="{{overview_path}}">Overview</a>{{/overview}}
15
- {{#latest_changes}}<a class="btn" href="{{latest_changes_path}}">Latest Changes</a>{{/latest_changes}}
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 16
</div>
17 17
18 18
{{#history}}
19 19
<div class="TableObject-item pl-1">
20
- <a class="btn" href="{{history_path}}/{{escaped_url_path}}">Page History</a>
20
+ <a class="btn" id="minibutton-history" href="{{history_path}}/{{escaped_url_path}}">Page History</a>
21 21
</div>
22 22
{{/history}}
23 23
public/templates/overview.mustache
... ...
@@ -16,9 +16,9 @@
16 16
{{#files_folders}}
17 17
<li class="Box-row">
18 18
<span class="pr-2">{{{icon}}}</span>
19
- <span><a href={{url}}>{{name}}</a></span>
19
+ <span><a href="{{url}}">{{name}}</a></span>
20 20
{{#allow_editing}}
21
- {{#is_file}}<button class="btn btn-sm float-right delete-file" data-file-path={{name}} data-confirm="Are you sure you want to delete {{name}}?">{{#octicon}}trashcan{{/octicon}}</button>{{/is_file}}
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 22
{{/allow_editing}}
23 23
</li>
24 24
{{/files_folders}}
public/templates/search.mustache
... ...
@@ -13,9 +13,8 @@
13 13
<div class="Box-header border-bottom p-0"></div>
14 14
{{#results}}
15 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>&nbsp;
17
-
18
- <span class="text-bold"><a href="{{base_url}}/{{name}}">{{name}}</a></span>
16
+ <span class="Counter Counter--gray tooltipped tooltipped-w" aria-label="{{filename_count}} hits in filename - {{count}} hits in content">{{filename_count}} - {{count}}</span>&nbsp;
17
+ <span class="text-bold"><a href="{{href}}">{{name}}</a></span>
19 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>
20 19
</li>
21 20
public/templates/wiki_content.mustache
... ...
@@ -36,7 +36,7 @@
36 36
</div>
37 37
</div>
38 38
{{/has_footer}}
39
- </div>
39
+
40 40
41 41
</div>
42 42