Commit bae4efa7cf1ebedc0f74627da599a4cd5e93fd7f

Authored by Dmitriy Zaporozhets
2 parents 46906ca9 671424a8

Merge branch 'master' of dev.gitlabhq.com:gitlabhq

app/assets/stylesheets/common.scss
@@ -1147,3 +1147,7 @@ li.note { @@ -1147,3 +1147,7 @@ li.note {
1147 max-width:100%; 1147 max-width:100%;
1148 } 1148 }
1149 } 1149 }
  1150 +
  1151 +.wiki_content code, .readme code{
  1152 + background-color: inherit;
  1153 +}
app/views/wikis/show.html.haml
@@ -7,8 +7,8 @@ @@ -7,8 +7,8 @@
7 = link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do 7 = link_to edit_project_wiki_path(@project, @wiki), :class => "btn small" do
8 Edit 8 Edit
9 %hr 9 %hr
10 -  
11 -= markdown_to_html @wiki.content 10 +.wiki_content
  11 + = markdown_to_html @wiki.content
12 12
13 %p.time Last edited by #{@wiki.user.name}, in #{time_ago_in_words @wiki.created_at} 13 %p.time Last edited by #{@wiki.user.name}, in #{time_ago_in_words @wiki.created_at}
14 - if can? current_user, :admin_wiki, @project 14 - if can? current_user, :admin_wiki, @project
@@ -30,8 +30,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -30,8 +30,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
30 t.integer "assignee_id" 30 t.integer "assignee_id"
31 t.integer "author_id" 31 t.integer "author_id"
32 t.integer "project_id" 32 t.integer "project_id"
33 - t.datetime "created_at", :null => false  
34 - t.datetime "updated_at", :null => false 33 + t.datetime "created_at"
  34 + t.datetime "updated_at"
35 t.boolean "closed", :default => false, :null => false 35 t.boolean "closed", :default => false, :null => false
36 t.integer "position", :default => 0 36 t.integer "position", :default => 0
37 t.boolean "critical", :default => false, :null => false 37 t.boolean "critical", :default => false, :null => false
@@ -43,8 +43,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -43,8 +43,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
43 43
44 create_table "keys", :force => true do |t| 44 create_table "keys", :force => true do |t|
45 t.integer "user_id" 45 t.integer "user_id"
46 - t.datetime "created_at", :null => false  
47 - t.datetime "updated_at", :null => false 46 + t.datetime "created_at"
  47 + t.datetime "updated_at"
48 t.text "key" 48 t.text "key"
49 t.string "title" 49 t.string "title"
50 t.string "identifier" 50 t.string "identifier"
@@ -59,8 +59,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -59,8 +59,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
59 t.integer "assignee_id" 59 t.integer "assignee_id"
60 t.string "title" 60 t.string "title"
61 t.boolean "closed", :default => false, :null => false 61 t.boolean "closed", :default => false, :null => false
62 - t.datetime "created_at", :null => false  
63 - t.datetime "updated_at", :null => false 62 + t.datetime "created_at"
  63 + t.datetime "updated_at"
64 t.text "st_commits" 64 t.text "st_commits"
65 t.text "st_diffs" 65 t.text "st_diffs"
66 t.boolean "merged", :default => false, :null => false 66 t.boolean "merged", :default => false, :null => false
@@ -73,8 +73,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -73,8 +73,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
73 t.string "noteable_id" 73 t.string "noteable_id"
74 t.string "noteable_type" 74 t.string "noteable_type"
75 t.integer "author_id" 75 t.integer "author_id"
76 - t.datetime "created_at", :null => false  
77 - t.datetime "updated_at", :null => false 76 + t.datetime "created_at"
  77 + t.datetime "updated_at"
78 t.integer "project_id" 78 t.integer "project_id"
79 t.string "attachment" 79 t.string "attachment"
80 t.string "line_code" 80 t.string "line_code"
@@ -87,8 +87,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -87,8 +87,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
87 t.string "name" 87 t.string "name"
88 t.string "path" 88 t.string "path"
89 t.text "description" 89 t.text "description"
90 - t.datetime "created_at", :null => false  
91 - t.datetime "updated_at", :null => false 90 + t.datetime "created_at"
  91 + t.datetime "updated_at"
92 t.boolean "private_flag", :default => true, :null => false 92 t.boolean "private_flag", :default => true, :null => false
93 t.string "code" 93 t.string "code"
94 t.integer "owner_id" 94 t.integer "owner_id"
@@ -111,8 +111,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -111,8 +111,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
111 t.text "content" 111 t.text "content"
112 t.integer "author_id", :null => false 112 t.integer "author_id", :null => false
113 t.integer "project_id", :null => false 113 t.integer "project_id", :null => false
114 - t.datetime "created_at", :null => false  
115 - t.datetime "updated_at", :null => false 114 + t.datetime "created_at"
  115 + t.datetime "updated_at"
