Add units to team (#947)

* add units to team

* fix lint

* finish team setting backend

* finished permission controll on routes

* fix import blank line

* add unit check on ssh/http pull and push and fix test failed

* fix fixtures data

* remove unused code
This commit is contained in:
Lunny Xiao 2017-05-18 22:54:24 +08:00 committed by GitHub
parent 5db5e16ab6
commit fd6034aaf2
18 changed files with 366 additions and 113 deletions

View file

@ -505,6 +505,7 @@ push_exist_repo = Pushing an existing repository from the command line
bare_message = This repository does not contain any content.
code = Code
code.desc = Code is your program source
branch = Branch
tree = Tree
filter_branch_and_tag = Filter branch or tag
@ -565,6 +566,7 @@ editor.unable_to_upload_files = Failed to upload files to '%s' with error: %v
editor.upload_files_to_dir = Upload files to '%s'
editor.cannot_commit_to_protected_branch = Can not commit to protected branch '%s'.
commits.desc = Commits show the history submited
commits.commits = Commits
commits.search = Search commits
commits.find = Search
@ -575,6 +577,10 @@ commits.date = Date
commits.older = Older
commits.newer = Newer
ext_issues = Ext Issues
ext_issues.desc = Ext Issues link to an external issues management
issues.desc = Issues management your tasks for this repository
issues.new = New Issue
issues.new.labels = Labels
issues.new.no_label = No Label
@ -678,6 +684,7 @@ issues.attachment.download = `Click to download "%s"`
issues.subscribe = Subscribe
issues.unsubscribe = Unsubscribe
pulls.desc = Pulls management your code review and merge requests
pulls.new = New Pull Request
pulls.compare_changes = Compare Changes
pulls.compare_changes_desc = Compare two branches and make a pull request for changes.
@ -734,9 +741,13 @@ milestones.filter_sort.most_complete = Most complete
milestones.filter_sort.most_issues = Most issues
milestones.filter_sort.least_issues = Least issues
ext_wiki = Ext Wiki
ext_wiki.desc = Ext Wiki links to an external wiki system
wiki = Wiki
wiki.welcome = Welcome to the project wiki
wiki.welcome_desc = A wiki allows you and your collaborators to easily document your project.
wiki.desc = Wiki is a collection of your documents
wiki.create_first_page = Create the first page
wiki.page = Page
wiki.filter_page = Filter page
@ -753,6 +764,7 @@ wiki.pages = Pages
wiki.last_updated = Last updated %s
settings = Settings
settings.desc = Settings management your settings for repository
settings.options = Options
settings.collaboration = Collaboration
settings.collaboration.admin = Admin
@ -910,6 +922,7 @@ diff.view_file = View File
diff.file_suppressed = File diff suppressed because it is too large
diff.too_many_files = Some files were not shown because too many files changed in this diff
releases.desc = Releases manage your milestone versions
release.releases = Releases
release.new_release = New Release
release.draft = Draft
@ -968,6 +981,7 @@ team_desc = Description
team_name_helper = You will use this name to mention this team in conversations.
team_desc_helper = What is this team for?
team_permission_desc = What permissions should this team have?
team_unit_desc = Which units should this team have?
form.name_reserved = Organization name '%s' is reserved.
form.name_pattern_not_allowed = Organization name pattern '%s' is not allowed.
@ -1406,3 +1420,7 @@ error.no_committer_account = No account linked to committer's email
error.no_gpg_keys_found = "No known key found for this signature in database"
error.not_signed_commit = "Not a signed commit"
error.failed_retrieval_gpg_keys = "Failed to retrieve any key attached to the committer account"
[units]
error.no_unit_allowed_repo = Cannot find any unit allowed on this repository
error.unit_not_allowed = You have not allowed to visit this repository unit