Let's make (git) history!
This commit is contained in:
1
template/greensimple/_headerlink
Normal file
1
template/greensimple/_headerlink
Normal file
@ -0,0 +1 @@
|
||||
<li><a href="%s">%s</a></li>
|
15
template/greensimple/admin_register
Normal file
15
template/greensimple/admin_register
Normal file
@ -0,0 +1,15 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Login</h2>
|
||||
Register a new user
|
||||
<form action="{wikiqs:var:adminregisterurl}" method="POST">
|
||||
Username: <input type="text" name="user"></input><br>
|
||||
Password: <input type="password" name="password"></input><br>
|
||||
Repeat password: <input type="password" name="password2"></input><br>
|
||||
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"></input>
|
||||
|
||||
</form>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
6
template/greensimple/allcategories
Normal file
6
template/greensimple/allcategories
Normal file
@ -0,0 +1,6 @@
|
||||
{wikiqs:include:general_header}
|
||||
<div id="content" style="margin-top: 10px;">
|
||||
<h2>All categories</h2>
|
||||
{wikiqs:var:categorylist}
|
||||
</div>
|
||||
{wikiqs:include:general_footer}
|
6
template/greensimple/allpages
Normal file
6
template/greensimple/allpages
Normal file
@ -0,0 +1,6 @@
|
||||
{wikiqs:include:general_header}
|
||||
<div id="content" style="margin-top: 10px;">
|
||||
<h2>All pages</h2>
|
||||
{wikiqs:var:pagelist}
|
||||
</div>
|
||||
{wikiqs:include:general_footer}
|
6
template/greensimple/error
Normal file
6
template/greensimple/error
Normal file
@ -0,0 +1,6 @@
|
||||
{wikiqs:include:general_header}
|
||||
<div id="content" style="margin-top: 10px;">
|
||||
<h2>{wikiqs:var:errortitle}</h2>
|
||||
{wikiqs:var:errormessage}
|
||||
</div>
|
||||
{wikiqs:include:general_footer}
|
18
template/greensimple/general_footer
Normal file
18
template/greensimple/general_footer
Normal file
@ -0,0 +1,18 @@
|
||||
<footer>
|
||||
<ul id="footer">
|
||||
<li><span style="padding-left: 10px"><a href="{wikiqs:config:linklogin}">{wikiqs:var:loginstatus}</a></span></li>
|
||||
<li style="font-size: 10pt">Powered by wikiQS</li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script>
|
||||
function refreshSession()
|
||||
{
|
||||
var req = new XMLHttpRequest();
|
||||
req.open("GET", "{wikiqs:config:refreshsessionurl}");
|
||||
req.send();
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
}
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
20
template/greensimple/general_header
Normal file
20
template/greensimple/general_header
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="{wikiqs:config:csspath}">
|
||||
<title>{wikiqs:var:title}</title>
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{wikiqs:config:linkindex}"><h2>{wikiqs:config:wikiname}</h2></a></li>
|
||||
</ul>
|
||||
<ul id="nav">
|
||||
<li><a href="{wikiqs:config:linkrecent}">Recent changes</a></li>
|
||||
<li><a href="{wikiqs:config:linkallpages}">All pages</a></li>
|
||||
<li><a href="{wikiqs:config:linkallcats}">All categories</a></li>
|
||||
</ul>
|
||||
|
||||
<ul id="right" class="search">
|
||||
<li><div><form action="{wikiqs:config:wikipath}" method="GET"><input type="hidden" name="action" value="search"/><input type="text" name="q"value="search here" onfocus="this.value=''"></form></div></li>
|
||||
</ul>
|
||||
</nav>
|
11
template/greensimple/login
Normal file
11
template/greensimple/login
Normal file
@ -0,0 +1,11 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Login</h2>
|
||||
<form action="{wikiqs:var:loginurl}" method="POST">
|
||||
Username: <input type="text" name="user" style="width: 25%;"></input><br>
|
||||
Password: <input type="password" name="password" style="width: 25%;"></input><br>
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"></input>
|
||||
</form>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
7
template/greensimple/login_already
Normal file
7
template/greensimple/login_already
Normal file
@ -0,0 +1,7 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Login</h2>
|
||||
You are already logged in as <b>{wikiqs:var:username}</b><br>
|
||||
<a href="{wikiqs:config:linklogout}">Logout</a>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
14
template/greensimple/page_creation
Normal file
14
template/greensimple/page_creation
Normal file
@ -0,0 +1,14 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
<form action="{wikiqs:var:actionurl}" method="POST">
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<button type="submit" name="do" value="preview">Preview</button>
|
||||
<textarea name="content" style="width: 100%;" rows=70>{wikiqs:var:content}</textarea>
|
||||
<br><b>Comment:</b><br>
|
||||
<input type="text" name="comment" size=50><br>
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"></input>
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<button type="submit" name="do" value="preview">Preview</button>
|
||||
</form>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
17
template/greensimple/page_creation_preview
Normal file
17
template/greensimple/page_creation_preview
Normal file
@ -0,0 +1,17 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
This is a preview of your changes:<br>
|
||||
{wikiqs:var:preview_content}
|
||||
<hr>
|
||||
<form action="{wikiqs:var:actionurl}" method="POST">
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<button type="submit" name="do" value="preview">Preview</button>
|
||||
<textarea name="content" style="width: 100%;" rows=70>{wikiqs:var:content}</textarea>
|
||||
<br><b>Comment:</b><br>
|
||||
<input type="text" name="comment" size=50><br>
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"></input>
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<button type="submit" name="do" value="preview">Preview</button>
|
||||
</form>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
10
template/greensimple/page_deletion
Normal file
10
template/greensimple/page_deletion
Normal file
@ -0,0 +1,10 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
<h3>Page deletion</h3>
|
||||
Do you really want to delete page <b>{wikiqs:var:page}</b>
|
||||
<form action="{wikiqs:var:deletionurl}" method=POST>
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"/>
|
||||
<button type="submit" name="do" value="submit">Yes, delete page</button>
|
||||
</form>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
20
template/greensimple/page_footer
Normal file
20
template/greensimple/page_footer
Normal file
@ -0,0 +1,20 @@
|
||||
<footer>
|
||||
<ul id="footer">
|
||||
<li><span style="padding-left: 10px"><a href="{wikiqs:config:linklogin}">{wikiqs:var:loginstatus}</a></span></li>
|
||||
<li><a href="{wikiqs:var:historyurl}">Last edited by {wikiqs:var:editedby} on {wikiqs:var:editedon}</a></li>
|
||||
|
||||
<li style="font-size: 10pt">Powered by wikiQS</li>
|
||||
</ul>
|
||||
</footer>
|
||||
<script>
|
||||
function refreshSession()
|
||||
{
|
||||
var req = new XMLHttpRequest();
|
||||
req.open("GET", "{wikiqs:config:refreshsessionurl}");
|
||||
req.send();
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
}
|
||||
setTimeout(refreshSession, 60*2*1000);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
24
template/greensimple/page_header
Normal file
24
template/greensimple/page_header
Normal file
@ -0,0 +1,24 @@
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<link rel="stylesheet" type="text/css" href="{wikiqs:config:csspath}">
|
||||
<title>{wikiqs:var:title}</title>
|
||||
<body>
|
||||
<nav>
|
||||
<ul>
|
||||
<li><a href="{wikiqs:config:linkindex}"><h2>{wikiqs:config:wikiname}</h2></a></li>
|
||||
</ul>
|
||||
<ul id="nav">
|
||||
<li><a href="{wikiqs:config:linkrecent}">Recent changes</a></li>
|
||||
<li><a href="{wikiqs:config:linkallpages}">All pages</a></li>
|
||||
<li><a href="{wikiqs:config:linkallcats}">All categories</a></li>
|
||||
</ul>
|
||||
|
||||
<ul>
|
||||
{wikiqs:var:headerlinks}
|
||||
</ul>
|
||||
|
||||
<ul id="right" class="search">
|
||||
<li><div><form action="{wikiqs:config:wikipath}" method="GET"><input type="hidden" name="action" value="search"/><input type="text" value="search here" onfocus="this.value=''" name="q"/></form></div></li>
|
||||
</ul>
|
||||
</nav>
|
8
template/greensimple/page_history
Normal file
8
template/greensimple/page_history
Normal file
@ -0,0 +1,8 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
<table style="width: 100%"><tr><td><b>Revision</b></td><td><b>Author</b></td><td><b>Comment</b></td><td><b><a href="{wikiqs:var:linkhistorysort}">Date</a></b></td></tr>
|
||||
{wikiqs:var:revisionlist}
|
||||
</table>
|
||||
{wikiqs:var:prevpage} {wikiqs:var:nextpage}
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
16
template/greensimple/page_settings
Normal file
16
template/greensimple/page_settings
Normal file
@ -0,0 +1,16 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
<h2>Page settings: {wikiqs:var:page}</h2>
|
||||
<form action="{wikiqs:var:settingsurl}" method="POST">
|
||||
<h3>Categories:</h3>
|
||||
<textarea cols=50 rows=20 name=categories>{wikiqs:var:categories}</textarea><br>
|
||||
<h3>Rename:</h3>
|
||||
<input type="text" name="renameto"></input><br>
|
||||
<input type="checkbox" name="createredir" value="1" checked="checked" />Redirect old page
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"/><br>
|
||||
<hr>
|
||||
<input type="checkbox" name="showpage" value="1" {wikiqs:var:checked}/> Show page in lists etc.
|
||||
<br>
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
5
template/greensimple/page_view
Normal file
5
template/greensimple/page_view
Normal file
@ -0,0 +1,5 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
{wikiqs:var:content}
|
||||
</main>
|
||||
{wikiqs:include:page_footer}
|
6
template/greensimple/page_view_revision
Normal file
6
template/greensimple/page_view_revision
Normal file
@ -0,0 +1,6 @@
|
||||
{wikiqs:include:page_header}
|
||||
<main id="content">
|
||||
<b>Showing revision: {wikiqs:var:revision}</b><hr>
|
||||
{wikiqs:var:content}
|
||||
</main>
|
||||
{wikiqs:include:page_footer}
|
8
template/greensimple/recentchanges
Normal file
8
template/greensimple/recentchanges
Normal file
@ -0,0 +1,8 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<table style="width: 100%"><tr><td><b>Page</b></td><td><b>Revision</b></td><td><b>Author</b></td><td><b>Comment</b></td><td><b><a href="{wikiqs:var:linkrecentsort}">Date</a></b></td></tr>
|
||||
{wikiqs:var:revisionlist}
|
||||
</table>
|
||||
{wikiqs:var:prevpage} {wikiqs:var:nextpage}
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
7
template/greensimple/search
Normal file
7
template/greensimple/search
Normal file
@ -0,0 +1,7 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Search for: {wikiqs:var:searchterm} </h2>
|
||||
{wikiqs:var:pagelist}
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
||||
|
6
template/greensimple/show_category
Normal file
6
template/greensimple/show_category
Normal file
@ -0,0 +1,6 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Category: {wikiqs:var:categoryname}</h2>
|
||||
{wikiqs:var:pagelist}
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
6
template/greensimple/show_whatlinkshere
Normal file
6
template/greensimple/show_whatlinkshere
Normal file
@ -0,0 +1,6 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Links to: {wikiqs:var:pagename}</h2>
|
||||
{wikiqs:var:pagelist}
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
172
template/greensimple/style.css
Normal file
172
template/greensimple/style.css
Normal file
@ -0,0 +1,172 @@
|
||||
body
|
||||
{
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
font-family: Verdana;
|
||||
background-color: white;
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
header
|
||||
{
|
||||
margin: 0;
|
||||
paddin: 0;
|
||||
}
|
||||
|
||||
h1
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
h2
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
nav
|
||||
{
|
||||
//width: 100%;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
display: flex;
|
||||
background-color: #229638;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
|
||||
}
|
||||
nav ul
|
||||
{
|
||||
background-color: #229638;
|
||||
color: white;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
|
||||
}
|
||||
nav li
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
nav a, nav a:visited
|
||||
{
|
||||
padding: 10px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
line-height: 100%;
|
||||
|
||||
}
|
||||
|
||||
nav a:hover, nav a:focus
|
||||
{
|
||||
padding: 10px;
|
||||
text-decoration: none;
|
||||
background-color: white;
|
||||
color: #229638;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
|
||||
a, a:visited
|
||||
{
|
||||
color: #229638;;
|
||||
}
|
||||
|
||||
a:hover
|
||||
{
|
||||
background-color: #229638;
|
||||
color: white;
|
||||
|
||||
}
|
||||
#content
|
||||
{
|
||||
padding: 15px;
|
||||
font-family: monospace;
|
||||
font-size: 14pt;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
#content a, a:visited
|
||||
{
|
||||
color: #229638;
|
||||
}
|
||||
|
||||
#content a:hover
|
||||
{
|
||||
background-color: #229638;
|
||||
color: white;
|
||||
|
||||
|
||||
}
|
||||
footer
|
||||
{
|
||||
width: 100%;
|
||||
display: block;
|
||||
color: white;
|
||||
background-color: #229638;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
footer ul
|
||||
{
|
||||
background-color: #229638;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
}
|
||||
footer li
|
||||
{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: inline-block;
|
||||
line-height: 45px;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
//flex: 1 1 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
footer a, a:visited
|
||||
{
|
||||
text-decoration: none;
|
||||
|
||||
color: white;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
footer a:hover, ul#nav a:focus
|
||||
{
|
||||
text-decoration: none;
|
||||
color: #229638;
|
||||
background-color: white;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
#cats
|
||||
{
|
||||
background-color: #229638;
|
||||
}
|
||||
|
||||
.letter_search_result
|
||||
{
|
||||
text-decoration: underline;
|
||||
font-weight: bold;
|
||||
}
|
15
template/greensimple/user_changepw
Normal file
15
template/greensimple/user_changepw
Normal file
@ -0,0 +1,15 @@
|
||||
{wikiqs:include:general_header}
|
||||
<main id="content">
|
||||
<h2>Login</h2>
|
||||
Change your current password
|
||||
<form action="{wikiqs:var:userchangepwurl}" method="POST">
|
||||
Current password: <input type="text" name="password" style="width: 25%;"></input><br>
|
||||
New Password: <input type="password" name="newpassword" style="width: 25%;"></input><br>
|
||||
Repeat password: <input type="password" name="newpassword2" style="width: 25%;"></input><br>
|
||||
|
||||
<button type="submit" name="do" value="submit">Submit</button>
|
||||
<input type="hidden" name="csrf_token" value="{wikiqs:var:csrf_token}"></input>
|
||||
|
||||
</form>
|
||||
</main>
|
||||
{wikiqs:include:general_footer}
|
Fai riferimento in un nuovo problema
Block a user