-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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) Add the link to release in the footer #1539
Conversation
Pull Request Test Coverage Report for Build e7151055-f3e6-4f2a-b035-55bb27fdea9d
💛 - Coveralls |
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.
After gettext step
if release_link == "" || release_link == nil do | ||
_version_link = version | ||
else | ||
_version_link = html_escape({:safe, "<a href=\"#{release_link}\" target=\"_blank\">#{version}</a>"}) |
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.
we can get rid of _version_link
variable. the last expression will be returned anyway
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.
Thanks! var has been removed.
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.
one comment. LGTM
Closes #1525
Motivation
Changelog
Enhancements
RELEASE_LINK
has been added. The link to release (if corresponding ENV variable is not empty) has been added to the version number in the footer. If no variable present, the version number is displayed without a link.