mirror of
https://github.com/Tygs/0bin.git
synced 2023-08-10 21:13:00 +03:00
Added faq
This commit is contained in:
parent
4ce06120b0
commit
6ad2b896fb
@ -58,6 +58,7 @@ GROUP = None
|
||||
MENU = (
|
||||
('Home', '/'), # internal link. First link will be highlited
|
||||
('Download 0bin', 'https://github.com/sametmax/0bin'), # external link
|
||||
('Faq', '/faq/'), # faq
|
||||
('Contact', 'mailto:your@email.com') # email
|
||||
)
|
||||
|
||||
|
@ -38,6 +38,12 @@ def index():
|
||||
return GLOBAL_CONTEXT
|
||||
|
||||
|
||||
@app.route('/faq/')
|
||||
@view('faq')
|
||||
def index():
|
||||
return GLOBAL_CONTEXT
|
||||
|
||||
|
||||
@app.route('/paste/create', method='POST')
|
||||
def create_paste():
|
||||
|
||||
|
35
zerobin/views/faq.tpl
Normal file
35
zerobin/views/faq.tpl
Normal file
@ -0,0 +1,35 @@
|
||||
<div class="well">
|
||||
|
||||
<h1>FAQ</h1>
|
||||
|
||||
%for i, entry in enumerate(settings.MENU):
|
||||
%if "mailto:" in entry[1]:
|
||||
<p>If a question does not appear here you can
|
||||
<span title="{{ entry[1].replace('mailto:', '').replace('@', '__AT__') }}"
|
||||
class="email-link" >
|
||||
contact us
|
||||
</span>.
|
||||
</p>
|
||||
%end
|
||||
%end
|
||||
|
||||
<hr width="90%">
|
||||
|
||||
<dl>
|
||||
|
||||
<dt>What's the name of the captain?</dt>
|
||||
<dd>The name of the captain is Igloo !</dd>
|
||||
</br>
|
||||
<dt>What's the name of the captain?</dt>
|
||||
<dd>The name of the captain is Igloo !</dd>
|
||||
</br>
|
||||
<dt>What's the name of the captain?</dt>
|
||||
<dd>The name of the captain is Igloo !</dd>
|
||||
|
||||
</dl>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
%rebase base settings=settings
|
Loading…
Reference in New Issue
Block a user