2014-12-26 07:53:50 -05:00
|
|
|
- if current_user && can?(current_user, :download_code, @project)
|
2014-12-26 07:25:37 -05:00
|
|
|
= render 'shared/no_ssh'
|
2015-02-13 07:33:28 -05:00
|
|
|
= render 'shared/no_password'
|
2014-12-26 07:25:37 -05:00
|
|
|
|
2013-11-06 10:13:21 -05:00
|
|
|
= render "home_panel"
|
2013-10-21 06:05:20 -04:00
|
|
|
|
2014-08-28 07:19:11 -04:00
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.active
|
2014-09-30 07:32:38 -04:00
|
|
|
= link_to '#tab-activity', 'data-toggle' => 'tab' do
|
2014-08-28 07:19:11 -04:00
|
|
|
Activity
|
2015-04-06 09:04:13 -04:00
|
|
|
- if @repository.readme
|
2014-09-30 07:32:38 -04:00
|
|
|
%li
|
|
|
|
= link_to '#tab-readme', 'data-toggle' => 'tab' do
|
|
|
|
Readme
|
2015-04-06 09:04:13 -04:00
|
|
|
- if @repository.changelog
|
|
|
|
%li
|
|
|
|
= link_to changelog_url(@project) do
|
|
|
|
Changelog
|
|
|
|
- if @repository.contribution_guide
|
|
|
|
%li
|
|
|
|
= link_to contribution_guide_url(@project) do
|
|
|
|
Contribution guide
|
|
|
|
- if @repository.license
|
|
|
|
%li
|
|
|
|
= link_to license_url(@project) do
|
|
|
|
License
|
|
|
|
|
2014-08-28 07:19:11 -04:00
|
|
|
.project-home-links
|
|
|
|
- unless @project.empty_repo?
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to pluralize(number_with_delimiter(@repository.commit_count), 'commit'), namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref)
|
|
|
|
= link_to pluralize(number_with_delimiter(@repository.branch_names.count), 'branch'), namespace_project_branches_path(@project.namespace, @project)
|
|
|
|
= link_to pluralize(number_with_delimiter(@repository.tag_names.count), 'tag'), namespace_project_tags_path(@project.namespace, @project)
|
2014-08-28 07:19:11 -04:00
|
|
|
%span.light.prepend-left-20= repository_size
|
|
|
|
|
2014-09-30 07:32:38 -04:00
|
|
|
.tab-content
|
|
|
|
.tab-pane.active#tab-activity
|
|
|
|
.row
|
2015-02-22 01:01:27 -05:00
|
|
|
= link_to '#aside', class: 'show-aside' do
|
|
|
|
%i.fa.fa-angle-left
|
2014-09-30 07:32:38 -04:00
|
|
|
%section.col-md-9
|
|
|
|
= render "events/event_last_push", event: @last_push
|
|
|
|
= render 'shared/event_filter'
|
|
|
|
.content_list
|
|
|
|
= spinner
|
2015-02-22 01:01:27 -05:00
|
|
|
%aside.col-md-3.project-side
|
2014-09-30 07:32:38 -04:00
|
|
|
.clearfix
|
|
|
|
- if @project.archived?
|
|
|
|
.alert.alert-warning
|
|
|
|
%h4
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-exclamation-triangle
|
2014-09-30 07:32:38 -04:00
|
|
|
Archived project!
|
|
|
|
%p Repository is read-only
|
2013-12-18 08:02:31 -05:00
|
|
|
|
2014-09-30 07:32:38 -04:00
|
|
|
- if @project.forked_from_project
|
2015-03-07 03:28:53 -05:00
|
|
|
.well
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-code-fork.project-fork-icon
|
2014-09-30 07:32:38 -04:00
|
|
|
Forked from:
|
|
|
|
%br
|
2015-03-18 19:17:30 -04:00
|
|
|
= link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project)
|
2014-07-24 15:14:12 -04:00
|
|
|
|
2014-09-30 07:32:38 -04:00
|
|
|
- unless @project.empty_repo?
|
2015-03-19 00:32:23 -04:00
|
|
|
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do
|
2015-04-14 10:08:01 -04:00
|
|
|
%i.fa.fa-exchange
|
2015-03-19 00:32:23 -04:00
|
|
|
Compare code
|
|
|
|
|
2015-04-14 10:08:01 -04:00
|
|
|
- if can?(current_user, :download_code, @project)
|
|
|
|
= render 'projects/repositories/download_archive', split_button: true, btn_class: 'btn-block'
|
|
|
|
|
2015-03-17 13:37:50 -04:00
|
|
|
- if version = @repository.version
|
|
|
|
- detail_url = changelog_url(@project) || version_url(@project)
|
|
|
|
= link_to detail_url, class: 'btn btn-block' do
|
2015-04-14 10:08:01 -04:00
|
|
|
%i.fa.fa-file-text-o
|
2014-09-30 07:32:38 -04:00
|
|
|
Version:
|
|
|
|
%span.count
|
|
|
|
= @repository.blob_by_oid(version.id).data
|
2015-03-18 19:17:30 -04:00
|
|
|
|
2015-03-29 21:15:54 -04:00
|
|
|
.prepend-top-10.append-bottom-10
|
2014-09-30 07:32:38 -04:00
|
|
|
%p
|
|
|
|
%span.light Created on
|
|
|
|
#{@project.created_at.stamp('Aug 22, 2013')}
|
|
|
|
%p
|
2015-02-10 11:23:48 -05:00
|
|
|
%span.light Owned by #{@project.group ? "the" : nil}
|
2014-09-30 07:32:38 -04:00
|
|
|
- if @project.group
|
|
|
|
#{link_to @project.group.name, @project.group} group
|
|
|
|
- else
|
|
|
|
#{link_to @project.owner_name, @project.owner}
|
2013-11-29 06:52:10 -05:00
|
|
|
|
2015-03-29 21:15:54 -04:00
|
|
|
|
|
|
|
.prepend-top-10
|
2014-08-18 06:54:51 -04:00
|
|
|
- @project.ci_services.each do |ci_service|
|
|
|
|
- if ci_service.active? && ci_service.respond_to?(:builds_path)
|
2015-03-29 21:15:54 -04:00
|
|
|
%hr
|
2014-10-08 05:22:41 -04:00
|
|
|
- if ci_service.respond_to?(:status_img_path)
|
2015-01-19 18:22:40 -05:00
|
|
|
= link_to ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' do
|
2014-10-08 05:22:41 -04:00
|
|
|
= image_tag ci_service.status_img_path, alt: "build status"
|
|
|
|
- else
|
|
|
|
%span.light CI provided by
|
2015-01-19 18:22:40 -05:00
|
|
|
= link_to ci_service.title, ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink'
|
2013-05-14 06:31:29 -04:00
|
|
|
|
2015-04-06 09:04:13 -04:00
|
|
|
- if readme = @repository.readme
|
2014-09-30 07:32:38 -04:00
|
|
|
.tab-pane#tab-readme
|
|
|
|
%article.readme-holder#README
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)) do
|
2014-09-30 07:32:38 -04:00
|
|
|
%h4.readme-file-title
|
2014-10-01 18:21:29 -04:00
|
|
|
%i.fa.fa-file
|
2014-09-30 07:32:38 -04:00
|
|
|
= readme.name
|
|
|
|
.wiki
|
|
|
|
= render_readme(readme)
|