Merge branch 'master' of github.com:gitlabhq/gitlabhq
This commit is contained in:
commit
78fe7270ab
3 changed files with 16 additions and 11 deletions
|
@ -146,6 +146,10 @@ module ProjectsHelper
|
|||
nav_tabs << feature if project.send :"#{feature}_enabled"
|
||||
end
|
||||
|
||||
if project.issues_enabled
|
||||
nav_tabs << [:milestones, :labels]
|
||||
end
|
||||
|
||||
nav_tabs.flatten
|
||||
end
|
||||
|
||||
|
|
|
@ -44,11 +44,12 @@
|
|||
%span
|
||||
Graphs
|
||||
|
||||
= nav_link(controller: :milestones) do
|
||||
= link_to namespace_project_milestones_path(@project.namespace, @project), title: 'Milestones' do
|
||||
%i.fa.fa-clock-o
|
||||
%span
|
||||
Milestones
|
||||
- if project_nav_tab? :milestones
|
||||
= nav_link(controller: :milestones) do
|
||||
= link_to namespace_project_milestones_path(@project.namespace, @project), title: 'Milestones' do
|
||||
%i.fa.fa-clock-o
|
||||
%span
|
||||
Milestones
|
||||
|
||||
- if project_nav_tab? :issues
|
||||
= nav_link(controller: :issues) do
|
||||
|
@ -67,11 +68,12 @@
|
|||
Merge Requests
|
||||
%span.count.merge_counter= @project.merge_requests.opened.count
|
||||
|
||||
= nav_link(controller: :labels) do
|
||||
= link_to namespace_project_labels_path(@project.namespace, @project), title: 'Labels' do
|
||||
%i.fa.fa-tags
|
||||
%span
|
||||
Labels
|
||||
- if project_nav_tab? :labels
|
||||
= nav_link(controller: :labels) do
|
||||
= link_to namespace_project_labels_path(@project.namespace, @project), title: 'Labels' do
|
||||
%i.fa.fa-tags
|
||||
%span
|
||||
Labels
|
||||
|
||||
- if project_nav_tab? :wiki
|
||||
= nav_link(controller: :wikis) do
|
||||
|
|
|
@ -14,7 +14,6 @@ module Gitlab
|
|||
end
|
||||
|
||||
def self.find_by_dn(dn, adapter)
|
||||
dn = Net::LDAP::Filter.escape(dn)
|
||||
adapter.user('dn', dn)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue