Initial issues board page

parent baec3d23
class Projects::BoardsController < Projects::ApplicationController
def show
respond_to do |format|
format.html
end
end
end
- @no_container = true
- @content_class = 'issues-board-content'
- page_title 'Board'
= render 'projects/issues/head'
= render 'shared/issuable/filter', type: :boards
.board-lists
......@@ -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
......
......@@ -856,6 +856,8 @@ Rails.application.routes.draw do
end
end
resource :board, only: [:show]
resources :todos, only: [:create]
resources :uploads, only: [:create] do
......
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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment