mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
[GITEA] Add OpenStreetMap URL to Location field in profile
Not too important, but I think that it'd be a pretty neat touch. (cherry picked from commit64de4e02f9
) Add placeholder text (cherry picked from commit1396e2716b
) Add test for OSM feature (doesn't work yet) (cherry picked from commit2c94e6d56f
) Lint tests (sorry, I'm a bit tired) (cherry picked from commit5731fbb4a4
) It finally works, will add more tests later. (cherry picked from commit4437292622
) Improve testing (cherry picked from commit56a028ec96
) Introduce new button for OpenStreetMap URL (cherry picked from commit852317b467
) 16, "gt-mr-2" in *all* icons (cherry picked from commitc2c60a01eb
) Wait, I forgot about *that* icon (cherry picked from commit9930f9b8f2
) Alright, we just made all the icons in that submenu a bit bolder and more consistent. (cherry picked from commitd5c0009ad0
) Remove | Safe attribute, it does exactly the opposite of what I intended it to. (cherry picked from commit1254f2aa9d
) Make OSM button configurable (cherry picked from commitba3d76f5ba
) Fix tests (tested) (cherry picked from commit22983c65f8
) Add more tests (cherry picked from commit4bbcbd37e1
) Add tooltip (cherry picked from commitb906008ff1
) Revert "16, "gt-mr-2" in *all* icons" This reverts commitc2c60a01eb
. (cherry picked from commit02bb52617d
) Revert "Wait, I forgot about *that* icon" This reverts commit9930f9b8f2
. (cherry picked from commita36d657509
) Revert "Alright, we just made all the icons in that submenu a bit bolder and more consistent." This reverts commitd5c0009ad0
. (cherry picked from commit27d8d1c5fc
)
This commit is contained in:
parent
c758aa56a2
commit
67e66ab40e
7 changed files with 60 additions and 2 deletions
|
@ -74,6 +74,7 @@ var Service = struct {
|
|||
AllowCrossRepositoryDependencies bool
|
||||
DefaultAllowOnlyContributorsToTrackTime bool
|
||||
NoReplyAddress string
|
||||
EnableOSMButton bool
|
||||
EnableUserHeatmap bool
|
||||
AutoWatchNewRepos bool
|
||||
AutoWatchOnChanges bool
|
||||
|
@ -187,6 +188,7 @@ func loadServiceFrom(rootCfg ConfigProvider) {
|
|||
Service.AllowCrossRepositoryDependencies = sec.Key("ALLOW_CROSS_REPOSITORY_DEPENDENCIES").MustBool(true)
|
||||
Service.DefaultAllowOnlyContributorsToTrackTime = sec.Key("DEFAULT_ALLOW_ONLY_CONTRIBUTORS_TO_TRACK_TIME").MustBool(true)
|
||||
Service.NoReplyAddress = sec.Key("NO_REPLY_ADDRESS").MustString("noreply." + Domain)
|
||||
Service.EnableOSMButton = sec.Key("ENABLE_OSM_BUTTON").MustBool(true)
|
||||
Service.EnableUserHeatmap = sec.Key("ENABLE_USER_HEATMAP").MustBool(true)
|
||||
Service.AutoWatchNewRepos = sec.Key("AUTO_WATCH_NEW_REPOS").MustBool(true)
|
||||
Service.AutoWatchOnChanges = sec.Key("AUTO_WATCH_ON_CHANGES").MustBool(false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue