summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-09 23:16:33 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-12 10:27:17 +0200
commit71a1689fec04093b1ee3455a11527efe93b207a6 (patch)
tree510fe6df7f73e5202c71d2237f38b0644580ec73
parentf84e78f3d750776793371940803b7ff781050f09 (diff)
downloadgitlab-ce-71a1689fec04093b1ee3455a11527efe93b207a6.tar.gz
Add icons to more tabs.
-rw-r--r--app/views/projects/_section.html.haml2
-rw-r--r--app/views/projects/commits/_head.html.haml7
2 files changed, 8 insertions, 1 deletions
diff --git a/app/views/projects/_section.html.haml b/app/views/projects/_section.html.haml
index 0b7f4cb780a..f4f876f3809 100644
--- a/app/views/projects/_section.html.haml
+++ b/app/views/projects/_section.html.haml
@@ -1,10 +1,12 @@
%ul.nav.nav-tabs
%li.active
= link_to '#tab-activity', 'data-toggle' => 'tab' do
+ = icon("tachometer")
Activity
- if @repository.readme
%li
= link_to '#tab-readme', 'data-toggle' => 'tab' do
+ = icon("file-text-o")
Readme
.tab-content
.tab-pane.active#tab-activity
diff --git a/app/views/projects/commits/_head.html.haml b/app/views/projects/commits/_head.html.haml
index 66101f3f0da..66261c7336d 100644
--- a/app/views/projects/commits/_head.html.haml
+++ b/app/views/projects/commits/_head.html.haml
@@ -1,17 +1,22 @@
%ul.nav.nav-tabs
= nav_link(controller: [:commit, :commits]) do
= link_to namespace_project_commits_path(@project.namespace, @project, @ref || @repository.root_ref) do
+ = icon("history")
Commits
%span.badge= number_with_precision(@repository.commit_count, precision: 0, delimiter: ',')
= nav_link(controller: :compare) do
- = link_to 'Compare', namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref)
+ = link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: @ref || @repository.root_ref) do
+ = icon("exchange")
+ Compare
= nav_link(html_options: {class: branches_tab_class}) do
= link_to namespace_project_branches_path(@project.namespace, @project) do
+ = icon("code-fork")
Branches
%span.badge.js-totalbranch-count= @repository.branches.size
= nav_link(controller: :tags) do
= link_to namespace_project_tags_path(@project.namespace, @project) do
+ = icon("tags")
Tags
%span.badge.js-totaltags-count= @repository.tags.length