BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
0 deletions
+42
-0
boards_controller.rb
app/controllers/projects/boards_controller.rb
+7
-0
show.html.haml
app/views/projects/boards/show.html.haml
+8
-0
_head.html.haml
app/views/projects/issues/_head.html.haml
+5
-0
routes.rb
config/routes.rb
+2
-0
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