| 1 |
class LogsController < ApplicationController |
| 2 |
before_filter :find_project_and_repository |
| 3 |
before_filter :check_repository_for_commits |
| 4 |
|
| 5 |
def index |
| 6 |
redirect_to project_repository_log_path(@project, @repository, @repository.head_candidate.name) |
| 7 |
end |
| 8 |
|
| 9 |
def show |
| 10 |
@git = @repository.git |
| 11 |
@commits = @repository.paginated_commits(params[:id], params[:page]) |
| 12 |
@atom_auto_discovery_url = project_repository_formatted_log_feed_path(@project, @repository, params[:id], :atom) |
| 13 |
respond_to do |format| |
| 14 |
format.html |
| 15 |
end |
| 16 |
end |
| 17 |
|
| 18 |
def feed |
| 19 |
@git = @repository.git |
| 20 |
@commits = @repository.git.commits(params[:id]) |
| 21 |
respond_to do |format| |
| 22 |
format.html { redirect_to(project_repository_log_path(@project, @repository, params[:id]))} |
| 23 |
format.atom |
| 24 |
end |
| 25 |
end |
| 26 |
|
| 27 |
end |