1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 00:19:00 +03:00

/about: Replace repo link with website link (#328)

A some sort of UX change. Repository link will be still accessible from
the website.
This commit is contained in:
Macintxsh 2024-08-24 18:50:32 +03:00 committed by GitHub
parent d1133124b8
commit afd0141c13
Signed by: GitHub
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 9 deletions

View file

@ -2,7 +2,9 @@
public static class BuildInfo
{
public const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
public const string WebsiteUrl = "https://teamoctolings.github.io/Octobot";
private const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
public const string IssuesUrl = $"{RepositoryUrl}/issues";

View file

@ -106,9 +106,9 @@ public sealed class AboutCommandGroup : CommandGroup
var repositoryButton = new ButtonComponent(
ButtonComponentStyle.Link,
Messages.ButtonOpenRepository,
Messages.ButtonOpenWebsite,
new PartialEmoji(Name: "\ud83c\udf10"), // 'GLOBE WITH MERIDIANS' (U+1F310)
URL: BuildInfo.RepositoryUrl
URL: BuildInfo.WebsiteUrl
);
var wikiButton = new ButtonComponent(

View file

@ -633,9 +633,9 @@ namespace TeamOctolings.Octobot {
}
}
internal static string ButtonOpenRepository {
internal static string ButtonOpenWebsite {
get {
return ResourceManager.GetString("ButtonOpenRepository", resourceCulture);
return ResourceManager.GetString("ButtonOpenWebsite", resourceCulture);
}
}

View file

@ -399,8 +399,8 @@
<data name="AboutTitleDevelopers" xml:space="preserve">
<value>Developers:</value>
</data>
<data name="ButtonOpenRepository" xml:space="preserve">
<value>Octobot's source code</value>
<data name="ButtonOpenWebsite" xml:space="preserve">
<value>Open Website</value>
</data>
<data name="AboutBot" xml:space="preserve">
<value>About {0}</value>

View file

@ -399,8 +399,8 @@
<data name="AboutTitleDevelopers" xml:space="preserve">
<value>Разработчики:</value>
</data>
<data name="ButtonOpenRepository" xml:space="preserve">
<value>Исходный код Octobot</value>
<data name="ButtonOpenWebsite" xml:space="preserve">
<value>Открыть веб-сайт</value>
</data>
<data name="AboutBot" xml:space="preserve">
<value>О боте {0}</value>