Move edge message to the footer, allow people to stop redirection

Bug #429353 reported by Martin Albisetti
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Michael Nelson

Bug Description

For 3.0, we don't want the edge message to be so prominent.
To accomplish this, we need to remove the message from the top, and add one in the footer that says:

"_Disable edge redirect_"/"_Enable edge redirect_", both are green links and call "setBetaRedirect(true/false)".

Martin Albisetti (beuno)
Changed in launchpad-foundations:
assignee: nobody → Michael Nelson (michael.nelson)
Changed in launchpad-foundations:
status: Triaged → In Progress
Revision history for this message
Michael Nelson (michael.nelson) wrote :

OK, I think a few things need to be clarified here:

First, if we are talking about moving the site_message from the top to the footer - that's easy, but it will affect all site-messages (ie. also staging and dogfood's site messages).

Second, the actual links within the site-message will simply be part of the config site_message variable (I'll test those locally).

Third, I'm not sure why we'd want "Enable edge redirect" in the site_message for edge, as it will only ever be seen when on edge (note: on the homepage at launchpad.dev there is an option to re-enable the redirection).

Revision history for this message
Martin Albisetti (beuno) wrote : Re: [Bug 429353] Re: Move edge message to the footer, allow people to stop redirection

On Tue, Sep 15, 2009 at 11:18 AM, Michael Nelson
<email address hidden> wrote:
> First, if we are talking about moving the site_message from the top to
> the footer - that's easy, but it will affect all site-messages (ie. also
> staging and dogfood's site messages).

I think this is fine, we already have a background that is pretty obvious.

> Second, the actual links within the site-message will simply be part of
> the config site_message variable (I'll test those locally).

Sure.

> Third, I'm not sure why we'd want "Enable edge redirect" in the
> site_message for edge, as it will only ever be seen when on edge (note:
> on the homepage at launchpad.dev there is an option to re-enable the
> redirection).

The enable will only be for when it is disabled, which is basically
what you toggle from the home page AFAIK. Bonus points if the redirect
is permanent instead of "2 hours", as it's very easy for users to
switch it on and off.
I guess that, if it where cheap, we could show the "enable" message on
production *if* you where a member of the beta team. Not sure how
cheap or easy to do that is.

Revision history for this message
Michael Nelson (michael.nelson) wrote : Re: [Bug 429353] Re: Move edge message to the footer, allow people to stop redirection

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Martin Albisetti wrote:
> On Tue, Sep 15, 2009 at 11:18 AM, Michael Nelson
>> Third, I'm not sure why we'd want "Enable edge redirect" in the
>> site_message for edge, as it will only ever be seen when on edge (note:
>> on the homepage at launchpad.dev there is an option to re-enable the
>> redirection).
>
> The enable will only be for when it is disabled, which is basically
> what you toggle from the home page AFAIK. Bonus points if the redirect

Yes, there is already an enable button on the home page of lp.net and
this works fine. All I meant was that it doesn't make sense to put it in
the site_message - which only appears on edge (production doesn't use a
site_message at all). The site_message is just a config option - it does
not know of its environement - if one is defined it will be displayed in
the designated spot on the template.

So, I'm assuming that for this trivial fix I'll move the site_message to
the bottom and test and suggest the new configuration site_message that
should be used for edge (for the disable-redirect js-link). The current
re-enabling of redirects (from lp.net) will continue to work as is.

If you're actually wanting to have separate site_messages in different
locations for different envs, then we'd need a bit more
infrastructure/config changes.

- --
Michael
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkqvY8kACgkQGSan/irvan0fcACfSu60RiIJLZZGuLsQ8cTMb23J
oHEAn36Wq7YSw+4cv/uAhSq9iW0fWRC3
=A7dg
-----END PGP SIGNATURE-----

Revision history for this message
Martin Albisetti (beuno) wrote : Re: [Bug 429353] Re: Move edge message to the footer, allow people to stop redirection

> If you're actually wanting to have separate site_messages in different
> locations for different envs, then we'd need a bit more
> infrastructure/config changes.

No, this is good ;)

Revision history for this message
Diogo Matsubara (matsubara) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
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.