aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJustin J. Novack <jnovack@gmail.com>2012-09-14 13:13:36 -0400
committerJustin J. Novack <jnovack@gmail.com>2012-09-14 13:29:26 -0400
commit0c2d838a9b2f0c81d460b49ccd74775440ced828 (patch)
treee40f248e19d7f661b5099fb7c3844aa8f862d053 /data
parent2b6643574b2a0e527aea359a240018577d861275 (diff)
downloadphorkie-0c2d838a9b2f0c81d460b49ccd74775440ced828.tar.gz
phorkie-0c2d838a9b2f0c81d460b49ccd74775440ced828.zip
Configurable index page
Diffstat (limited to 'data')
-rw-r--r--data/config.default.php3
-rw-r--r--data/templates/base.htm2
-rw-r--r--data/templates/new.htm (renamed from data/templates/index.htm)2
3 files changed, 4 insertions, 3 deletions
diff --git a/data/config.default.php b/data/config.default.php
index 8fb27a9..c40c690 100644
--- a/data/config.default.php
+++ b/data/config.default.php
@@ -9,7 +9,8 @@ $GLOBALS['phorkie']['cfg'] = array(
'topbar' => '',
'setupcheck' => true,
'elasticsearch' => null,
- 'geshi' => 'MediaWiki/geshi/geshi/geshi.php'
+ 'geshi' => 'MediaWiki/geshi/geshi/geshi.php',
+ 'index' => 'new'
);
$GLOBALS['phorkie']['tools'] = array(
'\\phorkie\\Tool_Xmllint' => true,
diff --git a/data/templates/base.htm b/data/templates/base.htm
index 0479cf6..b9c9608 100644
--- a/data/templates/base.htm
+++ b/data/templates/base.htm
@@ -20,7 +20,7 @@
</a>
<ul class="nav">
<li>
- <a href="/">New paste</a>
+ <a href="/new">New paste</a>
</li>
<li>
<a href="/list">List all</a>
diff --git a/data/templates/index.htm b/data/templates/new.htm
index 5752c1e..5b75bba 100644
--- a/data/templates/index.htm
+++ b/data/templates/new.htm
@@ -2,7 +2,7 @@
{% block title %}New paste{% endblock %}
{% block content %}
-<form method="post" action="/" enctype="multipart/form-data">
+<form method="post" action="/new" enctype="multipart/form-data">
<div class="control-group well pastedata">
<label for="description">Description</label>
<input type="text" name="description" id="description" value="{{description}}"/>