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

Fix home page template regression #5102

Merged
merged 2 commits into from
Oct 18, 2018
Merged

Fix home page template regression #5102

merged 2 commits into from
Oct 18, 2018

Conversation

darktohka
Copy link
Contributor

@darktohka darktohka commented Oct 18, 2018

Commit 7bb4d61 tries to take the app_name from the locale, however, it is a user defined setting. This causes the app name to simply display as app_name instead of the correct value.

templates/helper.go automatically injects the AppName variable into every template, so we can safely use that instead.

Right now, the home page looks like this: https://i.imgur.com/aZKaotf.png

Commit 7bb4d61 tries to take the app_name from the locale, however, it is a user defined setting. This causes the app name to simply display as `app_name` instead of the correct value.

templates/helper.go automatically injects the AppName variable into every template, so we can safely use that instead.

Signed-off-by: Daniel Derzsi <[email protected]>
@codecov-io
Copy link

codecov-io commented Oct 18, 2018

Codecov Report

Merging #5102 into master will decrease coverage by <.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5102      +/-   ##
==========================================
- Coverage    37.4%   37.39%   -0.01%     
==========================================
  Files         307      307              
  Lines       45552    45552              
==========================================
- Hits        17037    17034       -3     
- Misses      26060    26062       +2     
- Partials     2455     2456       +1
Impacted Files Coverage Δ
models/repo_indexer.go 50.84% <0%> (-1.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ea619b3...81fc32a. Read the comment docs.

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 18, 2018
@bkcsoft bkcsoft added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 18, 2018
@jonasfranz jonasfranz added type/bug issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself labels Oct 18, 2018
@jonasfranz jonasfranz added this to the 1.7.0 milestone Oct 18, 2018
@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 18, 2018
@lunny lunny merged commit 8db3bdc into go-gitea:master Oct 18, 2018
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
issue/regression Issue needs no code to be fixed, only a description on how to fix it yourself lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants