Skip to content

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 <daniel@tohka.us>
@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 Indicates a previously functioning feature or behavior that has broken or regressed after a change 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 Indicates a previously functioning feature or behavior that has broken or regressed after a change 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.

6 participants