Skip to content

Commit

Permalink
feat: forum thread url
Browse files Browse the repository at this point in the history
  • Loading branch information
dd84ai committed Jan 12, 2025
1 parent 1961216 commit 3eda3f9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
8 changes: 8 additions & 0 deletions darkrelay/relayfront/pobs.templ
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ func FmtPtrInt(value *int) string {
}

templ PoBTableHeaders() {
<th style="width:25px;">@frmt.MultiLinestring([]string{"Forum", "thread"})</th>
<th style="width:25px;">@frmt.MultiLinestring([]string{"Public", "items", "amount"})</th>
<th style="width:25px;">Pos</th>
<th style="width:25px;">Level</th>
Expand All @@ -57,6 +58,13 @@ templ PoBTableHeaders() {
}

templ PobTableRow(pob *configs_export.PoB) {
<td>
if pob.ForumThreadUrl != nil {
<a href={ templ.SafeURL(*pob.ForumThreadUrl) }>link</a>
} else {
noaccess
}
</td>
<td> { strconv.Itoa(len(pob.ShopItems)) } </td>
<td> { FmtPtrString(pob.Pos)} </td>
<td>{ FmtPtrInt(pob.Level) }</td>
Expand Down
4 changes: 0 additions & 4 deletions darkstat/front/pob.templ

This file was deleted.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.5

require (
github.com/a-h/templ v0.2.747
github.com/darklab8/fl-configs v0.106.4
github.com/darklab8/fl-configs v0.107.0
github.com/darklab8/fl-darkcore v0.8.2
github.com/darklab8/fl-data-discovery v0.4.0
github.com/darklab8/go-typelog v0.6.2
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/a-h/templ v0.2.747 h1:D0dQ2lxC3W7Dxl6fxQ/1zZHBQslSkTSvl5FxP/CfdKg=
github.com/a-h/templ v0.2.747/go.mod h1:69ObQIbrcuwPCU32ohNaWce3Cb7qM5GMiqN1K+2yop4=
github.com/darklab8/fl-configs v0.106.4 h1:5gI1BHWL79z0beDeEafunTAh7EJM2U5umI0zcTLD7Yg=
github.com/darklab8/fl-configs v0.106.4/go.mod h1:fbyKxEPv22FD2bvahG/Y6kYyhyvCMg0+J6mH230iB3s=
github.com/darklab8/fl-configs v0.107.0 h1:NYkRmCEaXCCVx/mHQHzTQwq4P58Xleln8xeJ1LZpkNE=
github.com/darklab8/fl-configs v0.107.0/go.mod h1:fbyKxEPv22FD2bvahG/Y6kYyhyvCMg0+J6mH230iB3s=
github.com/darklab8/fl-darkcore v0.8.2 h1:hEgPjUCjT22zHmaWJM6tr/g5IL7KfLuaryA9IC7ktxg=
github.com/darklab8/fl-darkcore v0.8.2/go.mod h1:7CLmeqBIg71S/WrR/v75irT4GKZz420UooF/kC97mF8=
github.com/darklab8/fl-data-discovery v0.4.0 h1:cUacP+N04/PrYl4cmw687BAaQWVJI32scePjLfmqxEI=
Expand Down

0 comments on commit 3eda3f9

Please sign in to comment.