~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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<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"
>

<metal:block fill-slot="head_epilogue">
  <style type="text/css">
    .binary-build .indent {
      padding-left: 2em;
    }
    div#edit-recipe_text, div#edit-description {
      font-family: "Ubuntu Mono",monospace;
      margin: 1em 0;
    }
    div#edit-recipe_text.yui3-editable_text-content,
    div#edit-description.yui3-editable_text-content {
      margin-top: -15px;
    }
    .build-informational,
    .build-error {
        background: #d4e8ff url('/+icing/blue-fade-to-grey');
        border: solid #666;
        border-width: 1px 2px 2px 1px;
        color: black;
        padding: 5px 5px 5px 5px;
        margin-right: 40px
    }
    .build-informational::before {
        padding-right: 5px;
        content: url('/@@/info');
    }
    .build-error::before {
        padding-right: 5px;
        content: url('/@@/error');
    }
    .popup-build-informational {
        color: black;
    }
    .popup-build-informational::before {
        padding-right: 5px;
        content: url('/@@/info');
    }
  </style>
</metal:block>

<body>

<tal:registering metal:fill-slot="registering">
  Created by
    <tal:registrant replace="structure context/registrant/fmt:link" />
  on
    <tal:created-on replace="structure context/date_created/fmt:date" />
  and last modified on
    <tal:last-modified replace="structure context/date_last_modified/fmt:date" />
</tal:registering>


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

<metal:heading fill-slot="heading">
  <h1 tal:replace="structure view/name_widget">
    recipe name
  </h1>
</metal:heading>

<div metal:fill-slot="main">
  <div class="yui-g first">
    <div class="yui-u first">
      <div class="portlet">
        <h2 class="lazr-multiline-edit-header">Description</h2>
        <tal:description replace="structure view/description_widget"/>
      </div>
    </div>
    <div class="yui-u">
      <div class="portlet">
        <h2>Recipe information</h2>
        <div class="two-column-list">
          <dl id="build_daily">
            <dt>Build schedule:
              <a href="/+help-code/recipe-build-frequency.html" target="help" class="sprite maybe">
                &nbsp;<span class="invisible-link">Tag help</span>
              </a>
            </dt>
            <dd tal:content="structure view/daily_build_widget"/>
            <dd
              tal:define="link context/menu:context/request_daily_build"
              tal:condition="link/enabled"
              >
              <noscript>
                <form action="+request-daily-build"
                      method="post"
                      id="request-daily-build-form">
                    <input type="submit" name="field.actions.build"
                        id="field.actions.build" value="Build now" />
                </form>
              </noscript>
              <a id="request-daily-build"
                 class="sprite source-package-recipe js-action unseen"
                 tal:attributes="href link/url"
                 tal:content="link/text"/>
            </dd>
          </dl>

          <dl id="owner">
            <dt>Owner:</dt>
            <dd tal:content="structure view/person_picker"/>
          </dl>
          <dl id="base-branch">
            <dt>Base branch:</dt>
            <dd tal:content="structure context/base_branch/fmt:link" />
          </dl>
          <dl id="debian-version">
            <dt>Debian version:</dt>
            <dd tal:content="context/deb_version_template" />
          </dl>
          <dl id="daily_build_archive">
            <dt>Daily build archive:</dt>
            <dd tal:content="structure view/archive_picker"/>
          </dl>
          <dl id="distroseries">
            <tal:distroseries tal:replace="structure view/distroseries_widget"/>
          </dl>
        </div>
      </div>
    </div>
  </div>

  <div class="yui-g">
    <div id="builds-target" tal:content="structure context/@@+builds" />
  </div>
  <div
    tal:define="link context/menu:context/request_builds"
    tal:condition="link/enabled"
    >
    <a id="request-builds"
       class="sprite add"
       tal:attributes="href link/url"
       tal:content="link/text" />
  </div>
  <div class='portlet'>
    <h2>Recipe contents</h2>
    <tal:widget replace="structure view/recipe_text_widget"/>
  </div>

  <script type="text/javascript">
    LPS.use('io-base', 'lp.ui', 'lp.code.requestbuild_overlay', function(Y) {

        Y.on('lp:context:deb_version_template:changed', function(e) {
            Y.lp.ui.update_field('#debian-version dd', e.new_value);
        });
        Y.on('lp:context:base_branch_link:changed', function(e) {
            Y.lp.ui.update_field('#base-branch dd', e.new_value_html);
        });

        if(Y.UA.ie) {
            return;
        }
        Y.on('load', function() {
            var logged_in = LP.links['me'] !== undefined;
            if (logged_in) {
                build_now_link = Y.one('#request-daily-build');
                if( build_now_link != null ) {
                  build_now_link.removeClass('unseen');
                  Y.lp.code.requestbuild_overlay.connect_requestdailybuild();
                }
                Y.lp.code.requestbuild_overlay.connect_requestbuilds();

            }
        }, window);
      });
    </script>
</div>
</body>
</html>