Browse Source

Fixed incorrecter tagger in dashboard pages (issue-276)

tags/v1.3.1
James Moger 10 years ago
parent
commit
9051a616c1
2 changed files with 11 additions and 10 deletions
  1. 2
    0
      releases.moxie
  2. 9
    10
      src/main/java/com/gitblit/wicket/panels/DigestsPanel.java

+ 2
- 0
releases.moxie View File

@@ -18,6 +18,7 @@ r18: {
- Reset dashboard and activity commit cache on branch REWIND or DELETE
- Fixed bug with adding new local users with external authentication
- Fixed missing clone url on the empty repository page
- Fixed incorrect tagger in the dashboard pages (issue-276)
changes:
- updated Chinese translation
- updated Dutch translation
@@ -37,6 +38,7 @@ r18: {
- Chad Horohoe
- Eduardo Guervós Narvaez
- Dongsu, KIM
- Gareth Collins
}

#

+ 9
- 10
src/main/java/com/gitblit/wicket/panels/DigestsPanel.java View File

@@ -28,6 +28,7 @@ import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.markup.repeater.Item;
import org.apache.wicket.markup.repeater.data.DataView;
import org.apache.wicket.markup.repeater.data.ListDataProvider;
import org.eclipse.jgit.lib.PersonIdent;
import com.gitblit.Constants;
import com.gitblit.GitBlit;
@@ -42,7 +43,6 @@ import com.gitblit.wicket.pages.ComparePage;
import com.gitblit.wicket.pages.SummaryPage;
import com.gitblit.wicket.pages.TagPage;
import com.gitblit.wicket.pages.TreePage;
import com.gitblit.wicket.pages.UserPage;
public class DigestsPanel extends BasePanel {
@@ -111,17 +111,16 @@ public class DigestsPanel extends BasePanel {
}
logItem.add(changeIcon);
if (!isTag) {
logItem.add(new Label("whoChanged").setVisible(false));
} else {
if (change.user.username.equals(change.user.emailAddress) && change.user.emailAddress.indexOf('@') > -1) {
// username is an email address can not link - 1.2.1 push log bug
logItem.add(new Label("whoChanged", change.user.getDisplayName()));
if (isTag) {
// tags are special
PersonIdent ident = change.getCommits().get(0).getAuthorIdent();
if (!StringUtils.isEmpty(ident.getName())) {
logItem.add(new Label("whoChanged", ident.getName()));
} else {
// link to user account page
logItem.add(new LinkPanel("whoChanged", null, change.user.getDisplayName(),
UserPage.class, WicketUtils.newUsernameParameter(change.user.username)));
logItem.add(new Label("whoChanged", ident.getEmailAddress()));
}
} else {
logItem.add(new Label("whoChanged").setVisible(false));
}
String preposition = "gb.of";

Loading…
Cancel
Save