Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My Tasks View Scaffold #1235

Draft
wants to merge 4 commits into
base: develop
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class TasksController < AuthenticatedController
include ProjectScoped
layout 'tylium'
def index; end
end
5 changes: 5 additions & 0 deletions app/views/projects/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
<div class="col-12 col-lg-6 col-xxl-8 p-0">
<div class="row m-0">
<div class="col-xxl-6 p-0">

<div class="content-container mt-0 mt-lg-3 ms-lg-3 mx-xxl-3">
<%= render partial: 'projects/tasks/summary' %>
</div>

<div class="content-container mt-0 mt-lg-3 ms-lg-3 mx-xxl-3">
<%= render partial: 'projects/boards/summary' %>
</div>
Expand Down
4 changes: 4 additions & 0 deletions app/views/projects/tasks/_summary.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<section class="summary-panel">
<h4>Edit me in app/views/projects/tasks/_summary.html.erb</h4>
<%= link_to 'link to my tasks view', project_tasks_path(current_project) %>
</section>
5 changes: 5 additions & 0 deletions app/views/tasks/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% content_for :title, 'My Tasks' %>

<div class="content-container mt-3">
<h1>Edit me in app/views/tasks/index.html.erb</h1>
</div>
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@

resources :tags, except: [:show]

resources :tasks, only: :index

namespace :qa do
resources :issues, only: [:edit, :index, :show, :update], concerns: [:multiple_update, :previewable]
end
Expand Down
Loading