2015-04-21 14:57:01 +00:00
|
|
|
= content_for :meta_tags do
|
|
|
|
- if current_user
|
2015-04-21 15:37:08 +00:00
|
|
|
= auto_discovery_link_tag(:atom, namespace_project_path(@project.namespace, @project, format: :atom, private_token: current_user.private_token), title: "#{@project.name} activity")
|
2015-04-21 14:57:01 +00:00
|
|
|
|
2014-12-26 12:53:50 +00:00
|
|
|
- if current_user && can?(current_user, :download_code, @project)
|
2014-12-26 12:25:37 +00:00
|
|
|
= render 'shared/no_ssh'
|
2015-02-13 12:33:28 +00:00
|
|
|
= render 'shared/no_password'
|
2014-12-26 12:25:37 +00:00
|
|
|
|
2013-11-06 15:13:21 +00:00
|
|
|
= render "home_panel"
|
2015-07-07 13:22:56 +00:00
|
|
|
.project-stats
|
|
|
|
%ul.nav.nav-pills
|
|
|
|
%li
|
|
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref) do
|
|
|
|
= pluralize(number_with_delimiter(@repository.commit_count), 'commit')
|
|
|
|
%li
|
|
|
|
= link_to namespace_project_branches_path(@project.namespace, @project) do
|
|
|
|
= pluralize(number_with_delimiter(@repository.branch_names.count), 'branch')
|
|
|
|
%li
|
|
|
|
= link_to namespace_project_tags_path(@project.namespace, @project) do
|
|
|
|
= pluralize(number_with_delimiter(@repository.tag_names.count), 'tag')
|
|
|
|
- if @repository.changelog
|
|
|
|
%li
|
|
|
|
= link_to changelog_url(@project) do
|
|
|
|
Changelog
|
|
|
|
- if @repository.license
|
|
|
|
%li
|
|
|
|
= link_to license_url(@project) do
|
|
|
|
License
|
|
|
|
- if @repository.contribution_guide
|
|
|
|
%li
|
|
|
|
= link_to contribution_guide_url(@project) do
|
|
|
|
Contribution guide
|
2015-04-26 22:43:02 +00:00
|
|
|
|
2015-07-07 13:22:56 +00:00
|
|
|
%hr
|
|
|
|
%section
|
|
|
|
- if readme = @repository.readme
|
|
|
|
%article.readme-holder#README
|
|
|
|
.clearfix
|
|
|
|
%small.pull-right
|
|
|
|
= link_to namespace_project_blob_path(@project.namespace, @project, tree_join(@repository.root_ref, readme.name)), class: 'light' do
|
|
|
|
%i.fa.fa-file
|
|
|
|
= readme.name
|
|
|
|
.wiki
|
|
|
|
= render_readme(readme)
|
|
|
|
- else
|
|
|
|
%h4 Add README to this repository
|