~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
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  metal:use-macro="view/macro:page/main_only"
>
<body>

<div metal:fill-slot="main">
  <div tal:condition="view/direct_question_targets">
    <h2>Contact via self subscription</h2>

    <ul class="listing" id="direct-answer-contacts-for-list">
      <li tal:repeat="question_target view/direct_question_targets">
        <a
          tal:attributes="href question_target/fmt:url:answers"
          tal:content="question_target/title">Project Title</a>
        <tal:link condition="view/showRemoveYourselfLink">
          <a class="sprite remove"
            tal:attributes="
            href string:${question_target/fmt:url}/+answer-contact;
            id string:${question_target/name}-setdirectanswercontact"
            ><span class="invisible-link">Unsubscribe</span></a>
        </tal:link>
      </li>
    </ul>
  </div>

  <div tal:condition="view/team_question_targets">
    <h2>Contact via team participation</h2>

    <ul class="listing" id="team-answer-contacts-for-list">
      <li tal:repeat="question_target view/team_question_targets">
        <a
          tal:attributes="href question_target/fmt:url:answers"
          tal:content="question_target/title">Project Title</a>
        <tal:link condition="view/showRemoveYourselfLink">
          <a class="sprite remove"
            tal:attributes="
            href string:${question_target/fmt:url}/+answer-contact;
            id string:${question_target/name}-setteamanswercontact"
            ><span class="invisible-link">Unsubscribe team</span></a>
        </tal:link>
      </li>
    </ul>
  </div>

  <p tal:condition="not: view/team_question_targets | view/direct_question_targets">
    <span tal:replace="context/displayname">Person Name</span>
    is not an answer contact for any project.
  </p>
</div>

</body>
</html>