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:
Dmitriy Zaporozhets 2012-02-08 01:00:49 +02:00
parent 3d77183c16
commit 4d89322d67
37 changed files with 298 additions and 333 deletions

View file

@ -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