Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
98a45ce6
Commit
98a45ce6
authored
Jun 21, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin area -> search for projecs
parent
77cf6620
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
app/controllers/admin/projects_controller.rb
app/controllers/admin/projects_controller.rb
+3
-1
app/views/admin/projects/index.html.haml
app/views/admin/projects/index.html.haml
+4
-0
No files found.
app/controllers/admin/projects_controller.rb
View file @
98a45ce6
...
...
@@ -4,7 +4,9 @@ class Admin::ProjectsController < ApplicationController
before_filter
:authenticate_admin!
def
index
@admin_projects
=
Project
.
page
(
params
[
:page
])
@admin_projects
=
Project
.
scoped
@admin_projects
=
@admin_projects
.
search
(
params
[
:name
])
if
params
[
:name
].
present?
@admin_projects
=
@admin_projects
.
page
(
params
[
:page
])
end
def
show
...
...
app/views/admin/projects/index.html.haml
View file @
98a45ce6
...
...
@@ -2,6 +2,10 @@
Projects
=
link_to
'New Project'
,
new_admin_project_path
,
:class
=>
"btn small right"
%br
=
form_tag
admin_projects_path
,
:method
=>
:get
do
=
text_field_tag
:name
,
params
[
:name
],
:class
=>
"xlarge"
=
submit_tag
"Search"
,
:class
=>
"btn submit primary"
%table
.admin-table
%thead
%th
Name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment