model.description = getConfig(config, "description", "");
model.originRepository = getConfig(config, "originRepository", null);
model.addOwners(ArrayUtils.fromString(getConfig(config, "owner", "")));
- model.useTickets = getConfig(config, "useTickets", false);
model.useDocs = getConfig(config, "useDocs", false);
model.useIncrementalPushTags = getConfig(config, "useIncrementalPushTags", false);
model.incrementalPushTagPrefix = getConfig(config, "incrementalPushTagPrefix", null);
config.setString(Constants.CONFIG_GITBLIT, null, "description", repository.description);
config.setString(Constants.CONFIG_GITBLIT, null, "originRepository", repository.originRepository);
config.setString(Constants.CONFIG_GITBLIT, null, "owner", ArrayUtils.toString(repository.owners));
- config.setBoolean(Constants.CONFIG_GITBLIT, null, "useTickets", repository.useTickets);
config.setBoolean(Constants.CONFIG_GITBLIT, null, "useDocs", repository.useDocs);
config.setBoolean(Constants.CONFIG_GITBLIT, null, "useIncrementalPushTags", repository.useIncrementalPushTags);
if (StringUtils.isEmpty(repository.incrementalPushTagPrefix) ||
\r
private JTextField descriptionField;\r
\r
- private JCheckBox useTickets;\r
-\r
private JCheckBox useDocs;\r
\r
private JCheckBox useIncrementalPushTags;\r
\r
ownersPalette = new JPalette<String>(true);\r
\r
- useTickets = new JCheckBox(Translation.get("gb.useTicketsDescription"),\r
- anRepository.useTickets);\r
useDocs = new JCheckBox(Translation.get("gb.useDocsDescription"),\r
anRepository.useDocs);\r
useIncrementalPushTags = new JCheckBox(Translation.get("gb.useIncrementalPushTagsDescription"),\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.gcPeriod"), gcPeriod));\r
fieldsPanel.add(newFieldPanel(Translation.get("gb.gcThreshold"), gcThreshold));\r
\r
- fieldsPanel.add(newFieldPanel(Translation.get("gb.enableTickets"),\r
- useTickets));\r
fieldsPanel\r
.add(newFieldPanel(Translation.get("gb.enableDocs"), useDocs));\r
fieldsPanel\r
: headRefField.getSelectedItem().toString();\r
repository.gcPeriod = (Integer) gcPeriod.getSelectedItem();\r
repository.gcThreshold = gcThreshold.getText();\r
- repository.useTickets = useTickets.isSelected();\r
repository.useDocs = useDocs.isSelected();\r
repository.useIncrementalPushTags = useIncrementalPushTags.isSelected();\r
repository.showRemoteBranches = showRemoteBranches.isSelected();\r
\r
private final ImageIcon viewIcon;\r
\r
- private final ImageIcon tixIcon;\r
-\r
private final ImageIcon doxIcon;\r
\r
private final ImageIcon frozenIcon;\r
pushIcon = new ImageIcon(getClass().getResource("/lock_go_16x16.png"));\r
pullIcon = new ImageIcon(getClass().getResource("/lock_pull_16x16.png"));\r
viewIcon = new ImageIcon(getClass().getResource("/shield_16x16.png"));\r
- tixIcon = new ImageIcon(getClass().getResource("/bug_16x16.png"));\r
doxIcon = new ImageIcon(getClass().getResource("/book_16x16.png"));\r
frozenIcon = new ImageIcon(getClass().getResource("/cold_16x16.png"));\r
federatedIcon = new ImageIcon(getClass().getResource("/federated_16x16.png"));\r
tooltip.append(Translation.get("gb.isFork")).append("<br/>");\r
add(icon);\r
}\r
- if (model.useTickets) {\r
- JLabel icon = new JLabel(tixIcon);\r
- tooltip.append(Translation.get("gb.tickets")).append("<br/>");\r
- add(icon);\r
- }\r
if (model.useDocs) {\r
JLabel icon = new JLabel(doxIcon);\r
tooltip.append(Translation.get("gb.docs")).append("<br/>");\r
public String lastChangeAuthor;\r
public boolean hasCommits;\r
public boolean showRemoteBranches;\r
- public boolean useTickets;\r
public boolean useDocs;\r
public boolean useIncrementalPushTags;\r
public String incrementalPushTagPrefix;\r
clone.showRemoteBranches = false;\r
clone.allowForks = false;\r
clone.useDocs = useDocs;\r
- clone.useTickets = useTickets;\r
clone.skipSizeCalculation = skipSizeCalculation;\r
clone.skipSummaryMetrics = skipSummaryMetrics;\r
clone.sparkleshareId = sparkleshareId;\r
<tr><th><wicket:message key="gb.gcPeriod"></wicket:message></th><td class="edit"><select class="span2" wicket:id="gcPeriod" tabindex="5" /> <span class="help-inline"><wicket:message key="gb.gcPeriodDescription"></wicket:message></span></td></tr>\r
<tr><th><wicket:message key="gb.gcThreshold"></wicket:message></th><td class="edit"><input class="span1" type="text" wicket:id="gcThreshold" tabindex="6" /> <span class="help-inline"><wicket:message key="gb.gcThresholdDescription"></wicket:message></span></td></tr>\r
<tr><th colspan="2"><hr/></th></tr>\r
- <tr><th><wicket:message key="gb.enableTickets"></wicket:message></th><td class="edit"><label class="checkbox"><input type="checkbox" wicket:id="useTickets" tabindex="7" /> <span class="help-inline"><wicket:message key="gb.useTicketsDescription"></wicket:message></span></label></td></tr>\r
<tr><th><wicket:message key="gb.enableDocs"></wicket:message></th><td class="edit"><label class="checkbox"><input type="checkbox" wicket:id="useDocs" tabindex="8" /> <span class="help-inline"><wicket:message key="gb.useDocsDescription"></wicket:message></span></label></td></tr>\r
<tr><th><wicket:message key="gb.enableIncrementalPushTags"></wicket:message></th><td class="edit"><label class="checkbox"><input type="checkbox" wicket:id="useIncrementalPushTags" tabindex="8" /> <span class="help-inline"><wicket:message key="gb.useIncrementalPushTagsDescription"></wicket:message></span></label></td></tr>\r
<tr><th><wicket:message key="gb.showRemoteBranches"></wicket:message></th><td class="edit"><label class="checkbox"><input type="checkbox" wicket:id="showRemoteBranches" tabindex="9" /> <span class="help-inline"><wicket:message key="gb.showRemoteBranchesDescription"></wicket:message></span></label></td></tr>\r
}\r
form.add(new DropDownChoice<FederationStrategy>("federationStrategy", federationStrategies,\r
new FederationTypeRenderer()));\r
- form.add(new CheckBox("useTickets"));\r
form.add(new CheckBox("useDocs"));\r
form.add(new CheckBox("useIncrementalPushTags"));\r
form.add(new CheckBox("showRemoteBranches"));\r
<td class="left" style="padding-left:3px;" ><b><span class="repositorySwatch" wicket:id="repositorySwatch"></span></b> <span style="padding-left:3px;" wicket:id="repositoryName">[repository name]</span></td>\r
<td class="hidden-phone"><span class="list" wicket:id="repositoryDescription">[repository description]</span></td>\r
<td class="hidden-tablet hidden-phone author"><span wicket:id="repositoryOwner">[repository owner]</span></td>\r
- <td class="hidden-phone" style="text-align: right;padding-right:10px;"><img class="inlineIcon" wicket:id="sparkleshareIcon" /><img class="inlineIcon" wicket:id="forkIcon" /><img class="inlineIcon" wicket:id="ticketsIcon" /><img class="inlineIcon" wicket:id="docsIcon" /><img class="inlineIcon" wicket:id="frozenIcon" /><img class="inlineIcon" wicket:id="federatedIcon" /><img class="inlineIcon" wicket:id="accessRestrictionIcon" /></td>\r
+ <td class="hidden-phone" style="text-align: right;padding-right:10px;"><img class="inlineIcon" wicket:id="sparkleshareIcon" /><img class="inlineIcon" wicket:id="forkIcon" /><img class="inlineIcon" wicket:id="docsIcon" /><img class="inlineIcon" wicket:id="frozenIcon" /><img class="inlineIcon" wicket:id="federatedIcon" /><img class="inlineIcon" wicket:id="accessRestrictionIcon" /></td>\r
<td><span wicket:id="repositoryLastChange">[last change]</span></td>\r
<td class="hidden-phone" style="text-align: right;padding-right:15px;"><span style="font-size:0.8em;" wicket:id="repositorySize">[repository size]</span></td>\r
<td class="rightAlign">\r
row.add(WicketUtils.newClearPixel("forkIcon").setVisible(false));\r
}\r
\r
- if (entry.useTickets) {\r
- row.add(WicketUtils.newImage("ticketsIcon", "bug_16x16.png",\r
- getString("gb.tickets")));\r
- } else {\r
- row.add(WicketUtils.newBlankImage("ticketsIcon"));\r
- }\r
-\r
if (entry.useDocs) {\r
row.add(WicketUtils\r
.newImage("docsIcon", "book_16x16.png", getString("gb.docs")));\r
cloneOrFetch("test/ambition.git", "https://github.com/defunkt/ambition.git");\r
cloneOrFetch("test/gitective.git", "https://github.com/kevinsawicki/gitective.git");\r
\r
- enableTickets("ticgit.git");\r
enableDocs("ticgit.git");\r
showRemoteBranches("ticgit.git");\r
automaticallyTagBranchTips("ticgit.git");\r
System.out.println("done.");\r
}\r
\r
- private static void enableTickets(String repositoryName) {\r
- try {\r
- RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);\r
- model.useTickets = true;\r
- GitBlit.self().updateRepositoryModel(model.name, model, false);\r
- } catch (GitBlitException g) {\r
- g.printStackTrace();\r
- }\r
- }\r
-\r
private static void enableDocs(String repositoryName) {\r
try {\r
RepositoryModel model = GitBlit.self().getRepositoryModel(repositoryName);\r