font-style: italic !important; \r
}\r
\r
-span.sha1, span.sha1 a, span.sha1 a span {\r
+span.sha1, span.sha1 a, span.sha1 a span, pre.commit_message {\r
font-family: monospace;\r
font-size: 13px;\r
}\r
\r
import com.gitblit.models.Metric;\r
import com.gitblit.utils.MetricUtils;\r
+import com.gitblit.utils.StringUtils;\r
import com.gitblit.utils.TimeUtils;\r
import com.gitblit.wicket.WicketUtils;\r
\r
public MetricsPage(PageParameters params) {\r
super(params);\r
Repository r = getRepository();\r
- add(new Label("branchTitle", objectId));\r
+ if (StringUtils.isEmpty(objectId)) {\r
+ add(new Label("branchTitle", getRepositoryModel().HEAD));\r
+ } else {\r
+ add(new Label("branchTitle", objectId));\r
+ }\r
Metric metricsTotal = null;\r
List<Metric> metrics = MetricUtils.getDateMetrics(r, objectId, true, null);\r
metricsTotal = metrics.remove(0);\r