~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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<div
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  tal:define="context_menu view/context/menu:context">

  <div tal:condition="not: context/revision_count">
    <div tal:condition="context/branch_type/enumvalue:IMPORTED">
      This branch is updated by the Launchpad import system.
    </div>
  </div>

  <dl id="download-url"
      tal:condition="view/bzr_download_url">
    <dt>Get this branch:</dt>
    <dd>bzr branch <span class="branch-url" tal:content="view/bzr_download_url" /></dd>
  </dl>

  <tal:hosted-branch condition="context/branch_type/enumvalue:HOSTED">
    <div id="upload-directions">
      <tal:not-logged-in condition="not:view/user">
        <tal:individual condition="not:context/owner/isTeam">
            Only
            <a tal:attributes="href context/owner/fmt:url"
               tal:content="context/owner/displayname">Person</a>
            can upload to this branch. If you are
            <tal:branch-owner replace="context/owner/displayname"/>
            please <a href="+login">log in</a> for upload directions.
        </tal:individual>
        <tal:team tal:condition="context/owner/isTeam">
            Members of
            <a tal:attributes="href context/owner/fmt:url"
               tal:content="context/owner/displayname">Team</a>
            can upload to this branch. <a href="+login">Log in</a> for directions.
        </tal:team>
      </tal:not-logged-in>

      <tal:logged-in condition="view/user">
        <tal:can-upload tal:condition="view/user_can_upload">
          <dl id="upload-url">
            <dt>Update this branch:</dt>
            <dd>bzr push
              <tal:use-existing condition="view/is_empty_directory">
              --use-existing
              </tal:use-existing>
            <span class="branch-url" tal:content="context/bzr_identity" /></dd>
          </dl>
          <p tal:condition="not:view/user/sshkeys" id="ssh-key-directions">
            To authenticate with the Launchpad branch upload service, you need
            to <a tal:attributes="href string:${view/user/fmt:url}/+editsshkeys">
              register a SSH key </a>.
          </p>
        </tal:can-upload>

        <tal:cannot-upload condition="not:view/user_can_upload">
          <div id="upload-directions" tal:condition="not:context/owner/isTeam">
            You cannot upload to this branch. Only
            <a tal:attributes="href context/owner/fmt:url"
               tal:content="context/owner/displayname">Person</a>
            can upload to this branch.
          </div>
          <div id="upload-directions" tal:condition="context/owner/isTeam">
            You cannot upload to this branch. Members of
            <a tal:attributes="href context/owner/fmt:url"
               tal:content="context/owner/displayname">Team</a>
            can upload to this branch.
          </div>

        </tal:cannot-upload>

      </tal:logged-in>

    </div>
  </tal:hosted-branch>

  <div
    style="margin-top: 1.5em"
    tal:define="link context_menu/source"
    tal:condition="link/enabled"
    >
    <a tal:replace="structure link/fmt:link" />
  </div>

</div>