Skip to content

Commit

Permalink
Open the github repo in a new window
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Byron committed Jun 16, 2011
1 parent 395d974 commit 326949e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions app/helpers/courses/assignments/submissions_helper.rb
Expand Up @@ -34,10 +34,16 @@ def comment_and_update_status
end

def github_link(github_repo)
return link_to(github_repo, "https://github.com/#{github_repo}") if github_repo
raw("<div id=github_help_text>Click 'Edit' to associate this submission with a
github repository. You may enter the full repository URL or just its
name.</div>")
if github_repo
link_to github_repo,
"https://github.com/#{github_repo}",
:target => "_blank"
else
%{<div id=github_help_text>
Click 'Edit' to associate this submission with a github repository.
You may enter the full repository URL or just its name.
</div>}.html_safe
end
end

def github_commit_link(activity)
Expand Down

0 comments on commit 326949e

Please sign in to comment.