Merge lp:~jelmer/launchpad/607677-grey-disabled-archives into lp:launchpad

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merged at revision: 11210
Proposed branch: lp:~jelmer/launchpad/607677-grey-disabled-archives
Merge into: lp:launchpad
Diff against target: 13 lines (+2/-1)
1 file modified
lib/lp/soyuz/templates/distribution-archive-list.pt (+2/-1)
To merge this branch: bzr merge lp:~jelmer/launchpad/607677-grey-disabled-archives
Reviewer Review Type Date Requested Status
Michael Nelson (community) ui Approve
Robert Collins (community) Approve
Review via email: mp+30627@code.launchpad.net

Commit message

Grey out disabled archives in the per-distribution copy archive list.

Description of the change

This simple change greys out disabled archives in the per-distribution copy archive list.

An example of how it looks can be found at http://people.canonical.com/~jelmer/screenshot-disabled-archives.png

To post a comment you must log in.
Revision history for this message
Robert Collins (lifeless) wrote :

Looks ok to me, fwiw.

review: Approve
Revision history for this message
Michael Nelson (michael.nelson) wrote :

Great - thanks Jelmer. The only thing that looks a little strange is the link (the fact that it's still blue). I don't know if we have a standard for displaying links for disable items, but:

https://edge.launchpad.net/~michael.nelson

shows a linked disabled PPA which is grey. The problem with the grey is that it's not obviously a link, which in the case of a row of data is much more of a problem. So I'm approving this as is, but just noting that we need to define guidelines for linking to disabled objects (I'll chat with Curtis later).

review: Approve (ui)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/soyuz/templates/distribution-archive-list.pt'
2--- lib/lp/soyuz/templates/distribution-archive-list.pt 2009-08-13 14:00:06 +0000
3+++ lib/lp/soyuz/templates/distribution-archive-list.pt 2010-07-22 09:51:10 +0000
4@@ -37,7 +37,8 @@
5 </thead>
6 <tbody>
7 <tal:batch_repeat repeat="archive batch">
8- <tr tal:define="build_counts archive/getBuildCounters">
9+ <tr tal:attributes="class python:not archive.enabled and 'greyed-out'"
10+ tal:define="build_counts archive/getBuildCounters">
11 <td tal:content="archive/date_created/fmt:approximatedate" />
12 <td>
13 <a tal:attributes="href archive/fmt:url"