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

(Feature) Add the link to release in the footer #1539

Merged
merged 9 commits into from
Mar 12, 2019
Merged

Conversation

vbaranov
Copy link
Member

@vbaranov vbaranov commented Mar 7, 2019

Closes #1525

Motivation

  • There is no a link to release in the footer

Changelog

Enhancements

  • New optional ENV variable 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.

@ghost ghost assigned vbaranov Mar 7, 2019
@ghost ghost added the in progress label Mar 7, 2019
@coveralls
Copy link

coveralls commented Mar 7, 2019

Pull Request Test Coverage Report for Build e7151055-f3e6-4f2a-b035-55bb27fdea9d

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 84.326%

Totals Coverage Status
Change from base Build 407f0c0d-7fb4-45a6-9c65-a7147c48c9fc: 0.01%
Covered Lines: 4288
Relevant Lines: 5085

💛 - Coveralls

@vbaranov vbaranov marked this pull request as ready for review March 11, 2019 20:48
Copy link
Contributor

@zachdaniel zachdaniel left a 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>"})
Copy link
Contributor

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

Copy link
Member Author

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.

Copy link
Contributor

@ayrat555 ayrat555 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one comment. LGTM

@vbaranov vbaranov added ready for review This PR is ready for reviews. and removed in progress labels Mar 12, 2019
@vbaranov vbaranov merged commit d164c35 into master Mar 12, 2019
@vbaranov vbaranov deleted the add-release-link branch March 12, 2019 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR is ready for reviews.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants