- Overhaul the EmptyRepositoryPage (ticket-73)
- Overhauled the edit repository page (ticket-76)
- Process bugtraq links in the ticket description and comments (ticket-78)
+ - Exclude personal repositories from the repositories list, by default (issue-419, ticket-95)
additions:
- Add My Tickets page (issue-215, ticket-15)
- Added CRUD functionality for Ticket Milestones (ticket-17)
- Marcus Hunger
- Matthias Cullmann
- Emmeran Seehuber
+ - Sascha Vogt
settings:
- { name: 'web.allowDeletingNonEmptyRepositories', defaultValue: 'true' }
+ - { name: 'web.includePersonalRepositories', defaultValue: 'false' }
- { name: 'mail.starttls', defaultValue: 'false' }
- { name: 'execution.defaultThreadPoolSize', defaultValue: '1' }
- { name: 'git.gitignoreFolder', defaultValue: '${baseFolder}/gitignore' }
import java.io.InputStreamReader;\r
import java.text.MessageFormat;\r
import java.util.ArrayList;\r
+import java.util.Iterator;\r
import java.util.List;\r
\r
import org.apache.wicket.Component;\r
\r
import com.gitblit.Keys;\r
import com.gitblit.models.Menu.ParameterMenuItem;\r
-import com.gitblit.models.NavLink.DropDownPageMenuNavLink;\r
import com.gitblit.models.NavLink;\r
+import com.gitblit.models.NavLink.DropDownPageMenuNavLink;\r
import com.gitblit.models.RepositoryModel;\r
import com.gitblit.utils.MarkdownUtils;\r
import com.gitblit.utils.StringUtils;\r
.setEscapeModelStrings(false).setVisible(message.length() > 0);\r
add(repositoriesMessage);\r
\r
+ // conditionally include personal repositories in this page\r
List<RepositoryModel> repositories = getRepositories(params);\r
+ if (!app().settings().getBoolean(Keys.web.includePersonalRepositories, true)) {\r
+ Iterator<RepositoryModel> itr = repositories.iterator();\r
+ while (itr.hasNext()) {\r
+ RepositoryModel rm = itr.next();\r
+ if (rm.isPersonalRepository()) {\r
+ itr.remove();\r
+ }\r
+ }\r
+ }\r
\r
RepositoriesPanel repositoriesPanel = new RepositoriesPanel("repositoriesPanel", showAdmin,\r
true, repositories, true, getAccessRestrictions());\r