Newer Older
97 lines | 2.791kb
add files
Yuki Kimoto authored on 2014-03-26
1
<!DOCTYPE html>
2
<html>
3
  <head>
4
    <title><%= $title %></title>
5
    %= javascript '/mojo/prettify/run_prettify.js'
6
    %= stylesheet '/mojo/prettify/prettify-mojo-light.css'
7
    %= stylesheet begin
8
      a { color: inherit }
9
      a:hover { color: #2a2a2a }
10
      a img { border: 0 }
11
      body {
12
        background: url(<%= url_for '/mojo/pinstripe-light.png' %>);
13
        color: #445555;
14
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
15
        font-weight: normal;
16
        line-height: 1.5em;
17
        margin: 0;
18
      }
19
      h1, h2, h3 {
20
        color: #2a2a2a;
21
        font-size: 1.5em;
22
        margin: 0;
23
      }
24
      h1 a, h2 a, h3 a { text-decoration: none }
25
      pre {
26
        background: url(<%= url_for '/mojo/stripes.png' %>);
27
        border: 1px solid #d1d1d1;
28
        box-shadow: 0 1px #fff, inset -1px 1px 4px rgba(0, 0, 0, 0.1);
29
        color: #4d4d4c;
30
        font: 0.9em Consolas, Menlo, Monaco, Courier, monospace;
31
        line-height: 1.5em;
32
        padding-bottom: 1.5em;
33
        padding-top: 1.5em;
34
        text-align: left;
35
        text-shadow: #eee 0 1px 0;
36
        white-space: pre-wrap;
37
      }
38
      #footer {
39
        padding-top: 1em;
40
        text-align: center;
41
      }
42
      #perldoc {
43
        background-color: #fff;
44
        border-bottom-left-radius: 5px;
45
        border-bottom-right-radius: 5px;
46
        box-shadow: 0px 0px 2px #999;
47
        margin-left: 5em;
48
        margin-right: 5em;
49
        padding: 3em;
50
        padding-top: 70px;
51
      }
52
      #perldoc > ul:first-of-type a { text-decoration: none }
53
      #source { padding-bottom: 1em }
54
      #wrapperlicious {
55
        max-width: 1000px;
56
        margin: 0 auto;
57
      }
58
    % end
59
  </head>
60
  <body>
61
    %= include inline => app->renderer->_bundled('mojobar')
62
    <div id="wrapperlicious">
63
      <div id="perldoc">
64
        <div id="source">
65
          % my $path;
66
          % for my $part (split '/', $module) {
67
            %= '::' if $path
68
            % $path .= "/$part";
69
            %= link_to $part => url_for("/perldoc$path")
70
          % }
71
          (<%= link_to 'source' => url_for("/perldoc$path.txt") %>)
72
        </div>
73
        <h1><a id="toc">TABLE OF CONTENTS</a></h1>
74
        <ul>
75
          % for my $part (@$parts) {
76
            <li>
77
              %= link_to splice(@$part, 0, 2)
78
              % if (@$part) {
79
                <ul>
80
                  % while (@$part) {
81
                    <li><%= link_to splice(@$part, 0, 2) %></li>
82
                  % }
83
                </ul>
84
              % }
85
            </li>
86
          % }
87
        </ul>
88
        %= content_for 'perldoc'
89
      </div>
90
    </div>
91
    <div id="footer">
92
      %= link_to 'http://mojolicio.us' => begin
93
        %= image '/mojo/logo-black.png', alt => 'Mojolicious logo'
94
      % end
95
    </div>
96
  </body>
97
</html>