~noskcaj/ubuntu/saucy/dhelp/apache2.4

« back to all changes in this revision

Viewing changes to templates/index.rhtml

  • Committer: Charlie Smotherman
  • Date: 2012-11-05 23:48:50 UTC
  • mfrom: (22.1.1 dhelp)
  • Revision ID: cjsmo@cableone.net-20121105234850-4a447ob81bs9a5je
Tags: 0.6.21+nmu1ubuntu1
* Merge from Debian unstable. Remaining changes:
  - lib/dhelp.rb:
    + Exit and return zero code if bdb isn't available; this usually
      indicates that dhelp is not configured yet.
* Non-Maintainer Upload
* Dropped the declaration of dependence on ruby-commandline, which was
  already done on the code
* New maintainer: Georgios M. Zarkadas <gz@member.fsf.org> (Closes: #650441). 
* Support other web servers in addition to apache2 (Closes: #669041).
* Support apache2 packaging transition for version 2.4 (Closes: #669758).
* Support new ruby packaging policy transition for Wheezy.
* Use OptionParser instead Commandline::Application (Closes: #678055).
  Thanks Gunnar Wolf.
* Support new layout of man2html cgi scripts for Wheezy.
* Keep supporting previous policies/layouts, either during build time or
  during runtime, to aid backporting.
* Man and info pages links are activated only if associated packages are
  installed on the system.
* Subsections now show in the sections list only if section is selected.
* New color, styles and icons themes.
* Package installation now does not fail if cache data cannot be generated
  during install.
* Fix some minor lintian warnings.
* Bump Standards-Version to 3.9.3.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 
2
 "http://www.w3.org/TR/html4/strict.dtd">
 
3
<html>
 
4
<%
 
5
    cgimap = Dhelp::Exporter::CgiMap.new()
 
6
%>
 
7
<head>
 
8
<title><%= _("Debian Online Help") %></title>
 
9
    <link rev="made" href="mailto:dhelp@packages.debian.org">
 
10
    <link rel="stylesheet" href="../dhelp/css/dhelp.css">
 
11
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
 
12
</head>
 
13
 
 
14
<body>
 
15
    <div id="top-bar">
 
16
        <h1><a href="index.html"><span
 
17
        id="logo"><img src="../dhelp/css/swirl.png" alt=""><img
 
18
        src="../dhelp/css/debian.png" alt="Debian"></span>
 
19
            <%= _("Online Help") %></a></h1>
 
20
 
 
21
        <div id="navigation-bar">
 
22
            <%= cgimap.info2www_link() %> |
 
23
            <%= cgimap.man2html_link() %> |
 
24
            <a href="../"><%= _("documentation folder") %></a> |
 
25
 
 
26
            <form id="search-form" action="/cgi-bin/dsearch">
 
27
                <div id="search-form-contents">
 
28
                    <input type="text" name="search">
 
29
                    <input type="submit" value="<%= _("Search") %>">
 
30
                </div>
 
31
            </form>
 
32
        </div>
 
33
    </div>
 
34
 
 
35
    <div id="content">
 
36
        <h2><%= _("Documentation Index") %></h2>
 
37
 
 
38
        <div id="item-list"><div class="spacer">
 
39
<%
 
40
    ident = "    " * 3
 
41
    miss_man  = ! cgimap.installed?("man2html")
 
42
    miss_info = ! cgimap.installed?("info2www")
 
43
 
 
44
    note_para = ident + '<p class="note">'
 
45
    if miss_man
 
46
        note_para += _("Install package man2html to browse man pages.")
 
47
    end
 
48
 
 
49
    if miss_info
 
50
        note_para += (miss_man ? " " : "") + \
 
51
            _("Install package info2www to browse info pages.")
 
52
    end
 
53
    note_para += "</p>\n"
 
54
 
 
55
    if ! (miss_man || miss_info)
 
56
        note_para = ""
 
57
    end
 
58
%>
 
59
<%= note_para %>
 
60
            <p><%= _( \
 
61
                "Welcome to Debian Online Help. Pick a section from the " + \
 
62
                "list to browse the Debian documentation that is installed " + \
 
63
                "on the system. Alternatively, you may want to <a " + \
 
64
                "href=\"All/index.html\">see all sections in one page</a>." \
 
65
                ) %></p>
 
66
            <p><%= _( \
 
67
                "If you are using Debian Online Help with a web server, " + \
 
68
                "you may have to do a few actions by hand in order to " + \
 
69
                "finish dhelp configuration. Instructions are given in" \
 
70
                ) %> <a
 
71
            href="../dhelp/README.Debian">/usr/share/doc/dhelp/README.Debian.gz</a>
 
72
            .</p>
 
73
            <p><%= _( \
 
74
                "Debian Online Help can use the features of other packages " + \
 
75
                "to supply additional information (such as man and info " + \
 
76
                "pages), but does not enforce you to co-install them. Thus " + \
 
77
                "some items may be <em>disabled</em>. When the associated " + \
 
78
                "helper package is installed, the disabled items will " + \
 
79
                "become enabled as soon as the index is rebuilt." \
 
80
                ) %></p>
 
81
        </div></div>
 
82
 
 
83
        <div id="dir-panel">
 
84
            <!-- Directory list -->
 
85
            <% @section_tree.keys.sort.each do |entry| %>
 
86
                <div class="dir-panel-entry">
 
87
                    <img src="../dhelp/css/book.png" alt="">
 
88
                    <a href="<%= entry %>/index.html"><%= entry %></a>
 
89
                </div>
 
90
            <% end %>
 
91
        </div>
 
92
 
 
93
        <a href="All/index.html"><%= _("See all sections in one page") %></a>
 
94
    </div>
 
95
</body>
 
96
</html>