-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/apiofboardsboardsectionstasks #6
base: main
Are you sure you want to change the base?
Conversation
fix: code identation and boards crud
@@ -0,0 +1,2 @@ | |||
module Api::V1::AssignedTasksHelper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete api/v1 folder from helpers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app/controllers/boards_controller.rb
Outdated
redirect_to root_path | ||
else | ||
render :new | ||
respond_to do |format| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move respond_to inside if condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
def create | ||
@board_section = @board.board_sections.build(board_section_params) | ||
respond_to do |format| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move respond_to inside if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
def show; end | ||
|
||
def create | ||
@comment = Comment.new(comment_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace Comment.new with @task.comments.new
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
def create | ||
@comment = Comment.new(comment_params) | ||
respond_to do |format| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
class DocumentsController < ApplicationController | ||
before_action :set_document_object, only: %i[show edit update delete] | ||
|
||
def index |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this route
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@documents = Document.all | ||
end | ||
|
||
def new |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this route
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app/views/boards/_document.html.erb
Outdated
@@ -0,0 +1,24 @@ | |||
<div class="wrapper"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this partial to documents folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app/views/boards/_document.html.erb
Outdated
</div> | ||
<div class="col ps-0"> | ||
<a href="javascript:void(0);" class="text-muted fw-bold"><%= document&.file_file_name%></a> | ||
<p class="mb-0"><%= FriendlyNumbers.number_to_human_size(document.file_file_size) %></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this logic to document helper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app/views/boards/_results.html.erb
Outdated
@@ -0,0 +1,3 @@ | |||
<% board_sections&.each do |board_section |%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename this partial to board_sections
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
app/views/boards/_results.html.erb
Outdated
@@ -0,0 +1,3 @@ | |||
<% board_sections&.each do |board_section |%> | |||
<%= render :partial => 'boards/board_section', locals: {board_section: board_section, board: board} %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move it to board_sections folder
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
@@ -0,0 +1,2 @@ | |||
$('#blogpost-table').hide(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
api of boards, boardsections, tasks, assign tasks to users with nested routes