| | |
| | | package com.gitblit.wicket.pages;
|
| | |
|
| | | import java.io.Serializable;
|
| | | import java.text.DateFormat;
|
| | | import java.text.MessageFormat;
|
| | | import java.text.SimpleDateFormat;
|
| | | import java.util.ArrayList;
|
| | | import java.util.Calendar;
|
| | | import java.util.Collection;
|
| | |
| | | import com.gitblit.wicket.charting.GoogleChart;
|
| | | import com.gitblit.wicket.charting.GoogleCharts;
|
| | | import com.gitblit.wicket.charting.GooglePieChart;
|
| | | import com.gitblit.wicket.ng.NgController;
|
| | | import com.gitblit.wicket.panels.DigestsPanel;
|
| | | import com.gitblit.wicket.panels.LinkPanel;
|
| | |
|
| | |
| | | // create daily commit digest feed
|
| | | List<DailyLogEntry> digests = new ArrayList<DailyLogEntry>();
|
| | | for (RepositoryModel model : repositories) {
|
| | | if (model.isCollectingGarbage) {
|
| | | continue;
|
| | | }
|
| | | if (model.hasCommits && model.lastChange.after(minimumDate)) {
|
| | | Repository repository = GitBlit.self().getRepository(model.name);
|
| | | List<DailyLogEntry> entries = RefLogUtils.getDailyLogByRef(model.name, repository, minimumDate, timezone);
|
| | | digests.addAll(entries);
|
| | | repository.close();
|
| | | }
|
| | | }
|
| | |
|
| | | Fragment activityFragment = new Fragment("activity", "activityFragment", this);
|
| | | add(activityFragment);
|