Indicate WORKING COPY on repository pages (issue-49)
| | |
| | |
|
| | | - On the Repositories page show a bang *!* character in the color swatch of a repository with a working copy (issue 49)
|
| | | Push requests to these repositories will be rejected.
|
| | | - On all non-bare Repository pages show *WORKING COPY* in the upper right corner (issue 49)
|
| | | - New setting to prevent display/serving non-bare repositories
|
| | | **New:** *git.onlyAccessBareRepositories = false*
|
| | | - Allow relinking HEAD to a branch or a tag (Github/plm)
|
| | |
| | | gb.federationRepositoryDescription = share this repository with other Gitblit servers
|
| | | gb.hookScriptsDescription = run Groovy scripts on pushes to this Gitblit server
|
| | | gb.reset = reset
|
| | | gb.pages = pages |
| | | gb.pages = pages
|
| | | gb.workingCopy = WORKING COPY
|
| | | gb.workingCopyWarning = this repository has a working copy and can not receive pushes |
| | |
| | |
|
| | | <!-- page header -->
|
| | | <div class="page-header">
|
| | | <div style="float:right;padding-top:5px;">
|
| | | <span class="label important" wicket:id="workingCopy">[working copy]</span>
|
| | | </div>
|
| | | <h2><span wicket:id="repositoryName">[repository name]</span> <small><span wicket:id="pageName">[page name]</span></small></h2>
|
| | | </div>
|
| | |
|
| | |
| | | add(new LinkPanel("repositoryName", null, StringUtils.stripDotGit(repositoryName),
|
| | | SummaryPage.class, WicketUtils.newRepositoryParameter(repositoryName)));
|
| | | add(new Label("pageName", pageName));
|
| | | if (getRepositoryModel().isBare) {
|
| | | add(new Label("workingCopy").setVisible(false));
|
| | | } else {
|
| | | Label lbl = new Label("workingCopy", getString("gb.workingCopy"));
|
| | | WicketUtils.setHtmlTooltip(lbl, getString("gb.workingCopyWarning"));
|
| | | add(lbl);
|
| | | }
|
| | |
|
| | | super.setupPage(repositoryName, pageName);
|
| | | }
|
| | |
| | | swatch = new Label("repositorySwatch", " ").setEscapeModelStrings(false);
|
| | | } else {
|
| | | swatch = new Label("repositorySwatch", "!");
|
| | | WicketUtils.setHtmlTooltip(swatch, "This repository has a working copy and can not receive pushes");
|
| | | WicketUtils.setHtmlTooltip(swatch, getString("gb.workingCopyWarning"));
|
| | | }
|
| | | WicketUtils.setCssBackground(swatch, entry.toString());
|
| | | row.add(swatch);
|