James Moger
2012-10-03 f22a0633d08e38ac4bf92b5165a708e11b4d6598
src/com/gitblit/wicket/pages/TagPage.java
@@ -27,8 +27,8 @@
import com.gitblit.models.RefModel;
import com.gitblit.utils.JGitUtils;
import com.gitblit.utils.JGitUtils.SearchType;
import com.gitblit.wicket.WicketUtils;
import com.gitblit.wicket.panels.GravatarImage;
import com.gitblit.wicket.panels.LinkPanel;
import com.gitblit.wicket.panels.RefsPanel;
@@ -51,7 +51,7 @@
      // Failed to find tag!
      if (tagRef == null) {
         error(MessageFormat.format("Could not find tag {0}", objectId), true);
         error(MessageFormat.format(getString("gb.couldNotFindTag"), objectId), true);
      }
      // Display tag.
@@ -74,18 +74,20 @@
         break;
      }
      add(new LinkPanel("commit", "title", tagRef.displayName, linkClass, linkParameters));
      add(new GravatarImage("taggerAvatar", tagRef.getAuthorIdent()));
      add(new RefsPanel("tagName", repositoryName, Arrays.asList(tagRef)));
      add(new Label("tagId", tagRef.getObjectId().getName()));
      add(new LinkPanel("taggedObject", "list", tagRef.getReferencedObjectId().getName(),
            linkClass, linkParameters));
      add(new Label("taggedObjectType", getString(typeKey)));
      add(createPersonPanel("tagger", tagRef.getAuthorIdent(), SearchType.AUTHOR));
      add(createPersonPanel("tagger", tagRef.getAuthorIdent(), com.gitblit.Constants.SearchType.AUTHOR));
      Date when = new Date(0);
      if (tagRef.getAuthorIdent() != null) {
         when = tagRef.getAuthorIdent().getWhen();
      }
      add(WicketUtils.createTimestampLabel("tagDate", when, getTimeZone()));
      add(WicketUtils.createTimestampLabel("tagDate", when, getTimeZone(), getTimeUtils()));
      addFullText("fullMessage", tagRef.getFullMessage(), true);
   }