~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/soyuz/browser/publishing.py

[r=sinzui][bug=676825] Sort order is called 'not recently modified'
        not 'most neglected'

Show diffs side-by-side

added added

removed removed

Lines of Context:
172
172
        return self.context.dateremoved is not None
173
173
 
174
174
    @property
 
175
    def js_connector(self):
 
176
        """Return the javascript glue for expandable rows mechanism."""
 
177
        return """
 
178
        <script type="text/javascript">
 
179
           registerLaunchpadFunction(function() {
 
180
               // Set the style of the expander icon so that it appears
 
181
               // clickable when js is enabled:
 
182
               var view_icon = document.getElementById('pub%s-expander');
 
183
               view_icon.style.cursor = 'pointer';
 
184
               connect('pub%s-expander', 'onclick', function (e) {
 
185
                   toggleExpandableTableRow('pub%s');
 
186
                   });
 
187
               });
 
188
        </script>
 
189
        """ % (self.context.id, self.context.id, self.context.id)
 
190
 
 
191
    @property
175
192
    def removal_comment(self):
176
193
        """Return the removal comment or 'None provided'."""
177
194
        removal_comment = self.context.removal_comment