| | |
| | | /**
|
| | | * Activity Page shows a list of recent commits across all visible Gitblit
|
| | | * repositories.
|
| | | * |
| | | *
|
| | | * @author James Moger
|
| | | * |
| | | *
|
| | | */
|
| | |
|
| | | @CacheControl(LastModified.ACTIVITY)
|
| | |
| | |
|
| | | // determine repositories to view and retrieve the activity
|
| | | List<RepositoryModel> models = getRepositories(params);
|
| | | List<Activity> recentActivity = ActivityUtils.getRecentActivity(models, |
| | | List<Activity> recentActivity = ActivityUtils.getRecentActivity(models,
|
| | | daysBack, objectId, getTimeZone());
|
| | |
|
| | | String headerPattern;
|
| | |
| | | headerPattern = getString("gb.recentActivityStats");
|
| | | }
|
| | | }
|
| | | |
| | |
|
| | | if (recentActivity.size() == 0) {
|
| | | // no activity, skip graphs and activity panel
|
| | | add(new Label("subheader", MessageFormat.format(headerPattern,
|
| | |
| | | /**
|
| | | * Creates the daily activity line chart, the active repositories pie chart,
|
| | | * and the active authors pie chart
|
| | | * |
| | | *
|
| | | * @param recentActivity
|
| | | * @return
|
| | | */
|