116 t.string "file_name" 116 t.string "file_name"
117 t.datetime "expires_at" 117 t.datetime "expires_at"
118 end 118 end
@@ -145,8 +145,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -145,8 +145,8 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
145 t.datetime "last_sign_in_at" 145 t.datetime "last_sign_in_at"
146 t.string "current_sign_in_ip" 146 t.string "current_sign_in_ip"
147 t.string "last_sign_in_ip" 147 t.string "last_sign_in_ip"
148 - t.datetime "created_at", :null => false  
149 - t.datetime "updated_at", :null => false 148 + t.datetime "created_at"
  149 + t.datetime "updated_at"
150 t.string "name" 150 t.string "name"
151 t.boolean "admin", :default => false, :null => false 151 t.boolean "admin", :default => false, :null => false
152 t.integer "projects_limit", :default => 10 152 t.integer "projects_limit", :default => 10
@@ -165,16 +165,16 @@ ActiveRecord::Schema.define(:version => 20120323221339) do @@ -165,16 +165,16 @@ ActiveRecord::Schema.define(:version => 20120323221339) do
165 create_table "users_projects", :force => true do |t| 165 create_table "users_projects", :force => true do |t|
166 t.integer "user_id", :null => false 166 t.integer "user_id", :null => false
167 t.integer "project_id", :null => false 167 t.integer "project_id", :null => false
168 - t.datetime "created_at", :null => false  
169 - t.datetime "updated_at", :null => false 168 + t.datetime "created_at"
  169 + t.datetime "updated_at"
170 t.integer "project_access", :default => 0, :null => false 170 t.integer "project_access", :default => 0, :null => false
171 end 171 end
172 172
173 create_table "web_hooks", :force => true do |t| 173 create_table "web_hooks", :force => true do |t|
174 t.string "url" 174 t.string "url"
175 t.integer "project_id" 175 t.integer "project_id"
176 - t.datetime "created_at", :null => false  
177 - t.datetime "updated_at", :null => false 176 + t.datetime "created_at"
  177 + t.datetime "updated_at"
178 end 178 end
179 179
180 create_table "wikis", :force => true do |t| 180 create_table "wikis", :force => true do |t|
doc/debian_ubuntu.sh 0 → 100644
@@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
  1 +#!/bin/sh
  2 +
  3 +sudo apt-get update
  4 +sudo apt-get upgrade
  5 +
  6 +sudo apt-get install -y git-core wget curl gcc checkinstall libxml2-dev libxslt-dev sqlite3 libsqlite3-dev libcurl4-openssl-dev libreadline5-dev libc6-dev libssl-dev libmysql++-dev make build-essential zlib1g-dev libicu-dev redis-server openssh-server git-core python-dev python-pip
  7 +
  8 +wget http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz
  9 +tar xfvz ruby-1.9.2-p290.tar.gz
  10 +cd ruby-1.9.2-p290
  11 +./configure
  12 +make
  13 +sudo make install
  14 +
  15 +sudo adduser \
  16 + --system \
  17 + --shell /bin/sh \
  18 + --gecos 'git version control' \
  19 + --group \
  20 + --disabled-password \
  21 + --home /home/git \
  22 + git
  23 +
  24 +sudo adduser --disabled-login --gecos 'gitlab system' gitlab
  25 +
  26 +sudo usermod -a -G git gitlab
  27 +
  28 +sudo -H -u gitlab ssh-keygen -q -N '' -t rsa -f /home/gitlab/.ssh/id_rsa
  29 +
  30 +cd /home/git
  31 +sudo -H -u git git clone git://github.com/gitlabhq/gitolite /home/git/gitolite
  32 +
  33 +sudo -u git -H /home/git/gitolite/src/gl-system-install
  34 +sudo cp /home/gitlab/.ssh/id_rsa.pub /home/git/gitlab.pub
  35 +sudo chmod 777 /home/git/gitlab.pub
  36 +
  37 +sudo -u git -H sed -i 's/0077/0007/g' /home/git/share/gitolite/conf/example.gitolite.rc
  38 +sudo -u git -H sh -c "PATH=/home/git/bin:$PATH; gl-setup -q /home/git/gitlab.pub"
  39 +
  40 +sudo chmod -R g+rwX /home/git/repositories/
  41 +sudo chown -R git:git /home/git/repositories/
  42 +
  43 +sudo -u gitlab -H git clone git@localhost:gitolite-admin.git /tmp/gitolite-admin
  44 +rm -rf /tmp/gitolite-admin
doc/installation.md
@@ -43,7 +43,7 @@ The installation consists of 6 steps: @@ -43,7 +43,7 @@ The installation consists of 6 steps:
43 > apt-get install curl sudo 43 > apt-get install curl sudo
44 > 44 >
45 > # 3 steps in 1 command :) 45 > # 3 steps in 1 command :)
46 -> curl http://dl.dropbox.com/u/936096/debian_ubuntu.sh | sh 46 +> curl https://raw.github.com/gitlabhq/gitlabhq/master/doc/debian_ubuntu.sh | sh
47 > 47 >
48 > Now you can go to step 4" 48 > Now you can go to step 4"
49 > - - - 49 > - - -