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

Fixes #1347 - Improve Github links on pages #1357

Merged
merged 2 commits into from
Mar 19, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions dashboard/common/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def get_git_version_info() -> Optional[GitInfo]:

return {
"repo": format_github_url_using_https(repo),
"repo_abbrev": format_github_url_using_https(repo)[:-4],
jonespm marked this conversation as resolved.
Show resolved Hide resolved
"branch": branch,
"commit": commit,
"commit_abbrev": commit_abbrev
Expand Down
4 changes: 2 additions & 2 deletions dashboard/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load static %}
{% load static %}
{% load tz %}

<!DOCTYPE html>
Expand Down Expand Up @@ -47,7 +47,7 @@
{% if user.is_superuser and git_version %}
<td style="text-align: left">
Git version:
<a href="{{ git_version.repo }}/commit/{{ git_version.commit }}">{{ git_version.commit_abbrev }}</a>
<a href="{{ git_version.repo_abbrev }}/commit/{{ git_version.commit }}" target="_blank">{{ git_version.commit_abbrev }}</a>
jonespm marked this conversation as resolved.
Show resolved Hide resolved
(commit), {{ git_version.branch }} (branch)
</td>
{% endif %}
Expand Down