~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="view/macro:page/main_side"
  i18n:domain="launchpad"
>

<body>

<metal:side fill-slot="side">
  <div tal:replace="structure context/@@+global-actions" />
  <div tal:replace="structure context/@@+portlet-answercontacts|nothing" />
</metal:side>


<div metal:fill-slot="main"
     tal:define="faqs view/getMatchingFAQs">

  <div>
    <form method="get" id="question-search-form" action=""
          accept-charset="UTF-8"
          tal:attributes="action view/action_url">

      <tal:searchbox replace="structure view/widgets/search_text" />

      <input tal:replace="structure view/search_action/render" />

    </form>
  </div>

  <p i18n:translate=""
     tal:condition="not: faqs/batch"
     tal:content="view/empty_listing_message">
    No FAQs.
  </p>

  <p tal:condition="view/matching_questions_count">
    You can also consult the list of
    <a href="#" tal:attributes="href view/matching_questions_url"
       ><tal:count replace="view/matching_questions_count" /> question(s)</a>
    matching
    &ldquo;<tal:keywords replace="view/search_text"
                         >Keywords</tal:keywords>&rdquo;.
  </p>

  <tal:results condition="faqs">
    <ul id="faqs-listing"
        class="faq">
      <li tal:repeat="faq faqs/batch"
          tal:attributes="title faq/content/fmt:shorten/320"
          ><a href="#"
              tal:attributes="href faq/fmt:url"
              tal:content="faq/title"
              class="sprite question">How do I do this?</a></li>
    </ul>
    <tal:navigation replace="structure faqs/@@+navigation-links-lower" />
  </tal:results>

  <ul class="horizontal">
    <li>
      <a tal:replace="structure view/menu:answers/create_faq/fmt:link" />
    </li>
  </ul>
</div>

</body>
</html>