Gem updates & githost logger
* Grit gem updated * gitolite-client updated * logger added * few fixes
This commit is contained in:
parent
09831488c9
commit
1b2068eaa9
8 changed files with 23 additions and 8 deletions
|
@ -15,6 +15,7 @@ class CommitsController < ApplicationController
|
|||
def index
|
||||
@repo = project.repo
|
||||
@limit, @offset = (params[:limit] || 40), (params[:offset] || 0)
|
||||
|
||||
@commits = @project.commits(@ref, params[:path], @limit, @offset)
|
||||
|
||||
respond_to do |format|
|
||||
|
|
|
@ -2,6 +2,7 @@ require 'digest/md5'
|
|||
module ApplicationHelper
|
||||
|
||||
def gravatar_icon(user_email = '', size = 40)
|
||||
return unless user_email
|
||||
gravatar_host = request.ssl? ? "https://secure.gravatar.com" : "http://www.gravatar.com"
|
||||
user_email.strip!
|
||||
"#{gravatar_host}/avatar/#{Digest::MD5.hexdigest(user_email.downcase)}?s=#{size}&d=identicon"
|
||||
|
|
|
@ -73,7 +73,7 @@ class Commit
|
|||
repo.commits(ref, limit, offset)
|
||||
else
|
||||
repo.commits(ref)
|
||||
end.map{ |c| Commit.new(c) }
|
||||
end.map{ |c| Commit.new(c) }
|
||||
end
|
||||
|
||||
def commits_between(repo, from, to)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue