File tree 3 files changed +42
-0
lines changed
3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 58
58
MENU = (
59
59
('Home' , '/' ), # internal link. First link will be highlited
60
60
('Download 0bin' , 'https://github.com/sametmax/0bin' ), # external link
61
+ ('Faq' , '/faq/' ), # faq
61
62
('Contact' , 'mailto:your@email.com' ) # email
62
63
)
63
64
Original file line number Diff line number Diff line change @@ -38,6 +38,12 @@ def index():
38
38
return GLOBAL_CONTEXT
39
39
40
40
41
+ @app .route ('/faq/' )
42
+ @view ('faq' )
43
+ def index ():
44
+ return GLOBAL_CONTEXT
45
+
46
+
41
47
@app .route ('/paste/create' , method = 'POST' )
42
48
def create_paste ():
43
49
Original file line number Diff line number Diff line change
1
+ <div class =" well" >
2
+
3
+ <h1 >FAQ</h1 >
4
+
5
+ %for i, entry in enumerate(settings.MENU):
6
+ %if "mailto:" in entry[1]:
7
+ <p >If a question does not appear here you can
8
+ <span title =" { { entry[1].replace(' mailto:' , ' ' ).replace(' @' , ' __AT__' ) } } "
9
+ class =" email-link" >
10
+ contact us
11
+ </span >.
12
+ </p >
13
+ %end
14
+ %end
15
+
16
+ <hr width =" 90%" >
17
+
18
+ <dl >
19
+
20
+ <dt >What's the name of the captain?</dt >
21
+ <dd >The name of the captain is Igloo !</dd >
22
+ </br >
23
+ <dt >What's the name of the captain?</dt >
24
+ <dd >The name of the captain is Igloo !</dd >
25
+ </br >
26
+ <dt >What's the name of the captain?</dt >
27
+ <dd >The name of the captain is Igloo !</dd >
28
+
29
+ </dl >
30
+
31
+ </div >
32
+
33
+
34
+
35
+ %rebase base settings=settings
You can’t perform that action at this time.
0 commit comments