You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- json.array! @branches do |branch|
- json.name branch['name']
- json.user_can_push branch['user_can_push']
- json.user_can_merge branch['user_can_merge']
- json.protected branch['protected']
- json.http_url render_http_url(@project)
- json.zip_url render_zip_url(@project, branch['name'])
- json.tar_url render_tar_url(@project, branch['name'])
- json.last_commit do
- json.sha branch['commit']['id']
- json.message branch['commit']['message']
- json.timestamp render_unix_time(branch['commit']['timestamp'])
- json.time_from_now time_from_now(branch['commit']['timestamp'])
- json.author branch['commit']['author']
- json.committer branch['commit']['committer']
- end
- end
|