]> source.dussan.org Git - gitblit.git/commitdiff
Show tagger gravatar on tag page
authorJames Moger <james.moger@gitblit.com>
Sat, 7 Jan 2012 21:39:12 +0000 (16:39 -0500)
committerJames Moger <james.moger@gitblit.com>
Sat, 7 Jan 2012 21:39:12 +0000 (16:39 -0500)
src/com/gitblit/wicket/pages/TagPage.html
src/com/gitblit/wicket/pages/TagPage.java

index f1a42c1abd86882a0e27e4c7dac379c4b4c5deaf..5e89793697e277811fb98707684df7918da8d6da 100644 (file)
@@ -10,6 +10,9 @@
        <!-- summary header -->\r
        <div style="margin-top: 5px;" class="header" wicket:id="commit">[shortlog header]</div>\r
        \r
+       <!-- Tagger Gravatar -->\r
+       <span style="float:right;vertical-align: top;" wicket:id="taggerAvatar" />\r
+       \r
        <!-- commit info -->\r
        <table class="plain">\r
                <tr><th><wicket:message key="gb.name">[name]</wicket:message></th><td><span class="tagRef" wicket:id="tagName">[tag name]</span></td></tr>\r
index b1ab071489eb10d1adc0626afca3b7b4113421d9..acdd77f381576fefa0a41c5f03b55230eb3c05df 100644 (file)
@@ -28,6 +28,7 @@ import org.eclipse.jgit.lib.Repository;
 import com.gitblit.models.RefModel;\r
 import com.gitblit.utils.JGitUtils;\r
 import com.gitblit.wicket.WicketUtils;\r
+import com.gitblit.wicket.panels.GravatarImage;\r
 import com.gitblit.wicket.panels.LinkPanel;\r
 import com.gitblit.wicket.panels.RefsPanel;\r
 \r
@@ -73,6 +74,8 @@ public class TagPage extends RepositoryPage {
                        break;\r
                }\r
                add(new LinkPanel("commit", "title", tagRef.displayName, linkClass, linkParameters));\r
+               add(new GravatarImage("taggerAvatar", tagRef.getAuthorIdent()));\r
+               \r
                add(new RefsPanel("tagName", repositoryName, Arrays.asList(tagRef)));\r
                add(new Label("tagId", tagRef.getObjectId().getName()));\r
                add(new LinkPanel("taggedObject", "list", tagRef.getReferencedObjectId().getName(),\r