Show download links as a tabbed panel

Users can now select which link they prefer to see, and only that
one is displayed in the UI panel.  This reduces the vertical space
we need to show the different command permutations that we support
to download a patch set from a change.

If the user is signed-in, their most recent preference is stored
in the database as part of their user account, so future displays
will default back to that type of link again.

Change-Id: I6bc9c21ad4f9b1e8124530d016aea3c57c2a1bcb
Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2010-02-22 12:41:07 -08:00
parent e6fc72f381
commit 6df5ea1a3d
12 changed files with 525 additions and 58 deletions

View File

@@ -32,7 +32,7 @@ import java.util.List;
/** A version of the database schema. */
public abstract class SchemaVersion {
/** The current schema version. */
private static final Class<? extends SchemaVersion> C = Schema_28.class;
private static final Class<? extends SchemaVersion> C = Schema_29.class;
public static class Module extends AbstractModule {
@Override

View File

@@ -0,0 +1,25 @@
// Copyright (C) 2010 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package com.google.gerrit.server.schema;
import com.google.inject.Inject;
import com.google.inject.Provider;
class Schema_29 extends SchemaVersion {
@Inject
Schema_29(Provider<Schema_28> prior) {
super(prior);
}
}