Skip to content

Commit

Permalink
Fixes changelog on linux, updates hyperlinks in it. (#505)
Browse files Browse the repository at this point in the history
* Update Changelog.jsx

* Update Changelog.jsx

* Revert "Update Changelog.jsx"

This reverts commit 31b238d.

* changelog

* xd

* Revert "xd"

This reverts commit 78370ac.

* Update changelog.dm

* Revert "Update changelog.dm"

This reverts commit dd1f325.

* Update changelog.dm

---------

Signed-off-by: Helg2 <[email protected]>
  • Loading branch information
Helg2 authored Oct 6, 2024
1 parent 2d4b919 commit 1171689
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
8 changes: 4 additions & 4 deletions code/datums/changelog/changelog.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
return
if(action == "get_month")
var/datum/asset/changelog_item/changelog_item = changelog_items[params["date"]]
if (!changelog_item)
if(!changelog_item)
changelog_item = new /datum/asset/changelog_item(params["date"])
changelog_items[params["date"]] = changelog_item
return ui.send_asset(changelog_item)

/datum/changelog/ui_static_data()
var/list/data = list( "dates" = list() )
/datum/changelog/ui_static_data(mob/user)
var/list/data = list("dates" = list())
var/regex/ymlRegex = regex(@"\.yml", "g")

for(var/archive_file in flist("[global.config.directory]/../html/changelogs/archive/"))
for(var/archive_file in sortList(flist("html/changelogs/archive/")))
var/archive_date = ymlRegex.Replace(archive_file, "")
data["dates"] = list(archive_date) + data["dates"]

Expand Down
4 changes: 3 additions & 1 deletion html/changelogs/archive/2024-10.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
\u043D\u043E\u0433\u043E \u0415\u0420\u0422 \u0442\u0435\u043F\u0435\u0440\u044C\
\ \u0432\u044B\u0448\u0435, \u0435\u0441\u043B\u0438 \u043C\u0430\u0440\u0438\
\u043D\u044B \u043F\u043E\u0431\u0435\u0436\u0434\u0430\u044E\u0442."
2024-10-06:
2024-10-05:
Ghostkokos:
- rscadd: "\u0414\u043E\u0431\u0430\u0432\u0438\u043B \u043D\u043E\u0432\u044B\u0435\
\ \u043C\u0435\u0445\u0430\u043D\u0438\u043A\u0438 \u0438\u043B\u0438 \u0438\
Expand All @@ -85,6 +85,8 @@
- imageadd: "\u0414\u043E\u0431\u0430\u0432\u0438\u043B \u043D\u043E\u0432\u044B\
\u0435 \u0441\u043F\u0440\u0430\u0439\u0442\u044B \u0438\u043B\u0438 \u0438\u0437\
\u043C\u0435\u043D\u0438\u043B \u0441\u0442\u0430\u0440\u044B\u0435."
2024-10-06:
Ghostkokos:
- bugfix: "\u041F\u043E\u0444\u0438\u043A\u0441\u0438\u043B \u043D\u0435\u0434\u043E\
\u0441\u0442\u0443\u043F\u043D\u043E\u0441\u0442\u044C \u043F\u043E\u043A\u0443\
\u043F\u043A\u0438 \u0425\u0415 \u0441\u043D\u0430\u0440\u044F\u0434\u043E\u0432\
Expand Down
16 changes: 6 additions & 10 deletions tgui/packages/tgui/interfaces/Changelog.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class Changelog extends Component {

const header = (
<Section>
<h1>TerraGov Marine Corps</h1>
<h1>Unga Marine Corps</h1>
<p>
<b>Thanks to:</b> The CM-SS13 devs, The Russian CM, Baystation 12,
/tg/Station, /vg/station, NTstation, CDK Station devs,
Expand All @@ -194,20 +194,16 @@ export class Changelog extends Component {
</p>
<p>
{'Current organization members can be found '}
<a href="https://github.com/orgs/tgstation/people">here</a>
{', Current Staff team can be found '}
<a href="https://tgstation13.org/phpBB/viewtopic.php?f=69&t=19855">
Here
</a>
<a href="https://github.com/orgs/PMC-Unga-Marines/people">here</a>
{', recent GitHub contributors can be found '}
<a href="https://github.com/tgstation/TerraGov-Marine-Corps/pulse/monthly">
<a href="https://github.com/PMC-Unga-Marines/Unga-Marines/pulse/monthly">
here
</a>
.
</p>
<p>
{'You can also join our discord '}
<a href="https://discord.gg/2dFpfNE">here</a>.
<a href="https://discord.gg/N7wSfpusvZ">here</a>.
</p>
{dateDropdown}
</Section>
Expand Down Expand Up @@ -251,7 +247,7 @@ export class Changelog extends Component {
{' See the footer of '}
<a
href={
'https://github.com/tgstation/TerraGov-Marine-Corps/blob/master' +
'https://github.com/PMC-Unga-Marines/Unga-Marines/blob/master' +
'/code/__DEFINES/tgs.dm'
}
>
Expand All @@ -260,7 +256,7 @@ export class Changelog extends Component {
{' and '}
<a
href={
'https://github.com/tgstation/TerraGov-Marine-Corps/blob/master' +
'https://github.com/PMC-Unga-Marines/Unga-Marines/blob/master' +
'/code/modules/tgs/LICENSE'
}
>
Expand Down

0 comments on commit 1171689

Please sign in to comment.