Fixes for responsive layouts on phones and tablets
| | |
| | | public final String translationKey;
|
| | | public final Class<? extends WebPage> pageClass;
|
| | | public final PageParameters params;
|
| | | public final boolean hiddenPhone;
|
| | |
|
| | | public PageRegistration(String translationKey, Class<? extends WebPage> pageClass) {
|
| | | this(translationKey, pageClass, null);
|
| | |
| | |
|
| | | public PageRegistration(String translationKey, Class<? extends WebPage> pageClass,
|
| | | PageParameters params) {
|
| | | this(translationKey, pageClass, params, false);
|
| | | }
|
| | | |
| | | public PageRegistration(String translationKey, Class<? extends WebPage> pageClass,
|
| | | PageParameters params, boolean hiddenPhone) {
|
| | | this.translationKey = translationKey;
|
| | | this.pageClass = pageClass;
|
| | | this.params = params;
|
| | | this.hiddenPhone = hiddenPhone;
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | super(translationKey, null);
|
| | | this.url = url;
|
| | | }
|
| | | |
| | | public OtherPageLink(String translationKey, String url, boolean hiddenPhone) {
|
| | | super(translationKey, null, null, hiddenPhone);
|
| | | this.url = url;
|
| | | }
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | | <body>
|
| | | <wicket:extend>
|
| | | <div class="container">
|
| | | <div class="markdown" style="padding-bottom:5px;" wicket:id="repositoriesMessage">[repositories message]</div>
|
| | | <div class="hidden-phone markdown" style="padding-bottom:5px;" wicket:id="repositoriesMessage">[repositories message]</div>
|
| | |
|
| | | <div class="row">
|
| | | <div class="span7">
|
| | |
| | | <wicket:fragment wicket:id="ownedListFragment">
|
| | | <div ng-controller="ownedCtrl" style="border: 1px solid #ddd;border-radius: 4px;">
|
| | | <div class="header" style="padding: 5px;border: none;"><i class="icon-user"></i> <wicket:message key="gb.myRepositories"></wicket:message> ({{owned.length}})
|
| | | <div class="pull-right">
|
| | | <div class="hidden-phone pull-right">
|
| | | <span wicket:id="create"></span>
|
| | | </div>
|
| | | <div style="padding: 5px 0px 0px;">
|
| | |
| | | }
|
| | | pages.put("commits", new PageRegistration("gb.commits", LogPage.class, params));
|
| | | pages.put("tree", new PageRegistration("gb.tree", TreePage.class, params));
|
| | | pages.put("compare", new PageRegistration("gb.compare", ComparePage.class, params));
|
| | | pages.put("compare", new PageRegistration("gb.compare", ComparePage.class, params, true));
|
| | | if (GitBlit.getBoolean(Keys.web.allowForking, true)) {
|
| | | pages.put("forks", new PageRegistration("gb.forks", ForksPage.class, params));
|
| | | pages.put("forks", new PageRegistration("gb.forks", ForksPage.class, params, true));
|
| | | }
|
| | |
|
| | | // conditional links
|
| | | // per-repository extra page links
|
| | | if (model.useTickets && TicgitUtils.getTicketsBranch(r) != null) {
|
| | | pages.put("tickets", new PageRegistration("gb.tickets", TicketsPage.class, params));
|
| | | pages.put("tickets", new PageRegistration("gb.tickets", TicketsPage.class, params, true));
|
| | | }
|
| | | if (model.showReadme || model.useDocs) {
|
| | | pages.put("docs", new PageRegistration("gb.docs", DocsPage.class, params));
|
| | | pages.put("docs", new PageRegistration("gb.docs", DocsPage.class, params, true));
|
| | | }
|
| | | if (JGitUtils.getPagesBranch(r) != null) {
|
| | | OtherPageLink pagesLink = new OtherPageLink("gb.pages", PagesServlet.asLink(
|
| | | getRequest().getRelativePathPrefixToContextRoot(), repositoryName, null));
|
| | | getRequest().getRelativePathPrefixToContextRoot(), repositoryName, null), true);
|
| | | pages.put("pages", pagesLink);
|
| | | }
|
| | |
|
| | |
| | | <img src="gitblt_25_white.png" width="79" height="25" alt="gitblit" class="logo"/>
|
| | | </a>
|
| | |
|
| | | <div class="nav-collapse" wicket:id="navPanel"></div>
|
| | | |
| | | <ul class="nav pull-right">
|
| | | <span wicket:id="userPanel"></span>
|
| | | </ul>
|
| | | <div class="nav-collapse">
|
| | | <div wicket:id="navPanel"></div>
|
| | | <ul class="nav pull-right">
|
| | | <span wicket:id="userPanel"></span>
|
| | | </ul>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | | </div>
|
| | |
| | |
|
| | | public void populateItem(final Item<PageRegistration> item) {
|
| | | PageRegistration entry = item.getModelObject();
|
| | | if (entry.hiddenPhone) {
|
| | | WicketUtils.setCssClass(item, "hidden-phone");
|
| | | }
|
| | | if (entry instanceof OtherPageLink) {
|
| | | // other link
|
| | | OtherPageLink link = (OtherPageLink) entry;
|
| | |
| | | </td>
|
| | | </tr>
|
| | | <tr>
|
| | | <td></td>
|
| | | <td class="hidden-phone"></td>
|
| | | <td style="padding-left: 7px;">
|
| | | <div>
|
| | | <table>
|