修改commits报错
This commit is contained in:
parent
8b21ed18b8
commit
9784564c01
|
@ -45,6 +45,7 @@ class RepositoriesController < ApplicationController
|
||||||
end
|
end
|
||||||
|
|
||||||
def commits
|
def commits
|
||||||
|
@create_user = @project.owner
|
||||||
@hash_commit = Gitea::Repository::Commits::ListService.new(@project.owner.login, @project.identifier,
|
@hash_commit = Gitea::Repository::Commits::ListService.new(@project.owner.login, @project.identifier,
|
||||||
sha: params[:sha], page: params[:page], limit: params[:limit], token: current_user&.gitea_token).call
|
sha: params[:sha], page: params[:page], limit: params[:limit], token: current_user&.gitea_token).call
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,7 +9,7 @@ else
|
||||||
json.message commit['commit']['message']
|
json.message commit['commit']['message']
|
||||||
json.timestamp render_unix_time(commit['commit']['author']['date'])
|
json.timestamp render_unix_time(commit['commit']['author']['date'])
|
||||||
json.time_from_now time_from_now(commit['commit']['author']['date'])
|
json.time_from_now time_from_now(commit['commit']['author']['date'])
|
||||||
json.partial! 'author', user: @project.owner
|
json.partial! 'author', locals: {user: @create_user}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue