Commit e04f3756 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch '6-0-stable' of dev.gitlab.org:gitlab/gitlabhq

Conflicts:
	VERSION
parents 61415161 5246d63f
6.0.0-ee.rc1 6.0.0-ee
...@@ -35,6 +35,14 @@ ...@@ -35,6 +35,14 @@
padding-top: 0; padding-top: 0;
} }
&.event-inline {
.avatar {
width: 16px;
height: 16px;
}
}
padding: 14px 0px;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
.event-title { .event-title {
color: #333; color: #333;
...@@ -46,6 +54,7 @@ ...@@ -46,6 +54,7 @@
} }
.event-body { .event-body {
margin-left: 35px; margin-left: 35px;
margin-right: 100px;
.commit p { .commit p {
color: #666; color: #666;
...@@ -66,14 +75,12 @@ ...@@ -66,14 +75,12 @@
margin: 0 20px; margin: 0 20px;
} }
.note-file-attach {
.note-image-attach { .note-image-attach {
margin-top: 4px; margin-top: 4px;
margin-left: 0px; margin-left: 0px;
max-width: 200px; max-width: 200px;
} }
} }
}
.event-note-icon { .event-note-icon {
color: #777; color: #777;
float: left; float: left;
...@@ -103,7 +110,6 @@ ...@@ -103,7 +110,6 @@
} }
} }
padding: 12px 0px;
&:last-child { border:none } &:last-child { border:none }
.event_commits { .event_commits {
......
...@@ -121,4 +121,8 @@ module EventsHelper ...@@ -121,4 +121,8 @@ module EventsHelper
end end
end end
end end
def event_note(text)
sanitize(markdown(truncate(text, length: 150)), tags: %w(a img b pre p))
end
end end
...@@ -291,4 +291,14 @@ class Event < ActiveRecord::Base ...@@ -291,4 +291,14 @@ class Event < ActiveRecord::Base
"Wall" "Wall"
end.downcase end.downcase
end end
def body?
if push?
push_with_commits?
elsif note?
true
else
target.respond_to? :title
end
end
end end
...@@ -430,6 +430,7 @@ class Project < ActiveRecord::Base ...@@ -430,6 +430,7 @@ class Project < ActiveRecord::Base
# However we cannot allow rollback since we moved repository # However we cannot allow rollback since we moved repository
# So we basically we mute exceptions in next actions # So we basically we mute exceptions in next actions
begin begin
gitlab_shell.mv_repository("#{old_path_with_namespace}.wiki", "#{new_path_with_namespace}.wiki")
gitlab_shell.rm_satellites(old_path_with_namespace) gitlab_shell.rm_satellites(old_path_with_namespace)
send_move_instructions send_move_instructions
rescue rescue
......
- if event.proper? - if event.proper?
%div.event-item .event-item{class: "#{event.body? ? "event-block" : "event-inline" }"}
%span.cgray.pull-right %span.cgray.pull-right
#{time_ago_in_words(event.created_at)} ago. #{time_ago_in_words(event.created_at)} ago.
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.event-note .event-note
.md .md
%i.icon-comment-alt.event-note-icon %i.icon-comment-alt.event-note-icon
= sanitize(markdown(truncate(event.target.note, length: 150)), tags: %w(a img b pre p)) = event_note(event.target.note)
- note = event.target - note = event.target
- if note.attachment.url - if note.attachment.url
- if note.attachment.image? - if note.attachment.image?
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
.project-title .project-title
%i.icon-share.cgray %i.icon-share.cgray
= link_to public_project_path(project) do = link_to public_project_path(project) do
= project.name_with_namespace %strong= project.name_with_namespace
.pull-right .pull-right
%pre.public-clone git clone #{project.http_url_to_repo} %pre.public-clone git clone #{project.http_url_to_repo}
......
...@@ -153,10 +153,10 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install ...@@ -153,10 +153,10 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install
cd /home/git/gitlab cd /home/git/gitlab
# Checkout to stable release # Checkout to stable release
sudo -u git -H git checkout 5-4-stable sudo -u git -H git checkout 6-0-stable
**Note:** **Note:**
You can change `5-4-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server! You can change `6-0-stable` to `master` if you want the *bleeding edge* version, but never install master on a production server!
## Configure it ## Configure it
...@@ -232,10 +232,10 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup. ...@@ -232,10 +232,10 @@ Make sure to edit both `gitlab.yml` and `unicorn.rb` to match your setup.
sudo gem install charlock_holmes --version '0.6.9.4' sudo gem install charlock_holmes --version '0.6.9.4'
# For MySQL (note, the option says "without ... postgres") # For MySQL (note, the option says "without ... postgres")
sudo -u git -H bundle install --deployment --without development test postgres unicorn aws sudo -u git -H bundle install --deployment --without development test postgres aws
# Or for PostgreSQL (note, the option says "without ... mysql") # Or for PostgreSQL (note, the option says "without ... mysql")
sudo -u git -H bundle install --deployment --without development test mysql unicorn aws sudo -u git -H bundle install --deployment --without development test mysql aws
## Initialize Database and Activate Advanced Features ## Initialize Database and Activate Advanced Features
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment