UI changes:
* .page_title class added. Used for better page headers * improved help page * added back links for help pages * show app version & revision on help page Backend changes: * Gitab::Version && Gitlab::Revision constants
This commit is contained in:
parent
ad3f4922ee
commit
6a58deb536
24 changed files with 85 additions and 32 deletions
4
config/initializers/gitlab/10_app.rb
Normal file
4
config/initializers/gitlab/10_app.rb
Normal file
|
@ -0,0 +1,4 @@
|
|||
module Gitlab
|
||||
Version = File.read(Rails.root.join("VERSION"))
|
||||
Revision = `git log --pretty=format:'%h' -n 1`
|
||||
end
|
28
config/initializers/gitlab/20_grit_ext.rb
Normal file
28
config/initializers/gitlab/20_grit_ext.rb
Normal file
|
@ -0,0 +1,28 @@
|
|||
require 'grit'
|
||||
require 'pygments'
|
||||
|
||||
Grit::Git.git_timeout = GIT_OPTS["git_timeout"]
|
||||
Grit::Git.git_max_size = GIT_OPTS["git_max_size"]
|
||||
|
||||
Grit::Blob.class_eval do
|
||||
include Linguist::BlobHelper
|
||||
|
||||
def data
|
||||
@data ||= @repo.git.cat_file({:p => true}, id)
|
||||
Gitlab::Encode.utf8 @data
|
||||
end
|
||||
end
|
||||
|
||||
Grit::Diff.class_eval do
|
||||
def old_path
|
||||
Gitlab::Encode.utf8 @a_path
|
||||
end
|
||||
|
||||
def new_path
|
||||
Gitlab::Encode.utf8 @b_path
|
||||
end
|
||||
|
||||
def diff
|
||||
Gitlab::Encode.utf8 @diff
|
||||
end
|
||||
end
|
1
config/initializers/gitlab/30_resque_queues.rb
Normal file
1
config/initializers/gitlab/30_resque_queues.rb
Normal file
|
@ -0,0 +1 @@
|
|||
Resque.watch_queue(PostReceive.instance_variable_get("@queue"))
|
Loading…
Add table
Add a link
Reference in a new issue