Snippets - fixed after bootstrap
Project - restyled show page, removed info page Repository - restyled show page, added download option Tags - added download options
This commit is contained in:
parent
3d77183c16
commit
4d89322d67
37 changed files with 298 additions and 333 deletions
|
@ -233,6 +233,10 @@ class Project < ActiveRecord::Base
|
|||
!users_projects.where(:user_id => user.id, :project_access => [PROJECT_RWA]).empty? || owner_id == user.id
|
||||
end
|
||||
|
||||
def allow_pull_for?(user)
|
||||
!users_projects.where(:user_id => user.id, :repo_access => [Repository::REPO_R, Repository::REPO_RW]).empty?
|
||||
end
|
||||
|
||||
def root_ref
|
||||
default_branch || "master"
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue