Project

General

Profile

« Previous | Next » 

Revision 48932

View differences:

BrowseEventsController.java
38 38
        }
39 39
    }
40 40

  
41
    @Override
42
    public void drawHeader(String rest) {
41
//    @Override
42
//    public void drawHeader(String rest) {
43
//
44
//        RootPanel.get("pageHeader").addStyleName("row wrapper border-bottom white-bg page-heading");
45
//
46
//        if (rest == null) {
47
//            RepositoryManager.pageHeader.clear();
48
//            RepositoryManager.pageHeader.add(new HTML("<div class=\"col-sm-9\"><h2>Enrich Your Content - Browse Events</h2>" +
49
//                    "<ol class=\"breadcrumb\"><li><a href=\"#dashboard\">Home</a></li><li class=\"active\">" +
50
//                    "<strong>Enrich Content - Browse Events</strong></li></ol></div>"));
51
//        } else {
52
//            if(rest.contains("/")) {
53
//                String[] tokenSplit = rest.split("/", 2);
54
//                String dataSource = tokenSplit[0];
55
//                String topic = tokenSplit[1];
56
//                RepositoryManager.pageHeader.clear();
57
//                String header = "<div class=\"col-sm-9\"><h2>Events for " + topic + "</h2><ol class=\"breadcrumb\">" +
58
//                        "<li><a href=\"#dashboard\">Home</a></li><li><a href=\"#enrichContent/events\">Enrich Content - Browse Events</a></li>" +
59
//                        "<li><a href=\"#enrichContent/events/" + dataSource +"\">" + dataSource + "</a></li>" +
60
//                        "<li class=\"active\"><strong>" + topic + "</strong></li></ol></div>";
61
//                RepositoryManager.pageHeader.add(new HTML(header));
62
//            } else {
63
//                RepositoryManager.pageHeader.clear();
64
//                String header = "<div class=\"col-sm-9\"><h2>Topics for " + rest + "</h2><ol class=\"breadcrumb\">" +
65
//                        "<li><a href=\"#dashboard\">Home</a></li><li><a href=\"#enrichContent/events\">Enrich Content - Browse Events</a></li>" +
66
//                        "<li class=\"active\"><strong>" + rest + "</strong></li></ol></div>";
67
//                RepositoryManager.pageHeader.add(new HTML(header));
68
//            }
69
//        }
70
//    }
43 71

  
44
        RootPanel.get("pageHeader").addStyleName("row wrapper border-bottom white-bg page-heading");
45

  
46
        if (rest == null) {
47
            RepositoryManager.pageHeader.clear();
48
            RepositoryManager.pageHeader.add(new HTML("<div class=\"col-sm-9\"><h2>Enrich Your Content - Browse Events</h2>" +
49
                    "<ol class=\"breadcrumb\"><li><a href=\"#dashboard\">Home</a></li><li class=\"active\">" +
50
                    "<strong>Enrich Content - Browse Events</strong></li></ol></div>"));
51
        } else {
52
            if(rest.contains("/")) {
53
                String[] tokenSplit = rest.split("/", 2);
54
                String dataSource = tokenSplit[0];
55
                String topic = tokenSplit[1];
56
                RepositoryManager.pageHeader.clear();
57
                String header = "<div class=\"col-sm-9\"><h2>Events for " + topic + "</h2><ol class=\"breadcrumb\">" +
58
                        "<li><a href=\"#dashboard\">Home</a></li><li><a href=\"#enrichContent/events\">Enrich Content - Browse Events</a></li>" +
59
                        "<li><a href=\"#enrichContent/events/" + dataSource +"\">" + dataSource + "</a></li>" +
60
                        "<li class=\"active\"><strong>" + topic + "</strong></li></ol></div>";
61
                RepositoryManager.pageHeader.add(new HTML(header));
62
            } else {
63
                RepositoryManager.pageHeader.clear();
64
                String header = "<div class=\"col-sm-9\"><h2>Topics for " + rest + "</h2><ol class=\"breadcrumb\">" +
65
                        "<li><a href=\"#dashboard\">Home</a></li><li><a href=\"#enrichContent/events\">Enrich Content - Browse Events</a></li>" +
66
                        "<li class=\"active\"><strong>" + rest + "</strong></li></ol></div>";
67
                RepositoryManager.pageHeader.add(new HTML(header));
68
            }
69
        }
70
    }
71

  
72 72
    @Override
73 73
    public String[] getMenuPath(String parent, String rest) {
74 74
        return new String[] {"events"};

Also available in: Unified diff