Separate the ppa:xyz line from the rest of the text

Bug #674236 reported by zp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Won't Fix
Undecided
Unassigned

Bug Description

Please move the ppa:my-app line to its own, separate line so it is easier to select by double clicking.

 Ideally you would add a background effect similar to [/CODE] or [/QUOTE] tags as seen on Ubuntu forums.

That way it would pop right in your eyes what to select and make it easier to select by being in its own line.

Tags: lp-soyuz ppa
Curtis Hovey (sinzui)
affects: launchpad → soyuz
Revision history for this message
Julian Edwards (julian-edwards) wrote :

Thank you for filing this bug.

I am not sure what you are trying to do here. I presume you mean the PPA index page? I can double click the ppa: text fine and select it with ease. It's also bolded so stands out from the other text.

Can you explain further what you mean please?

Changed in soyuz:
status: New → Incomplete
tags: added: ppa
Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :

Yes, I'm talking about the PPA index page.

If I double click on the bold part I get the selection as seen on ppa-select.jpg.
If I continue clicking I get the ppa-triple.jpg and the entire surrounding text gets selected.

What I want is the bold ppa part copy the behavior of the "Technical details about this PPA" from the index page. There you have the deb and deb-src lines that have their box and if you double (triple?) click I get the selection only for the deb part (as seen in ppa-technical.jpg) but no the deb-src part.

Another Web2.0 way would be to add a copy to clipboard button that does some Javascript magic.

Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :
Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :
Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :
Revision history for this message
Julian Edwards (julian-edwards) wrote :

I can select it by double clicking, holding the mouse button down and moving across the words so it selects a word at a time.

Revision history for this message
Jelmer Vernooij (jelmer) wrote : Re: [Bug 674236] Re: Separate the ppa:xyz line from the rest of the text

On Fri, 2010-11-12 at 12:35 +0000, zekopeko wrote:
> Another Web2.0 way would be to add a copy to clipboard button that does
> some Javascript magic.
I agree that'd be nice, but is there some way to do that with just JavaScript? The only way I've seen so far required Flash.

Cheers,

Jelmer

Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :

I can too but I would like to be able to simply double-triple click to
select the PPA. Double clicking and dragging is a hassle since it took
me a couple of tries to get the timing right. My solution makes the
relevant (bold) part more visual and makes it less of a hassle.

On Fri, Nov 12, 2010 at 2:42 PM, Julian Edwards
<email address hidden> wrote:
> I can select it by double clicking, holding the mouse button down and
> moving across the words so it selects a word at a time.
>
> --
> Separate the ppa:xyz line from the rest of the text
> https://bugs.launchpad.net/bugs/674236
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :

You're right. I does require Flash. I thought of bit.ly but missed the
flash part.

But is the Flash part really that problematic? Here is a project that
uses Flash + JS and is FOSS: http://code.google.com/p/zeroclipboard/

Another option would be the ubufox extension for Ubuntu's Firefox.

On Fri, Nov 12, 2010 at 3:05 PM, Jelmer Vernooij
<email address hidden> wrote:
> On Fri, 2010-11-12 at 12:35 +0000, zekopeko wrote:
>> Another Web2.0 way would be to add a copy to clipboard button that does
>> some Javascript magic.
> I agree that'd be nice, but is there some way to do that with just JavaScript? The only way I've seen so far required Flash.
>
> Cheers,
>
> Jelmer
>
> --
> Separate the ppa:xyz line from the rest of the text
> https://bugs.launchpad.net/bugs/674236
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Given the amount of work versus the return on investment, this is not worth while doing, sorry. It's very easy to double click drag as I said, I don't know why you find it so hard.

Changed in soyuz:
status: Incomplete → Won't Fix
Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :

Implementing something like the attached screenshot would be a lot of work?

On Fri, Nov 12, 2010 at 3:34 PM, Julian Edwards
<email address hidden> wrote:
> Given the amount of work versus the return on investment, this is not
> worth while doing, sorry.  It's very easy to double click drag as I
> said, I don't know why you find it so hard.
>
> ** Changed in: soyuz
>       Status: Incomplete => Won't Fix
>
> --
> Separate the ppa:xyz line from the rest of the text
> https://bugs.launchpad.net/bugs/674236
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Robert Collins (lifeless) wrote :

 Well, we currently have a very high cost of change in LP - we're
working to reduce this and make it better.

I think won't fix is perhaps a bit harsh, but its definitely realistic
- we have a long queue of significant functional improvements to make.

OTOH I'd be delighted to mentor you in making this change yourself -
Launchpad is open source and when a change would be accepted (and I
think something tasteful to make it better would be fairly straight
forward and uncontentious). https://dev.launchpad.net/PatchSubmission

-Rob

Revision history for this message
zp (zekopeko-deactivatedaccount) wrote :

I'm interested in fixing this. Do understand that this then wouldn't
be a quick fix. I would need to learn Python, re-learn HTML+CSS and if
I would go about using Flash so people can copy to clipboard probably
Javascript. All of this would be on top of my other real-life
obligations so don't expect this to take just a few days.

If we could get this rolling then I would like you to point me to
where in the LP tree the script for generating PPA index page lives.

On Sat, Nov 13, 2010 at 10:51 AM, Robert Collins
<email address hidden> wrote:
>  Well, we currently have a very high cost of change in LP - we're
> working to reduce this and make it better.
>
> I think won't fix is perhaps a bit harsh, but its definitely realistic
> - we have a long queue of significant functional improvements to make.
>
> OTOH I'd be delighted to mentor you in making this change yourself -
> Launchpad is open source and when a change would be accepted (and I
> think something tasteful to make it better would be fairly straight
> forward and uncontentious). https://dev.launchpad.net/PatchSubmission
>
> -Rob
>
> --
> Separate the ppa:xyz line from the rest of the text
> https://bugs.launchpad.net/bugs/674236
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Robert Collins (lifeless) wrote :

The page you're referring to is delivered live every time - its less
of a script and more of a template. Looking at
'https://launchpad.net/~lifeless/+archive/ppa' I can see that this is
the default rendering for an archive. I'd expect the relevant template
to be:

lib/lp/soyuz/templates/archive-index.pt

As you can see this is an xhtml file which we use to render the html
sent to you from Launchpad.

This bit:

<strong tal:content="context/fmt:reference">ppa:cprov/ppa</strong>

Is the ppa:foo/bar string that you want to make easier to cope. The
<strong> is regular html formatting. The
'tag:content="context/fmt:reference"' bit is what looks up the ppa
line for you - the literal 'ppa:cprov/ppa' there is to make editing
the page clearer - it shows an example that you might find by looking
at a live page.

Revision history for this message
Julian Edwards (julian-edwards) wrote :

Rob, it's not harsh at all given that it's perfectly possible to do what he wants with zero changes. Also given that, as you note, we can spend the time fixing the other urgent issues that everyone wants to see fixed.

> "so don't expect this to take just a few days"

Exactly.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.