forked from hugomaiavieira/kanban-roots
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Order contributor's projects by update date;
- Loading branch information
1 parent
09c20b4
commit b47d79e
Showing
7 changed files
with
22 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class Comment < ActiveRecord::Base | ||
belongs_to :task | ||
belongs_to :task, :touch => true # TODO: Test the touch | ||
belongs_to :contributor | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
.page-header | ||
h1 Your projects | ||
|
||
ul | ||
- current_contributor.projects.each do |project| | ||
li | ||
= link_to project.name, project_board_path(project) | ||
br | ||
= project.description | ||
- if current_contributor.projects.empty? | ||
p You don't have projects yet. #{link_to 'Create your first project!', new_project_path} | ||
br | ||
- else | ||
ul | ||
- current_contributor.projects.each do |project| | ||
li | ||
= link_to project.name, project_board_path(project) | ||
br | ||
= project.description | ||
|
||
p | ||
= link_to 'New project', new_project_path, :class => 'btn primary' | ||
= link_to 'New project', new_project_path, :class => 'btn primary' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters