Esempio n. 1
0
  static Breadcrumb generateBreadcrumb(final Member member) {
    final Breadcrumb breadcrumb;

    if (member != null) {
      breadcrumb = MemberPage.generateBreadcrumb(member);
    } else {
      breadcrumb = IndexPage.generateBreadcrumb();
    }

    final ActivityPageUrl activityPageUrl = new ActivityPageUrl();
    if (member != null) {
      activityPageUrl.setMember(member);
    }
    breadcrumb.pushLink(activityPageUrl.getHtmlLink(tr("Activity")));

    return breadcrumb;
  }
Esempio n. 2
0
 private static Breadcrumb generateBreadcrumb() {
   final Breadcrumb breadcrumb = FeatureListPage.generateBreadcrumb();
   breadcrumb.pushLink(new CreateFeaturePageUrl().getHtmlLink(tr("Create a feature")));
   return breadcrumb;
 }