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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
76499374
Commit
76499374
authored
Aug 01, 2016
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial issues board page
parent
baec3d23
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
0 deletions
+42
-0
app/controllers/projects/boards_controller.rb
app/controllers/projects/boards_controller.rb
+7
-0
app/views/projects/boards/show.html.haml
app/views/projects/boards/show.html.haml
+8
-0
app/views/projects/issues/_head.html.haml
app/views/projects/issues/_head.html.haml
+5
-0
config/routes.rb
config/routes.rb
+2
-0
spec/controllers/projects/boards_controller_spec.rb
spec/controllers/projects/boards_controller_spec.rb
+20
-0
No files found.
app/controllers/projects/boards_controller.rb
0 → 100644
View file @
76499374
class
Projects::BoardsController
<
Projects
::
ApplicationController
def
show
respond_to
do
|
format
|
format
.
html
end
end
end
app/views/projects/boards/show.html.haml
0 → 100644
View file @
76499374
-
@no_container
=
true
-
@content_class
=
'issues-board-content'
-
page_title
'Board'
=
render
'projects/issues/head'
=
render
'shared/issuable/filter'
,
type: :boards
.board-lists
app/views/projects/issues/_head.html.haml
View file @
76499374
...
...
@@ -6,6 +6,11 @@
%span
Issues
=
nav_link
(
controller: :boards
)
do
=
link_to
namespace_project_board_path
(
@project
.
namespace
,
@project
),
title:
'Board'
do
%span
Board
-
if
project_nav_tab?
(
:merge_requests
)
&&
current_controller?
(
:merge_requests
)
=
nav_link
(
controller: :merge_requests
)
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
),
title:
'Merge Requests'
do
...
...
config/routes.rb
View file @
76499374
...
...
@@ -856,6 +856,8 @@ Rails.application.routes.draw do
end
end
resource
:board
,
only:
[
:show
]
resources
:todos
,
only:
[
:create
]
resources
:uploads
,
only:
[
:create
]
do
...
...
spec/controllers/projects/boards_controller_spec.rb
0 → 100644
View file @
76499374
require
'spec_helper'
describe
Projects
::
BoardsController
do
let
(
:project
)
{
create
(
:empty_project
)
}
let
(
:user
)
{
create
(
:user
)
}
before
do
project
.
team
<<
[
user
,
:master
]
sign_in
(
user
)
end
describe
'GET #show'
do
it
'renders HTML template'
do
get
:show
,
namespace_id:
project
.
namespace
.
to_param
,
project_id:
project
.
to_param
expect
(
response
).
to
render_template
:show
expect
(
response
.
content_type
).
to
eq
'text/html'
end
end
end
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