From f76fee63ed9cb3a30d3c0c092d860b1cb93a481b Mon Sep 17 00:00:00 2001
From: Gerard Smyth <gerard.smyth@gmail.com>
Date: Thu, 08 May 2014 13:09:30 -0400
Subject: [PATCH] Updated the SyndicationServlet to provide an additional option to return details of the tags in the repository instead of the commits. This uses a new 'ot' request parameter to indicate the object type of the content to return, which can be ither TAG or COMMIT. If this is not provided, then COMMIT is assumed to maintain backwards compatability. If tags are returned, then the paging parameters, 'l' and 'pg' are still supported, but searching options are currently ignored.

---
 src/main/java/com/gitblit/client/TeamsPanel.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/gitblit/client/TeamsPanel.java b/src/main/java/com/gitblit/client/TeamsPanel.java
index 9218222..4f52fde 100644
--- a/src/main/java/com/gitblit/client/TeamsPanel.java
+++ b/src/main/java/com/gitblit/client/TeamsPanel.java
@@ -47,9 +47,9 @@
 /**
  * Users panel displays a list of user accounts and allows management of those
  * accounts.
- * 
+ *
  * @author James Moger
- * 
+ *
  */
 public abstract class TeamsPanel extends JPanel {
 
@@ -76,6 +76,7 @@
 	private void initialize() {
 		JButton refreshTeams = new JButton(Translation.get("gb.refresh"));
 		refreshTeams.addActionListener(new ActionListener() {
+			@Override
 			public void actionPerformed(ActionEvent e) {
 				refreshTeams();
 			}
@@ -83,6 +84,7 @@
 
 		JButton createTeam = new JButton(Translation.get("gb.create"));
 		createTeam.addActionListener(new ActionListener() {
+			@Override
 			public void actionPerformed(ActionEvent e) {
 				createTeam();
 			}
@@ -91,6 +93,7 @@
 		final JButton editTeam = new JButton(Translation.get("gb.edit"));
 		editTeam.setEnabled(false);
 		editTeam.addActionListener(new ActionListener() {
+			@Override
 			public void actionPerformed(ActionEvent e) {
 				editTeam(getSelectedTeams().get(0));
 			}
@@ -99,6 +102,7 @@
 		final JButton delTeam = new JButton(Translation.get("gb.delete"));
 		delTeam.setEnabled(false);
 		delTeam.addActionListener(new ActionListener() {
+			@Override
 			public void actionPerformed(ActionEvent e) {
 				deleteTeams(getSelectedTeams());
 			}
@@ -136,6 +140,7 @@
 		});
 
 		table.addMouseListener(new MouseAdapter() {
+			@Override
 			public void mouseClicked(MouseEvent e) {
 				if (e.getClickCount() == 2) {
 					editTeam(getSelectedTeams().get(0));
@@ -145,11 +150,13 @@
 
 		filterTextfield = new JTextField();
 		filterTextfield.addActionListener(new ActionListener() {
+			@Override
 			public void actionPerformed(ActionEvent e) {
 				filterTeams(filterTextfield.getText());
 			}
 		});
 		filterTextfield.addKeyListener(new KeyAdapter() {
+			@Override
 			public void keyReleased(KeyEvent e) {
 				filterTeams(filterTextfield.getText());
 			}
@@ -204,6 +211,7 @@
 			return;
 		}
 		RowFilter<TeamsTableModel, Object> containsFilter = new RowFilter<TeamsTableModel, Object>() {
+			@Override
 			public boolean include(Entry<? extends TeamsTableModel, ? extends Object> entry) {
 				for (int i = entry.getValueCount() - 1; i >= 0; i--) {
 					if (entry.getStringValue(i).toLowerCase().contains(fragment.toLowerCase())) {
@@ -247,7 +255,7 @@
 	/**
 	 * Displays the create team dialog and fires a SwingWorker to update the
 	 * server, if appropriate.
-	 * 
+	 *
 	 */
 	protected void createTeam() {
 		EditTeamDialog dialog = new EditTeamDialog(gitblit.getProtocolVersion(),
@@ -296,7 +304,7 @@
 	/**
 	 * Displays the edit team dialog and fires a SwingWorker to update the
 	 * server, if appropriate.
-	 * 
+	 *
 	 * @param user
 	 */
 	protected void editTeam(final TeamModel team) {

--
Gitblit v1.9.1