~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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<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/locationless"
  i18n:domain="launchpad">
  <metal:head fill-slot="head_epilogue">
    <style>
      .homepage {
          margin: auto;
          width: 90%;
          max-width: 80em;
      }
      #homepage-whatslaunchpad ul {
          margin-left: 1em;
          margin-bottom: 0.5em;
      }
      #homepage-whatslaunchpad ul,
      #homepage-whatslaunchpad-tour {
          font-weight: bold;
      }
      #homepage-stats {
          max-width: 50em;
          margin: auto;
          padding-top: 0.5em;
          color: gray;
      }
      #homepage-blogposts {
          padding-right: 4em;
      }
      #homepage-getstarted ul {
          padding-top: 0.5em;
          }
      .featured-project-top h3 {
          font-weight: bold;
          }
      .featured-project-top h3 img {
          vertical-align: middle;
          }
      .featured-project-top p {
          margin-top: 0.5em;
          margin-bottom: 1em;
          padding-bottom: .5em;
          border-bottom: 1px dotted #999;
          }
    </style>
  </metal:head>
  <body>
    <div metal:fill-slot="main">

      <tal:comment replace="nothing">
        Do not replace the line below: "Is your project registered yet?"
        without contacting the IS team. It's used by Nagios to verify
        the app servers are running.
      </tal:comment>
      <!-- Is your project registered yet? -->

      <div id="homepage" class="homepage">

        <div class="top-portlet" style="border-bottom: 1px dotted #999;">
          <img src="/@@/launchpad-logo-and-name.png"
               alt=""
               style="margin: 0 9em 1em 0"/>
        </div>

        <div class="yui-g">
          <div class="yui-u first" style="margin-top: 1.5em;">
            <div class="homepage-whatslaunchpad"
                 tal:condition="not:view/user" tal:content="cache:anonymous">
              <h2><span class="launchpad-gold">Launchpad</span> is a software collaboration platform that provides:</h2>
              <ul tal:define="apphomes view/apphomes">
              <li>
                <a class="sprite bug"
                  tal:attributes="href apphomes/bugs">Bug tracking</a>
              </li>
              <li>
                <a class="sprite branch"
                  tal:attributes="href apphomes/code">Code hosting</a>
                using <a href="http://bazaar.canonical.com/">Bazaar</a>
              </li>
              <li>
                <a class="sprite yes"
                  href="https://help.launchpad.net/Code/Review">Code reviews</a>
              </li>
              <li>
                <a class="sprite ubuntu-logo"
                  tal:attributes="href apphomes/ubuntu">Ubuntu package building and hosting</a>
              </li>
              <li>
                <a class="sprite translate-icon"
                  tal:attributes="href apphomes/translations">Translations</a>
              </li>
              <li>
                <a class="sprite mail"
                  href="https://help.launchpad.net/Teams/MailingLists">Mailing lists</a>
              </li>
              <li>
                <a class="sprite question"
                  tal:attributes="href apphomes/answers">Answer tracking and FAQs</a>
              </li>
              <li>
                <a class="sprite blueprint"
                  tal:attributes="href apphomes/blueprints">Specification tracking</a>
              </li>
              </ul>
              <div id="homepage-whatslaunchpad-tour">
                 <a class="sprite tour" href="/+tour">Take the tour!</a>
               </div>
            </div>

            <div id="homepage-blogposts" class="homepage-portlet"
              tal:content="cache:public, 1 hour">
              <h2>Recent Launchpad blog posts</h2>
              <ul tal:define="posts view/getRecentBlogPosts">
                <li class="news"
                    tal:repeat="post posts">
                    <a href="" tal:attributes="href post/link"
                      tal:content="post/title">
                      Take the Launchpad survey</a><span class="registered">
                      &ndash; <tal:date content="post/date">01 July 2010</tal:date></span><br />
                <tal:description content="structure post/description">
                  Tell us a little about how you use Launchpad by answering
                  our short survey.
                </tal:description>
                </li>
                <li class="news">
                  <a href="http://blog.launchpad.net/general/launchpad-is-now-open-source">
                    Launchpad now open source</a><span class="registered"> &ndash; 21 Jul 2009</span><br />
                    Get the code to Launchpad and join our development community.
                </li>
              </ul>
              <ul class="horizontal">
                <li>
                  <strong><a href="http://blog.launchpad.net">Read the blog</a></strong>
                </li>
              </ul>
            </div>
          </div>

          <div class="yui-u">
            <form id="homepage-searchform"
              xml:lang="en" lang="en" dir="ltr"
              tal:attributes="action string:${rooturl}+search"
              method="get" accept-charset="UTF-8">
              <input id="text" type="text" name="field.text" size="25%" />
              <input id="search" type="submit" value="Search Launchpad" />
            </form>
            <script type="text/javascript"><!--
              setFocusByName('field.text');
            // --></script>
            <div id="homepage-stats" tal:content="cache:public, 1 hour">
              <strong
                tal:content="view/project_count/fmt:intcomma">123</strong>&nbsp;projects,
              <strong
                tal:content="view/bug_count/fmt:intcomma">123</strong>&nbsp;bugs,
              <strong
                tal:content="view/branch_count/fmt:intcomma">123</strong>&nbsp;branches,
              <strong
                tal:content="view/translation_count/fmt:intcomma">123</strong>&nbsp;translations,
              <strong
                tal:content="view/answer_count/fmt:intcomma">123</strong>&nbsp;answers,
              <strong
                tal:content="view/blueprint_count/fmt:intcomma">123</strong>&nbsp;blueprints,
              and&nbsp;counting...
            </div>
            <div id="homepage-getstarted" class="homepage-portlet">
              <h2>Get started</h2>
              <tal:logged_out condition="not:view/user" omit-tag="">
                <a href="/+login">Creating an account</a> allows you to start
                working within Launchpad.<br />
              </tal:logged_out>
              <p>
                Learn more about Launchpad in the
                <a href="https://help.launchpad.net/">user guide</a>
                or try it for yourself in our
                <a href="https://qastaging.launchpad.net/">sandbox environment</a>.
              </p>
              <tal:logged_in condition="view/user" omit-tag=""
                tal:content="cache:public">
                If you're ready, you can:
                <ul tal:define="apphomes view/apphomes">
                  <li>
                    <a class="sprite add"
                      href="/projects/+new">Register a project</a>
                  </li>
                  <li>
                    <a class="sprite add"
                      href="/people/+newteam">Register a team</a>
                  </li>
                  <li>
                    <a class="sprite bug"
                      tal:attributes="href apphomes/bugs">Browse bugs</a>
                  </li>
                  <li>
                    <a class="sprite translate-icon"
                      tal:attributes="href apphomes/translations">Help translate</a>
                  </li>
                  <li>
                    <a class="sprite question"
                      tal:attributes="href apphomes/answers">Find answers</a>
                  </li>
                  <li>
                    <a class="sprite ppa-icon"
                      href="/ubuntu/+ppas">Browse Ubuntu PPAs</a>
                  </li>
                  <li>
                     <a class="sprite tour" href="/+tour">Take the tour</a>
                   </li>
                </ul>
              </tal:logged_in>
            </div>

            <div id="homepage-featured" class="homepage-portlet"
                tal:content="cache:anonymous, 1 hour">
              <tal:cache
                  tal:content="cache:public, 5 minutes" tal:omit-tag="">
              <h2>Featured projects</h2>

              <div class="featured-project-top"
                   tal:define="topproject view/featured_projects_top"
                   tal:condition="topproject">
                <h3>
                  <a tal:attributes="href topproject/fmt:url"
                    tal:content="structure topproject/image:logo"><img /></a>
                  <a tal:attributes="href topproject/fmt:url"
                    tal:content="topproject/displayname">Foo project</a>
                </h3>
                <p tal:content="structure view/featured_projects_top/summary/fmt:shorten/200">
                   Foo project is great...
                </p>
              </div>

              <div class="two-column-list">
                <ul class="featured-projects-list">
                  <li tal:repeat="project view/featured_projects">
                    <a tal:replace="structure project/fmt:link" />
                  </li>
                </ul>
              </div>
              </tal:cache>

              <ul class="horizontal">
                <li tal:content="cache:public, 1 hour">
                  <strong><a href="/projects">Browse all
                    <tal:count content="view/project_count">42</tal:count>
                    projects</a>!</strong>
                </li>
                <li tal:condition="context/required:launchpad.Edit">
                  <a class="sprite edit" href="+featuredprojects">Manage
                  featured project list</a>
                </li>
              </ul>
            </div>
          </div><!-- yui-u -->

        </div><!-- yui-gc -->
      </div><!-- homepage -->
    </div><!--main-->
  </body>
</html>