project dashboard
This commit is contained in:
parent
5a5845e490
commit
c29b49de66
5 changed files with 69 additions and 13 deletions
|
@ -3,4 +3,16 @@ module ProjectsHelper
|
|||
cookies["project_view"] ||= "tile"
|
||||
cookies["project_view"] == type ? nil : "display:none"
|
||||
end
|
||||
|
||||
def noteable_link(id, type, project)
|
||||
case type
|
||||
when "Issue"
|
||||
link_to "Issue ##{id}", project_issue_path(project, id)
|
||||
when "Commit"
|
||||
commit = project.repo.commits(id).first
|
||||
link_to truncate(commit.id,:length => 10), project_commit_path(project, id)
|
||||
else
|
||||
link_to "Wall", wall_project_path(project)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue