Last active
August 29, 2015 14:22
-
-
Save mikeobrien/06e53b68efc0c5ac5c20 to your computer and use it in GitHub Desktop.
Getting rid of the obnoxious GitLab activity sections (7.10.4 omnibus)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# /opt/gitlab/embedded/service/gitlab-rails/app/views/dashboard/show.html.haml | |
- if @projects.any? | |
= render 'sidebar' | |
= link_to '#aside', class: 'show-aside' do | |
%i.fa.fa-angle-left | |
- else | |
= render "zero_authorized_projects" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# /opt/gitlab/embedded/service/gitlab-rails/app/views/groups/show.html.haml | |
.dashboard | |
.header-with-avatar.clearfix | |
= image_tag group_icon(@group), class: "avatar group-avatar s90" | |
%h3 | |
= @group.name | |
.username | |
@#{@group.path} | |
- if @group.description.present? | |
.description | |
= escaped_autolink(@group.description) | |
%hr | |
.row | |
= render "projects", projects: @projects | |
= link_to '#aside', class: 'show-aside' do | |
%i.fa.fa-angle-left |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# /opt/gitlab/embedded/service/gitlab-rails/app/views/projects/show.html.haml | |
- if current_user && can?(current_user, :download_code, @project) | |
= render 'shared/no_ssh' | |
= render 'shared/no_password' | |
= render "home_panel" | |
%ul.nav.nav-tabs | |
%li.active | |
= link_to '#tab-activity', 'data-toggle' => 'tab' do | |
Home | |
- 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 | |
.project-home-links | |
- unless @project.empty_repo? | |
= 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) | |
%span.light.prepend-left-20= repository_size | |
.tab-content | |
.tab-pane.active#tab-activity | |
.row | |
= link_to '#aside', class: 'show-aside' do | |
%i.fa.fa-angle-left | |
- if readme = @repository.readme | |
%section.col-md-9 | |
.tab-pane#tab-readme | |
%article.readme-holder#README | |
.wiki | |
= render_readme(readme) | |
%aside.col-md-3.project-side | |
.clearfix | |
- if @project.archived? | |
.alert.alert-warning | |
%h4 | |
%i.fa.fa-exclamation-triangle | |
Archived project! | |
%p Repository is read-only | |
- if @project.forked_from_project | |
.well | |
%i.fa.fa-code-fork.project-fork-icon | |
Forked from: | |
%br | |
= link_to @project.forked_from_project.name_with_namespace, project_path(@project.forked_from_project) | |
- unless @project.empty_repo? | |
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref), class: 'btn btn-block' do | |
%i.fa.fa-exchange | |
Compare code | |
- if can?(current_user, :download_code, @project) | |
= render 'projects/repositories/download_archive', split_button: true, btn_class: 'btn-block' | |
- if version = @repository.version | |
- detail_url = changelog_url(@project) || version_url(@project) | |
= link_to detail_url, class: 'btn btn-block' do | |
%i.fa.fa-file-text-o | |
Version: | |
%span.count | |
= @repository.blob_by_oid(version.id).data | |
.prepend-top-10.append-bottom-10 | |
%p | |
%span.light Created on | |
#{@project.created_at.stamp('Aug 22, 2013')} | |
%p | |
%span.light Owned by #{@project.group ? "the" : nil} | |
- if @project.group | |
#{link_to @project.group.name, @project.group} group | |
- else | |
#{link_to @project.owner_name, @project.owner} | |
.prepend-top-10 | |
- @project.ci_services.each do |ci_service| | |
- if ci_service.active? && ci_service.respond_to?(:builds_path) | |
%hr | |
- if ci_service.respond_to?(:status_img_path) | |
= link_to ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' do | |
= image_tag ci_service.status_img_path, alt: "build status" | |
- else | |
%span.light CI provided by | |
= link_to ci_service.title, ci_service.builds_path, :'data-no-turbolink' => 'data-no-turbolink' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo gitlab-ctl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment